We are in the same boat Ravi, I can’t seem to get past this, even with the fix specified… Is there a possibility you can outline your steps to install, including changes of root user or as another user, etc.?
I know the popular answer to this is a space problem which is fixed by increasing the inotify parameters, but if you check your logs and there ISN’T a space problem, then it is not really a solution, just a temporary plaster on a festering wound. More watches is more RAM.
This article offers some other things to look at node.js - Grunt watch error - Waiting...Fatal error: watch ENOSPC - Stack Overflow
I’m guessing that 30GB of free space would probably not result in
ENOSPC 28 /* No space left on device */
(Thanks @clarkej for this list of Linux System Errors)
trentmu that stackoverflow item says rather than increase the inotify limit, to run instead ‘npm dedupe’ that trims some npm module list size.
Possibly ENOSPC is node’s way to signal the node module list size limit has been reached - each inotify watch uses say 1K of kernel memory so a high inode limit has a price - so best to run ‘npm dedupe’
Yes sir. If one were to always up the watches to the max, the potential (if it were reached) would be 512MB of RAM wastage.
Reaching the limit is an unlikely scenario, but still worth being aware of. Mostly I just wanted guys to note what you said before - maybe check disk space before deciding it’s a disk space error because the code matches - and check the logs
starting from systemd version 207 sysctl will load config from /etc/sysctl.d/yourconfig.conf file so the command may change to this according to your version of systemd
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system