New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMFILE open error when executing grunt #168

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

Comments

Projects
None yet
2 participants
@hermwong
Member

hermwong commented Aug 26, 2014

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

This comment has been minimized.

Show comment
Hide comment
@hermwong

hermwong Aug 26, 2014

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

Member

hermwong commented Aug 26, 2014

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

This comment has been minimized.

Show comment
Hide comment
@mwbrooks

mwbrooks Aug 26, 2014

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

Member

mwbrooks commented Aug 26, 2014

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

This comment has been minimized.

Show comment
Hide comment
@hermwong

hermwong Aug 27, 2014

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.

Member

hermwong commented Aug 27, 2014

@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

This comment has been minimized.

Show comment
Hide comment
@hermwong

hermwong Aug 27, 2014

Member

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

Member

hermwong commented Aug 27, 2014

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

@hermwong

This comment has been minimized.

Show comment
Hide comment
@hermwong

hermwong Aug 27, 2014

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
Member

hermwong commented Aug 27, 2014

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment