ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

ENOSPC error when run bench in developer mode


#1

hi ,
i have update bench today every thing works fine . but want to change the server to development i run the commands we used usually to switch to development , then when i run the bench . it shows this error ?

09:49:17 watch.1 | events.js:160
09:49:17 watch.1 | throw er; // Unhandled ‘error’ event
09:49:17 watch.1 | ^
09:49:17 watch.1 |
09:49:17 watch.1 | Error: watch /home/frappe/frappe-bench/apps/frappe/node_modules/core-js/client/library.js ENOSPC
09:49:17 watch.1 | at exports._errnoException (util.js:1020:11)
09:49:17 watch.1 | at FSWatcher.start (fs.js:1451:19)
09:49:17 watch.1 | at Object.fs.watch (fs.js:1478:11)
09:49:17 watch.1 | at createFsWatchInstance (/home/frappe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:37:15)
09:49:17 watch.1 | at setFsWatchListener (/home/frappe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:80:15)
09:49:17 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/frappe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:228:14)
09:49:17 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/frappe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:255:21)
09:49:17 watch.1 | at FSWatcher. (/home/frappe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:473:21)
09:49:17 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)


#2

this works for me , i used this command for ubuntu

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


Bench Not Starting
#3

Worked for me too.
:slight_smile:


#4