Check how many files you have currently open in the system by:
$ sysctl kern.num_files
and what is your kernel limit by:
$ sysctl kern.maxfiles
To check which regular files are open, this command can help:
lsof | grep -w REG | less
If your limit is too low, then increase it by these commands (run as root):
sysctl -w kern.maxfiles=20480
sysctl -w kern.maxfilesperproc=4096
sudo if required if running from the user account.
and try again.
To set it permanently, add it into your
If you don't have access to change the limits, contact your hosting provider.