Error in bench start unhandled error event

I start server after installing fresh coppy of ERPNext but facing following error
**

I tryied following solution echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
but it’s not working for me

**
12:41:28 watch.1 | Wrote js/item-dashboard.min.js - 7.96 KB
12:41:28 watch.1 | events.js:182
12:41:28 watch.1 | throw er; // Unhandled ‘error’ event
12:41:28 watch.1 | ^
12:41:28 watch.1 |
12:41:28 watch.1 | Error: watch /home/ujjawal/airlink/frappe-bench/apps/frappe/frappe/public/js/lib/slickgrid/images/arrow_undo.png ENOSPC
12:41:28 watch.1 | at _errnoException (util.js:1041:11)
12:41:28 watch.1 | at FSWatcher.start (fs.js:1382:19)
12:41:28 watch.1 | at Object.fs.watch (fs.js:1408:11)
12:41:28 watch.1 | at createFsWatchInstance (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:37:15)
12:41:28 watch.1 | at setFsWatchListener (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:80:15)
12:41:28 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:228:14)
12:41:28 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:255:21)
12:41:28 watch.1 | at FSWatcher. (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:473:21)
12:41:28 watch.1 | at FSReqWrap.oncomplete (fs.js:153:5)
12:41:28 system | watch.1 stopped (rc=0)
12:41:28 system | sending SIGTERM to redis_socketio.1 (pid

some nmp module causing issue. please share full traceback

Try updating your nodejs and npm modules (check the relevant commands based on your OS / install)

Here is full stack

2017-08-29 06:11:26 [35794] [WARNING] Your terminal is not configured to receive UTF-8 encoded text. Please adjust your locale settings or force UTF-8 output by setting PYTHONIOENCODING="utf-8".

06:11:26 system | worker_long.1 started (pid=35812)
06:11:26 system | redis_queue.1 started (pid=35816)
06:11:26 system | watch.1 started (pid=35815)
06:11:26 system | redis_socketio.1 started (pid=35811)
06:11:26 system | web.1 started (pid=35818)
06:11:26 system | schedule.1 started (pid=35820)
06:11:26 system | worker_default.1 started (pid=35822)
06:11:26 redis_queue.1 | .
06:11:26 redis_socketio.1 | .
06:11:26 redis_socketio.1 | .-__ ''-._ 06:11:26 redis_queue.1 | _.-_ ‘’-._
06:11:26 redis_socketio.1 | .- `. `_. ''-._ Redis 2.8.4 (00000000/0) 64 bit 06:11:26 system | socketio.1 started (pid=35824) 06:11:26 redis_queue.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
06:11:26 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 06:11:26 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 06:11:26 redis_queue.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 11000 06:11:26 redis_queue.1 | | -. ._ / _.-' | PID: 35831 06:11:26 redis_queue.1 | -._ -._ -./ .-’ .-’
06:11:26 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 06:11:26 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 06:11:26 redis_queue.1 | -._ -._-..-'.-’ .-’
06:11:26 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 06:11:26 redis_queue.1 | | -.
-._ _.-'_.-' | 06:11:26 redis_queue.1 | -._ -._-.
.-‘.-’ .-’
06:11:26 redis_queue.1 | -._ -..-’ _.-’
06:11:26 redis_queue.1 | -._ _.-' 06:11:26 redis_queue.1 | -.
.-’
06:11:26 redis_queue.1 |
06:11:26 redis_queue.1 | [35831] 29 Aug 06:11:26.382 # Server started, Redis version 2.8.4
06:11:26 redis_queue.1 | [35831] 29 Aug 06:11:26.382 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
06:11:26 redis_queue.1 | [35831] 29 Aug 06:11:26.382 * The server is now ready to accept connections on port 11000
06:11:26 system | redis_cache.1 started (pid=35825)
06:11:26 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 06:11:26 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 06:11:26 redis_socketio.1 | |`-._`-...-` __...-.-.
|'_.-'| Port: 12000 06:11:26 redis_socketio.1 | | -.
._ / _.-' | PID: 35829 06:11:26 redis_socketio.1 | -._ -._ -./ .-’ .-’
06:11:26 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 06:11:26 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 06:11:26 redis_socketio.1 | -._ -._-..-'.-’ .-’
06:11:26 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 06:11:26 redis_socketio.1 | | -.
-._ _.-'_.-' | 06:11:26 redis_socketio.1 | -._ -._-.
.-’.-’ .-’
06:11:26 redis_socketio.1 | -._ -..-’ _.-’
06:11:26 redis_socketio.1 | -._ _.-' 06:11:26 redis_socketio.1 | -.
.-’
06:11:26 redis_socketio.1 |
06:11:26 redis_socketio.1 | [35829] 29 Aug 06:11:26.381 # Server started, Redis version 2.8.4
06:11:26 redis_socketio.1 | [35829] 29 Aug 06:11:26.381 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
06:11:26 redis_socketio.1 | [35829] 29 Aug 06:11:26.381 * The server is now ready to accept connections on port 12000
06:11:26 system | worker_short.1 started (pid=35826)
06:11:26 redis_cache.1 | .
06:11:26 redis_cache.1 | .-__ ''-._ 06:11:26 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 64 bit
06:11:26 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 06:11:26 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 06:11:26 redis_cache.1 | |`-._`-...-` __...-.-.
|‘_.-'| Port: 13000 06:11:26 redis_cache.1 | | -._ ._ / _.-' | PID: 35847 06:11:26 redis_cache.1 | -._ -._ -./ .-’ .-’
06:11:26 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 06:11:26 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 06:11:26 redis_cache.1 | -._ -._-..-'.-’ .-’
06:11:26 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 06:11:26 redis_cache.1 | | -.
-._ _.-'_.-' | 06:11:26 redis_cache.1 | -._ -._-.
.-’_.-’ _.-’
06:11:26 redis_cache.1 | -._ -..-’ _.-’
06:11:26 redis_cache.1 | -._ _.-' 06:11:26 redis_cache.1 | -.
.-’
06:11:26 redis_cache.1 |
06:11:26 redis_cache.1 | [35847] 29 Aug 06:11:26.384 # Server started, Redis version 2.8.4
06:11:26 redis_cache.1 | [35847] 29 Aug 06:11:26.384 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
06:11:26 redis_cache.1 | [35847] 29 Aug 06:11:26.384 * The server is now ready to accept connections on port 13000
06:11:27 socketio.1 | listening on *: 9000
06:11:27 worker_short.1 | 06:11:27 RQ worker u’rq:worker:erpair.35849.short’ started, version 0.8.1
06:11:27 worker_short.1 | 06:11:27 Cleaning registries for queue: short
06:11:27 worker_short.1 | 06:11:27
06:11:27 worker_short.1 | 06:11:27 *** Listening on short…
06:11:27 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
06:11:27 web.1 | * Restarting with inotify reloader
06:11:27 worker_default.1 | 06:11:27 RQ worker u’rq:worker:erpair.35839.default’ started, version 0.8.1
06:11:27 worker_default.1 | 06:11:27 Cleaning registries for queue: default
06:11:27 worker_default.1 | 06:11:27
06:11:27 worker_default.1 | 06:11:27 *** Listening on default…
06:11:27 worker_long.1 | 06:11:27 RQ worker u’rq:worker:erpair.35827.long’ started, version 0.8.1
06:11:27 worker_long.1 | 06:11:27 Cleaning registries for queue: long
06:11:27 worker_long.1 | 06:11:27
06:11:27 worker_long.1 | 06:11:27 *** Listening on long…
06:11:27 web.1 | * Debugger is active!
06:11:27 web.1 | * Debugger PIN: 331-421-828
06:11:28 watch.1 | compiling avatar.less
06:11:28 watch.1 | compiling calendar.less
06:11:28 watch.1 | compiling common.less
06:11:28 watch.1 | compiling desk.less
06:11:28 watch.1 | compiling desktop.less
06:11:28 watch.1 | compiling docs.less
06:11:28 watch.1 | compiling email.less
06:11:28 watch.1 | compiling form.less
06:11:28 watch.1 | compiling form_grid.less
06:11:28 watch.1 | compiling gantt.less
06:11:28 watch.1 | compiling graphs.less
06:11:28 watch.1 | compiling indicator.less
06:11:28 watch.1 | compiling kanban.less
06:11:28 watch.1 | compiling list.less
06:11:28 watch.1 | compiling mixins.less
06:11:28 watch.1 | compiling mobile.less
06:11:28 watch.1 | compiling module.less
06:11:28 watch.1 | compiling navbar.less
06:11:28 watch.1 | compiling page.less
06:11:28 watch.1 | compiling report.less
06:11:28 watch.1 | compiling role_editor.less
06:11:28 watch.1 | compiling sidebar.less
06:11:28 watch.1 | compiling slickgrid.less
06:11:28 watch.1 | compiling tree.less
06:11:28 watch.1 | compiling website.less
06:11:28 watch.1 | compiling email.less
06:11:28 watch.1 | compiling erpnext.less
06:11:28 watch.1 | compiling website.less
06:11:28 watch.1 | file watching on *: 6787
06:11:28 watch.1 | Less files compiled
06:11:28 watch.1 | Wrote css/frappe-web.css - 65.4 KB
06:11:28 watch.1 | Wrote js/frappe-web.min.js - 132.47 KB
06:11:29 watch.1 | Wrote js/control.min.js - 61.69 KB
06:11:29 watch.1 | Wrote js/dialog.min.js - 109.3 KB
06:11:29 watch.1 | Wrote css/desk.min.css - 293.85 KB
06:11:29 watch.1 | Wrote css/frappe-rtl.css - 32.63 KB
06:11:29 watch.1 | Wrote js/libs.min.js - 843.81 KB
06:11:31 watch.1 | Wrote js/desk.min.js - 461.54 KB
06:11:31 watch.1 | Wrote js/d3.min.js - 380.43 KB
06:11:31 watch.1 | Wrote css/module.min.css - 2.17 KB
06:11:31 watch.1 | Wrote css/form.min.css - 4.56 KB
06:11:31 watch.1 | Wrote js/form.min.js - 197.26 KB
06:11:31 watch.1 | Wrote css/list.min.css - 14.87 KB
06:11:32 watch.1 | Wrote js/list.min.js - 143.49 KB
06:11:32 watch.1 | Wrote css/report.min.css - 8.36 KB
06:11:32 watch.1 | Wrote js/report.min.js - 261.51 KB
06:11:32 watch.1 | Wrote js/web_form.min.js - 247.62 KB
06:11:32 watch.1 | Wrote css/web_form.css - 24.72 KB
06:11:32 watch.1 | Wrote js/print_format_v3.min.js - 23.67 KB
06:11:32 watch.1 | Wrote css/erpnext.css - 7.96 KB
06:11:32 watch.1 | Wrote js/erpnext-web.min.js - 3.91 KB
06:11:32 watch.1 | Wrote js/erpnext.min.js - 135.7 KB
06:11:32 watch.1 | Wrote js/item-dashboard.min.js - 7.96 KB
06:11:33 watch.1 | events.js:182
06:11:33 watch.1 | throw er; // Unhandled ‘error’ event
06:11:33 watch.1 | ^
06:11:33 watch.1 |
06:11:33 watch.1 | Error: watch /home/ujjawal/airlink/frappe-bench/apps/frappe/frappe/public/js/lib/slickgrid/images/arrow_undo.png ENOSPC
06:11:33 watch.1 | at _errnoException (util.js:1041:11)
06:11:33 watch.1 | at FSWatcher.start (fs.js:1382:19)
06:11:33 watch.1 | at Object.fs.watch (fs.js:1408:11)
06:11:33 watch.1 | at createFsWatchInstance (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:37:15)
06:11:33 watch.1 | at setFsWatchListener (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:80:15)
06:11:33 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:228:14)
06:11:33 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:255:21)
06:11:33 watch.1 | at FSWatcher. (/home/ujjawal/airlink/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:473:21)
06:11:33 watch.1 | at FSReqWrap.oncomplete (fs.js:153:5)
06:11:33 system | watch.1 stopped (rc=0)
06:11:33 system | sending SIGTERM to redis_socketio.1 (pid 35811)
06:11:33 system | sending SIGTERM to worker_long.1 (pid 35812)
06:11:33 system | sending SIGTERM to redis_queue.1 (pid 35816)
06:11:33 system | sending SIGTERM to web.1 (pid 35818)
06:11:33 system | sending SIGTERM to schedule.1 (pid 35820)
06:11:33 system | sending SIGTERM to worker_default.1 (pid 35822)
06:11:33 system | sending SIGTERM to socketio.1 (pid 35824)
06:11:33 system | sending SIGTERM to redis_cache.1 (pid 35825)
06:11:33 system | sending SIGTERM to worker_short.1 (pid 35826)
06:11:33 redis_socketio.1 | [35829 | signal handler] (1503987093) Received SIGTERM, scheduling shutdown…
06:11:33 redis_queue.1 | [35831 | signal handler] (1503987093) Received SIGTERM, scheduling shutdown…
06:11:33 redis_cache.1 | [35847 | signal handler] (1503987093) Received SIGTERM, scheduling shutdown…
06:11:33 worker_long.1 | 06:11:33 Warm shut down requested
06:11:33 worker_default.1 | 06:11:33 Warm shut down requested
06:11:33 worker_short.1 | 06:11:33 Warm shut down requested
06:11:33 system | schedule.1 stopped (rc=-15)
06:11:33 system | socketio.1 stopped (rc=-15)
06:11:33 redis_cache.1 | [35847] 29 Aug 06:11:33.094 # User requested shutdown…
06:11:33 redis_cache.1 | [35847] 29 Aug 06:11:33.094 # Redis is now ready to exit, bye bye…
06:11:33 system | redis_cache.1 stopped (rc=-15)
06:11:33 redis_queue.1 | [35831] 29 Aug 06:11:33.101 # User requested shutdown…
06:11:33 redis_queue.1 | [35831] 29 Aug 06:11:33.101 # Redis is now ready to exit, bye bye…
06:11:33 system | redis_queue.1 stopped (rc=-15)
06:11:33 redis_socketio.1 | [35829] 29 Aug 06:11:33.103 # User requested shutdown…
06:11:33 redis_socketio.1 | [35829] 29 Aug 06:11:33.103 # Redis is now ready to exit, bye bye…
06:11:33 system | redis_socketio.1 stopped (rc=-15)
06:11:33 system | worker_short.1 stopped (rc=-15)
06:11:33 system | worker_default.1 stopped (rc=-15)
06:11:33 system | worker_long.1 stopped (rc=-15)
06:11:33 system | web.1 stopped (rc=-15)

On server I’ve node v8.4.0 and npm 5.3.0

Seems like a disk space problem.

1 Like

There are more then enough space available as well RAM