EMFILE open error when executing grunt #168

Closed
hermwong opened this Issue Aug 26, 2014 · 5 comments

Projects

None yet

2 participants

@hermwong
Member

screen shot 2014-08-26 at 1 33 27 pm

@hermwong hermwong added the bug label Aug 26, 2014
@hermwong hermwong self-assigned this Aug 26, 2014
@hermwong
Member

Issue seems to be caused by the grunt or node js having too many files open.

Some possible solutions are:
gruntjs/grunt#788
http://blog.izs.me/post/56827866110/wtf-is-emfile-and-why-does-it-happen-to-me

@mwbrooks
Member

Have you tried restarting your system or increasing the number of file descriptors?

http://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files

@hermwong
Member

@mwbrooks I tried restarting & also increasing the number file descriptors but encountered the same issue.

Going to see if modifying my .bash_profile with a higher ulimit will resolve the issue.

@hermwong
Member

by adding this ulimit -n 10240 to my .bash_profile seemed to do the trick.

@hermwong
Member

If your computer doesn't have a .bash_profile in your home folder follow these instructions:

  1. Open Terminal
  2. Type cd ~/ to go to your home folder
  3. Type touch .bash_profile to create your new file.
  4. Edit .bash_profile with your favorite editor (I used TextEdit).
  5. Add the following into your .bash_profile, ulimit -n 10240.
  6. Type . ~/.bash_profile to reload your updated.bash_profile
@hermwong hermwong closed this Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment