HI there…
I have a vanilla meteor application I have created. The only coding I have done in my application is to create my own package and write some unit tests for it. Everything was fine until I ran meteor upgrade --patch as I want to keep my development efforts inline with the latest meteor version.
Now when I start my app, I see this:
Downloading meteor-tool@1.4.1_3…
And then this:
Error: ENFILE: file table overflow, uv_cwd
Any ideas?
Its ok - turns out I had too many terminal windows open.
I was debugging my package with meteor test-packages on port 300 and running my meteor app on port 4000…
Guessing this is a no no
When we updated our app to one of the recent releases (maybe 1.4.1?) we experienced a similar problem. I found this link:
Hi Guys,
I am facing file table overflow issue while running the karma tests please help?
Details are mentioned here.
http://stackoverflow.com/questions/35873437/enfile-file-table-overflow-with-karma
Thanks,
Abhi
needs: feedback-from-author
needs: investigation
And used the following commands listed in that issue to fix the problem (for OSX)
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536
ulimit -n 65536 65536
Add this to ~/.bash_profile
ulimit -n 65536 65536