question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bpavotcommented, Feb 28, 2016

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

0reactions
mxstbrcommented, Apr 29, 2016

This seems to have answered the question, so I’ll close this issue! Thanks for jumping in @KuroTsuto and @bpavot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found