ENOSPC error
See original GitHub issueI ran the Yeoman generator to create a Keystone website to play with. The website works well, it’s just that a few minutes after I run node keystone.ks
, usually at one of the first requests, it prints out the error listed below and then it dies. For the moment, pm2 keeps restarting it every time, so it works, but it’s clearly not the best option. Do you have any idea what I could do to make Keystone.js stop running out of memory?
Thanks!
GET / 200 398.654 ms
Error: watch node_modules/node-sass/node_modules/oauth-sign ENOSPC
at exports._errnoException (util.js:860:11)
at FSWatcher.start (fs.js:1313:19)
at Object.fs.watch (fs.js:1341:11)
at createFsWatchInstance (/home/ubuntu/my-test-project/my-site/node_modules/nunjucks/node_modules/chokidar/lib/nodefs-handler.js:24:15)
at setFsWatchListener (/home/ubuntu/my-test-project/my-site/node_modules/nunjucks/node_modules/chokidar/lib/nodefs-handler.js:47:19)
at EventEmitter.NodeFsHandler._watchWithNodeFs (/home/ubuntu/my-test-project/my-site/node_modules/nunjucks/node_modules/chokidar/lib/nodefs-handler.js:177:15)
at EventEmitter.NodeFsHandler._handleDir (/home/ubuntu/my-test-project/my-site/node_modules/nunjucks/node_modules/chokidar/lib/nodefs-handler.js:301:8)
at EventEmitter.<anonymous> (/home/ubuntu/my-test-project/my-site/node_modules/nunjucks/node_modules/chokidar/lib/nodefs-handler.js:342:12)
at FSReqWrap.oncomplete (fs.js:82:15)
root@vps-server:/home/ubuntu/my-test-project/my-site#
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Node.js: what is ENOSPC error and how to solve?
ENOSPC means that there is no space on the drive. Perhaps /tmp is full?
Read more >How To Fix - Error "ENOSPC: System Limit for Number of File ...
First thing first – ENOSPC -> Denotes that means that there is not sufficient space on the drive (or Temp folder also) to...
Read more >ENOSPC: System limit for number of file watchers reached.
It's only affecting watch-command and appears to be linked to a file-system incompatibility when watching file changes. This problem seems to ...
Read more >Handling ENOSPC Error on VS Code - Crishantha Nanayakkara
If you are using VS Code for your development, the ENOSPC Error can be a common one. (Especially if you are Linux Debian...
Read more >Node.js: what is ENOSPC error and how to solve - iTecNote
For uploading files to server I use this plugin. When starting file upload to the server, Node.js process crashed and show error: Error:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue running Keystone with nunjucks on CloudFoundry (where max_user_watches is as low as 8192 and I don’t think can be changed)
My workaround was to disable nunjucks watch with
nunjucks.configure(undefined, {watch: false});
in keystone.js file.
Maybe that could be an improvement to automatically setup nunjucks that way in production env
This seems to have answered the question, so I’ll close this issue! Thanks for jumping in @KuroTsuto and @bpavot!