Bench start fail

bench start fail for new setup on completely new server…
i setup a development environment on a fresh server by the easy install ansible script…
and everything was setup smooth but on bench start
i get the following error and bench stops.

1:14:12 watch.1 | events.js:160
11:14:12 watch.1 | throw er; // Unhandled ‘error’ event
11:14:12 watch.1 | ^
11:14:12 watch.1 |
11:14:12 watch.1 | Error: watch /home/global/frappe-bench/apps/erpnext/erpnext/accounts/doctype/asset/depreciation.py ENOSPC
11:14:12 watch.1 | at exports._errnoException (util.js:1020:11)
11:14:12 watch.1 | at FSWatcher.start (fs.js:1451:19)
11:14:12 watch.1 | at Object.fs.watch (fs.js:1478:11)
11:14:12 watch.1 | at createFsWatchInstance (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:37:15)
11:14:12 watch.1 | at setFsWatchListener (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:80:15)
11:14:12 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:228:14)
11:14:12 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:255:21)
11:14:12 watch.1 | at FSWatcher. (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:473:21)
11:14:12 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)
11:14:12 system | watch.1 stopped (rc=0)
11:14:12 system | sending SIGTERM to redis_socketio.1 (pid 9988)
11:14:12 system | sending SIGTERM to worker_long.1 (pid 9997)
11:14:12 system | sending SIGTERM to redis_queue.1 (pid 9993)
11:14:12 system | sending SIGTERM to web.1 (pid 9996)
11:14:12 system | sending SIGTERM to schedule.1 (pid 10006)
11:14:12 system | sending SIGTERM to worker_default.1 (pid 10009)
11:14:12 system | sending SIGTERM to socketio.1 (pid 10025)
11:14:12 system | sending SIGTERM to redis_cache.1 (pid 10008)
11:14:12 system | sending SIGTERM to worker_short.1 (pid 10011)
11:14:12 worker_default.1 | 11:14:12 Warm shut down requested
11:14:12 worker_default.1 | Traceback (most recent call last):
11:14:12 worker_default.1 | File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
11:14:12 system | socketio.1 stopped (rc=-15)
11:14:12 worker_default.1 | “main”, fname, loader, pkg_name)
11:14:12 worker_default.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
11:14:12 worker_default.1 | exec code in run_globals
11:14:12 worker_default.1 | File “/home/global/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
11:14:12 worker_default.1 | main()
11:14:12 worker_default.1 | File “/home/global/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
11:14:12 worker_default.1 | click.Group(commands=commands)(prog_name=‘bench’)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
11:14:12 worker_default.1 | return self.main(*args, **kwargs)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
11:14:12 worker_default.1 | rv = self.invoke(ctx)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
11:14:12 worker_default.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
11:14:12 worker_default.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
11:14:12 worker_default.1 | return ctx.invoke(self.callback, **ctx.params)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
11:14:12 worker_default.1 | return callback(*args, **kwargs)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 157, in start_worker
11:14:12 worker_default.1 | start_worker(queue)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 139, in start_worker
11:14:12 worker_default.1 | Worker(queues, name=get_worker_name(queue)).work()
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py”, line 485, in work
11:14:12 worker_long.1 | 11:14:12 Warm shut down requested
11:14:12 redis_queue.1 | [9999 | signal handler] (1510485252) Received SIGTERM, scheduling shutdown…
11:14:12 redis_queue.1 | [9999] 12 Nov 11:14:12.353 # User requested shutdown…
11:14:12 redis_queue.1 | [9999] 12 Nov 11:14:12.353 # Redis is now ready to exit, bye bye…
11:14:12 system | redis_queue.1 stopped (rc=-15)
11:14:12 worker_default.1 | self.register_death()
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/rq/worker.py”, line 284, in register_death
11:14:12 worker_default.1 | p.execute()
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 2894, in execute
11:14:12 worker_default.1 | return execute(conn, stack, raise_on_error)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/redis/client.py”, line 2749, in _execute_transaction
11:14:12 worker_default.1 | connection.send_packed_command(all_cmds)
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py”, line 585, in send_packed_command
11:14:12 worker_default.1 | self.connect()
11:14:12 worker_default.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/redis/connection.py”, line 489, in connect
11:14:12 worker_default.1 | raise ConnectionError(self._error_message(e))
11:14:12 worker_default.1 | redis.exceptions.ConnectionError: Error 111 connecting to localhost:11000. Connection refused.
11:14:12 worker_short.1 | 11:14:12 Warm shut down requested
11:14:12 redis_socketio.1 | [9998 | signal handler] (1510485252) Received SIGTERM, scheduling shutdown…
11:14:12 redis_socketio.1 | [9998] 12 Nov 11:14:12.354 # User requested shutdown…
11:14:12 redis_socketio.1 | [9998] 12 Nov 11:14:12.354 # Redis is now ready to exit, bye bye…
11:14:12 system | redis_socketio.1 stopped (rc=-15)
11:14:12 system | schedule.1 stopped (rc=-15)
11:14:12 redis_cache.1 | [10014 | signal handler] (1510485252) Received SIGTERM, scheduling shutdown…
11:14:12 redis_cache.1 | [10014] 12 Nov 11:14:12.387 # User requested shutdown…
11:14:12 redis_cache.1 | [10014] 12 Nov 11:14:12.387 # Redis is now ready to exit, bye bye…
11:14:12 system | redis_cache.1 stopped (rc=-15)
11:14:12 system | worker_default.1 stopped (rc=-15)
11:14:12 system | worker_long.1 stopped (rc=-15)
11:14:12 system | worker_short.1 stopped (rc=-15)
11:14:12 system | web.1 stopped (rc=-15)

i haven’t done anything on it .
whats the reason and how can i solve it.

Thanks

1 Like

Cant bench start----

Site doesn’t load beyond login for bench serve --port 8001
deleted old site and installed new one—same issue…

should i reinstall bench manually? if so how?

Thanks

Guys any update on this…getting new error on bench start after bench update…

09:50:05 watch.1 | events.js:160
09:50:05 watch.1 | throw er; // Unhandled ‘error’ event
09:50:05 watch.1 | ^
09:50:05 watch.1 |
09:50:05 watch.1 | Error: watch /home/global/frappe-bench/apps/frappe/frappe/website/doctype/website_slideshow/test_website_slideshow.pyc ENOSPC
09:50:05 watch.1 | at exports._errnoException (util.js:1020:11)
09:50:05 watch.1 | at FSWatcher.start (fs.js:1451:19)
09:50:05 watch.1 | at Object.fs.watch (fs.js:1478:11)
09:50:05 watch.1 | at createFsWatchInstance (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:37:15)
09:50:05 watch.1 | at setFsWatchListener (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:80:15)
09:50:05 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:228:14)
09:50:05 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:255:21)
09:50:05 watch.1 | at FSWatcher. (/home/global/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:473:21)
09:50:05 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)
09:50:06 system | watch.1 stopped (rc=0)
09:50:06 system | sending SIGTERM to redis_socketio.1 (pid 903)
09:50:06 system | sending SIGTERM to worker_long.1 (pid 912)
09:50:06 system | sending SIGTERM to redis_queue.1 (pid 926)
09:50:06 system | sending SIGTERM to web.1 (pid 909)
09:50:06 system | sending SIGTERM to schedule.1 (pid 918)
09:50:06 system | sending SIGTERM to worker_default.1 (pid 929)
09:50:06 system | sending SIGTERM to socketio.1 (pid 919)
09:50:06 system | sending SIGTERM to redis_cache.1 (pid 914)
09:50:06 system | sending SIGTERM to worker_short.1 (pid 924)
09:50:06 redis_socketio.1 | [907 | signal handler] (1510566606) Received SIGTERM, scheduling shutdown…
09:50:06 worker_long.1 | 09:50:06 Warm shut down requested
09:50:06 redis_queue.1 | [927 | signal handler] (1510566606) Received SIGTERM, scheduling shutdown…
09:50:06 system | schedule.1 stopped (rc=-15)
09:50:06 worker_default.1 | 09:50:06 Warm shut down requested
09:50:06 redis_cache.1 | [925 | signal handler] (1510566606) Received SIGTERM, scheduling shutdown…
09:50:06 redis_queue.1 | [927] 13 Nov 09:50:06.045 # User requested shutdown…
09:50:06 redis_queue.1 | [927] 13 Nov 09:50:06.045 # Redis is now ready to exit, bye bye…
09:50:06 system | redis_queue.1 stopped (rc=-15)
09:50:06 worker_short.1 | 09:50:06 Warm shut down requested
09:50:06 system | socketio.1 stopped (rc=-15)
09:50:06 redis_socketio.1 | [907] 13 Nov 09:50:06.092 # User requested shutdown…
09:50:06 redis_socketio.1 | [907] 13 Nov 09:50:06.092 # Redis is now ready to exit, bye bye…
09:50:06 system | redis_socketio.1 stopped (rc=-15)
09:50:06 redis_cache.1 | [925] 13 Nov 09:50:06.111 # User requested shutdown…
09:50:06 redis_cache.1 | [925] 13 Nov 09:50:06.111 # Redis is now ready to exit, bye bye…
09:50:06 system | redis_cache.1 stopped (rc=-15)
09:50:06 system | worker_default.1 stopped (rc=-15)
09:50:06 system | worker_long.1 stopped (rc=-15)
09:50:06 system | worker_short.1 stopped (rc=-15)
09:50:06 web.1 | Exception in thread Thread-2 (most likely raised during interpreter shutdown):
09:50:06 web.1 | Traceback (most recent call last):
09:50:06 web.1 | File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
09:50:06 web.1 | File “/home/global/frappe-bench/env/local/lib/python2.7/site-packages/watchdog/observers/api.py”, line 237, in run
09:50:06 web.1 | <type ‘exceptions.AttributeError’>: ‘NoneType’ object has no attribute ‘Empty’
09:50:06 system | web.1 stopped (rc=-15)

Please help what should i do ?

Looks like a similar problem to the one that @clarkej fixed here…

It’s a disk space error.
Try running this command in your terminal and then start bench,
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

1 Like

So you figure this smoking gun ENOSPC shreya115 !!

http://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html

This in a console might give clues?

frappe@erpnext:~/frappe-bench$ df -ah .
Filesystem Size Used Avail Use% Mounted on
/dev/disk/by-uuid/2610d265-e52b-4fb3-90c9-e0946b5c64dc 39G 5.9G 31G 16% /

edit: So then this fix Node.js: what is ENOSPC error and how to solve? - Stack Overflow

1 Like

Thank you so much shreya , its working .:slightly_smiling_face:

Just for info: node.js - Grunt watch error - Waiting...Fatal error: watch ENOSPC - Stack Overflow