ericclemmons / ericclemmons/genesis-skeleton

Grunt server task throws errors, especially after a few repeated saves.

Open
#115 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
107
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Getting tons of these errors lately, especially when editing css and saving often. Happens every so often when editing js files too.

Thoughts?

```
Fatal error: EMFILE, too many open files
... Reload server/app/controllers/vendors.js ...
Fatal error: EMFILE, too many open files
... Reload server/app/controllers/vendors.js ...
Fatal error: EMFILE, too many open files
... Reload server/app/controllers/vendors.js ...
Fatal error: EMFILE, too many open files
... Reload server/app/controllers/vendors.js ...
Fatal error: EMFILE, too many open files
... Reload server/app/controllers/vendors.js ...
Fatal error: EMFILE, too many open files
... Reload server/seed.js ...
GET /api/v1/users 304 18ms

Reloading watch config...
>> EMFILE, readdir 'server/bower.json'
glob error { [Error: EMFILE, readdir 'server/bower.json'] errno: 20, code: 'EMFILE', path: 'server/bower.json' }
>> EMFILE, readdir 'server/bower.json'
glob error { [Error: EMFILE, readdir 'server/bower.json'] errno: 20, code: 'EMFILE', path: 'server/bower.json' }
>> EMFILE, readdir '/Users/facultymatt/Sites/mrl/mrl001/server/'
Fatal error: EMFILE, too many open files
Fatal error: EMFILE, too many open files
Fatal error: EMFILE, too many open files
Fatal error: EMFILE, too many open files
Fatal error: EMFILE, too many open files
>> EMFILE, readdir '/Users/facultymatt/Sites/mrl/mrl001/server/config/'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Grunt server task and its watch configuration, then reproduce the problem by repeatedly saving CSS and JavaScript files. Trace the reload handling reported around server/app/controllers/vendors.js and server/seed.js; done means repeated saves no longer produce EMFILE or readdir errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
backend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.