Hello,
Our Development ERPNext environment is unable to start when run bench start command.
We are getting below error.
*12:08:02 socketio.1 | listening on : 9000
12:08:05 worker_long.1 | Usage: bench [OPTIONS] COMMAND [ARGS]…
12:08:05 worker_long.1 | Try “bench --help” for help.
12:08:05 worker_long.1 |
12:08:05 worker_long.1 | Error: No such command “worker”.
12:08:05 system | worker_long.1 stopped (rc=2)
12:08:05 system | sending SIGTERM to redis_socketio.1 (pid 17728)
12:08:05 system | sending SIGTERM to watch.1 (pid 17731)
12:08:05 system | sending SIGTERM to redis_queue.1 (pid 17732)
12:08:05 system | sending SIGTERM to web.1 (pid 17743)
12:08:05 system | sending SIGTERM to schedule.1 (pid 17746)
12:08:05 system | sending SIGTERM to worker_default.1 (pid 17748)
12:08:05 system | sending SIGTERM to socketio.1 (pid 17745)
12:08:05 system | sending SIGTERM to redis_cache.1 (pid 17747)
12:08:05 system | sending SIGTERM to worker_short.1 (pid 17750)
12:08:05 redis_socketio.1 | 17728:signal-handler (1595918285) Received SIGTERM scheduling shutdown…
12:08:05 system | watch.1 stopped (rc=-15)
12:08:05 redis_queue.1 | 17732:signal-handler (1595918285) Received SIGTERM scheduling shutdown…
12:08:05 system | worker_short.1 stopped (rc=-15)
12:08:05 redis_socketio.1 | 17728:M 28 Jul 12:08:05.841 # User requested shutdown…
12:08:05 redis_socketio.1 | 17728:M 28 Jul 12:08:05.841 * Removing the pid file.
12:08:05 redis_socketio.1 | 17728:M 28 Jul 12:08:05.842 # Redis is now ready to exit, bye bye…
12:08:05 redis_cache.1 | 17747:signal-handler (1595918285) Received SIGTERM scheduling shutdown…
12:08:05 system | schedule.1 stopped (rc=-15)
12:08:05 system | worker_default.1 stopped (rc=-15)
12:08:05 system | web.1 stopped (rc=-15)
12:08:05 system | redis_socketio.1 stopped (rc=0)
12:08:05 redis_cache.1 | 17747:M 28 Jul 12:08:05.859 # User requested shutdown…
12:08:05 redis_cache.1 | 17747:M 28 Jul 12:08:05.859 * Removing the pid file.
12:08:05 redis_cache.1 | 17747:M 28 Jul 12:08:05.859 # Redis is now ready to exit, bye bye…
12:08:05 system | redis_cache.1 stopped (rc=0)
12:08:05 system | socketio.1 stopped (rc=-15)
12:08:05 redis_queue.1 | 17732:M 28 Jul 12:08:05.906 # User requested shutdown…
12:08:05 redis_queue.1 | 17732:M 28 Jul 12:08:05.906 * Removing the pid file.
12:08:05 redis_queue.1 | 17732:M 28 Jul 12:08:05.906 # Redis is now ready to exit, bye bye…
12:08:05 system | redis_queue.1 stopped (rc=0)
Up on further checking, we have found that even bench --help command is unable to display the framework command and showing below error.
()
Traceback (most recent call last):
- File “/bin/bench”, line 11, in *
- load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()*
- File “/home/frappe/.bench/bench/cli.py”, line 31, in cli*
- print(get_frappe_help())*
- File “/home/frappe/.bench/bench/cli.py”, line 113, in get_frappe_help*
- return “Framework commands:\n” + out.split(‘Commands:’)[1]*
IndexError: list index out of range
[frappe@DEVERPNEXT frappe-bench]$ bench version
Usage: bench [OPTIONS] COMMAND [ARGS]…
Try “bench --help” for help.
Please suggest the way forward to troubleshoot and resolve the issue.