Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

Error when running gulp watch: EMFILE, readdir #263

Closed
grtjn opened this issue Nov 4, 2015 · 1 comment
Closed

Error when running gulp watch: EMFILE, readdir #263

grtjn opened this issue Nov 4, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@grtjn
Copy link
Contributor

grtjn commented Nov 4, 2015

Running gulp watch can sometimes result in messages like below. This typically occurs if you have multiple gulp/gulp watches open simultaniously..

[10:25:28] Using gulpfile .../gulpfile.js
[10:25:28] Starting 'jshint'...
[10:25:28] Finished 'jshint' after 5.22 ms
[10:25:28] Starting 'less'...
[10:25:28] Starting 'scripts'...
[10:25:28] Starting 'watch'...
[10:25:30] Finished 'watch' after 1.9 s

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: EMFILE, readdir '.../ui/app/bower_components/ng-ckeditor/libs/ckeditor/plugins/magicline/images'
@grtjn grtjn added the bug label Nov 4, 2015
@grtjn grtjn self-assigned this Nov 4, 2015
@grtjn
Copy link
Contributor Author

grtjn commented Nov 4, 2015

The solution is to run something like: ulimit -n 2048 (or check the current open file handle limit first with ulimit -a, and then doubling it till the message goes away)

@grtjn grtjn closed this as completed Nov 4, 2015
@grtjn grtjn added this to the 1.0.2 milestone Nov 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant