Nodemon: Useful message for `watch ENOSPC` error

Created on 30 Dec 2013  路  5Comments  路  Source: remy/nodemon

Instead of exception, point users to increasing max_user_watches. Ref #214.

stale

Most helpful comment

enlage numbers of watchers

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

All 5 comments

enlage numbers of watchers

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

dileep@dileep-VirtualBox:~/tmp/rest$ nodemon server.js
28 Jan 15:22:13 - [nodemon] v0.7.10
28 Jan 15:22:13 - [nodemon] to restart at any time, enter rs
28 Jan 15:22:13 - [nodemon] watching: /home/dileep/tmp/rest
28 Jan 15:22:13 - [nodemon] exception in nodemon killing node
Error: watch ENOSPC
at errnoException (fs.js:1019:11)
at FSWatcher.start (fs.js:1051:11)
at Object.fs.watch (fs.js:1076:11)
at Object.watchFileChecker.check (/usr/lib/node_modules/nodemon/nodemon.js:160:6)
at ready (/usr/lib/node_modules/nodemon/nodemon.js:49:22)
at /usr/lib/node_modules/nodemon/nodemon.js:63:11
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket. (child_process.js:948:11)

i am not able to sort it out? also go throught that above query??? nothing happens???

@dileephell can you upgrade to 1.0.x first? The command that @ondrejsika posted should allow for more watchers, but won't echo anything once it's run.

@remy :upgradation works !!!

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joelgetaction picture joelgetaction  路  5Comments

endquote picture endquote  路  4Comments

ehmicky picture ehmicky  路  4Comments

giacomorebonato picture giacomorebonato  路  5Comments

piton13 picture piton13  路  3Comments