In Ubuntu, I got an error of "Too Many Files", and it wouldn't even let me log on. I got this error after updating my distro. So I powered the box off, powered it back on again, and made this change that I found on the net. Hopefully it will fix this issue.
Basically, the operating system appears to be running out of file descriptors, for whatever reason. The default limit is 1024. I increased it
To get the current limit type:
To increase or set file descriptor limit per user, modify:
For example, add:
your_username hard nofile 32768
This should (hopefully) give you some more breathing space.