Bench start error, after faild update

Could you help me?
I’ve a custom app, and I was trying to update, then I faced this error when I start the bench, I need a solution to rerun this machine, or take backup from the DB and the custom app.

here is the error
Feb 02 20:16:34 atef-MacBookPro systemd[1]: Starting A high performance web server and a reverse proxy server…
Feb 02 20:16:34 atef-MacBookPro systemd[1]: Started A high performance web server and a reverse proxy server.
root@atef-MacBookPro:/home/frappe/frappe-bench# netstat -tnlp | grep -i listen
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1402/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 14457/redis-server
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1059/nginx: master
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 741/systemd-resolve
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 6558/cupsd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2107/master
tcp6 0 0 ::1:6379 :::* LISTEN 14457/redis-server
tcp6 0 0 :::80 :::* LISTEN 1059/nginx: master
tcp6 0 0 ::1:631 :::* LISTEN 6558/cupsd
tcp6 0 0 :::25 :::* LISTEN 2107/master
root@atef-MacBookPro:/home/frappe/frappe-bench# sudo service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-02-02 20:16:34 +03; 2h 56min ago
Docs: man:nginx(8)
Main PID: 1059 (nginx)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/nginx.service
├─1059 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─1060 nginx: worker process
├─1061 nginx: worker process
├─1062 nginx: worker process
└─1064 nginx: worker process

Feb 02 20:16:34 atef-MacBookPro systemd[1]: Starting A high performance web server and a reverse proxy server…
Feb 02 20:16:34 atef-MacBookPro systemd[1]: Started A high performance web server and a reverse proxy server.
root@atef-MacBookPro:/home/frappe/frappe-bench# bench start
23:13:08 system | redis_cache.1 started (pid=24298)
23:13:08 redis_cache.1 | 24305:C 02 Feb 23:13:08.496 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
23:13:08 redis_cache.1 | 24305:C 02 Feb 23:13:08.496 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=24305, just started
23:13:08 redis_cache.1 | 24305:C 02 Feb 23:13:08.496 # Configuration loaded
23:13:08 redis_cache.1 | 24305:M 02 Feb 23:13:08.499 * Increased maximum number of open files to 10032 (it was originally set to 1024).
23:13:08 redis_cache.1 | 24305:M 02 Feb 23:13:08.500 * Running mode=standalone, port=13000.
23:13:08 redis_cache.1 | 24305:M 02 Feb 23:13:08.503 # Server initialized
23:13:08 redis_cache.1 | 24305:M 02 Feb 23:13:08.503 # 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.
23:13:08 redis_cache.1 | 24305:M 02 Feb 23:13:08.503 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
23:13:08 redis_cache.1 | 24305:M 02 Feb 23:13:08.503 * Ready to accept connections
23:13:08 system | redis_socketio.1 started (pid=24300)
23:13:08 system | web.1 started (pid=24304)
23:13:08 redis_socketio.1 | 24315:C 02 Feb 23:13:08.502 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
23:13:08 redis_socketio.1 | 24315:C 02 Feb 23:13:08.502 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=24315, just started
23:13:08 redis_socketio.1 | 24315:C 02 Feb 23:13:08.502 # Configuration loaded
23:13:08 system | worker_short.1 started (pid=24317)
23:13:08 system | worker_default.1 started (pid=24322)
23:13:08 system | socketio.1 started (pid=24309)
23:13:08 system | watch.1 started (pid=24313)
23:13:08 redis_socketio.1 | 24315:M 02 Feb 23:13:08.510 * Increased maximum number of open files to 10032 (it was originally set to 1024).
23:13:08 system | redis_queue.1 started (pid=24306)
23:13:08 redis_socketio.1 | 24315:M 02 Feb 23:13:08.512 * Running mode=standalone, port=12000.
23:13:08 redis_socketio.1 | 24315:M 02 Feb 23:13:08.513 # Server initialized
23:13:08 redis_socketio.1 | 24315:M 02 Feb 23:13:08.513 # 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.
23:13:08 redis_socketio.1 | 24315:M 02 Feb 23:13:08.513 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
23:13:08 redis_socketio.1 | 24315:M 02 Feb 23:13:08.513 * Ready to accept connections
23:13:08 system | worker_long.1 started (pid=24325)
23:13:08 redis_queue.1 | 24324:C 02 Feb 23:13:08.528 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
23:13:08 redis_queue.1 | 24324:C 02 Feb 23:13:08.529 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=24324, just started
23:13:08 redis_queue.1 | 24324:C 02 Feb 23:13:08.529 # Configuration loaded
23:13:08 redis_queue.1 | 24324:M 02 Feb 23:13:08.530 * Increased maximum number of open files to 10032 (it was originally set to 1024).
23:13:08 redis_queue.1 | 24324:M 02 Feb 23:13:08.536 * Running mode=standalone, port=11000.
23:13:08 redis_queue.1 | 24324:M 02 Feb 23:13:08.537 # Server initialized
23:13:08 redis_queue.1 | 24324:M 02 Feb 23:13:08.537 # 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.
23:13:08 redis_queue.1 | 24324:M 02 Feb 23:13:08.537 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
23:13:08 redis_queue.1 | 24324:M 02 Feb 23:13:08.537 * Ready to accept connections
23:13:08 system | schedule.1 started (pid=24323)
23:13:09 socketio.1 | listening on *: 9000
23:13:13 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
23:13:13 web.1 | * Restarting with inotify reloader
23:13:13 watch.1 | yarn run v1.22.5
23:13:13 watch.1 | $ node rollup/watch.js
23:13:14 web.1 | * Debugger is active!
23:13:14 web.1 | * Debugger PIN: 318-522-155
23:13:14 watch.1 | module.js:550
23:13:14 watch.1 | throw err;
23:13:14 watch.1 | ^
23:13:14 watch.1 |
23:13:14 watch.1 | Error: Cannot find module ‘autoprefixer’
23:13:14 watch.1 | at Function.Module._resolveFilename (module.js:548:15)
23:13:14 watch.1 | at Function.Module._load (module.js:475:25)
23:13:14 watch.1 | at Module.require (module.js:597:17)
23:13:14 watch.1 | at require (internal/module.js:11:18)
23:13:14 watch.1 | at get_rollup_options_for_css (/home/frappe/frappe-bench/apps/frappe/rollup/config.js:120:23)
23:13:14 watch.1 | at get_rollup_options (/home/frappe/frappe-bench/apps/frappe/rollup/config.js:32:10)
23:13:14 watch.1 | at Object.keys.map.output_file (/home/frappe/frappe-bench/apps/frappe/rollup/config.js:214:5)
23:13:14 watch.1 | at Array.map ()
23:13:14 watch.1 | at get_options_for (/home/frappe/frappe-bench/apps/frappe/rollup/config.js:198:4)
23:13:14 watch.1 | at get_watch_options (/home/frappe/frappe-bench/apps/frappe/rollup/watch.js:57:18)
23:13:14 watch.1 | at apps_list.map.app (/home/frappe/frappe-bench/apps/frappe/rollup/watch.js:21:24)
23:13:14 watch.1 | at Array.map ()
23:13:14 watch.1 | at watch_assets (/home/frappe/frappe-bench/apps/frappe/rollup/watch.js:20:12)
23:13:14 watch.1 | at Object. (/home/frappe/frappe-bench/apps/frappe/rollup/watch.js:16:1)
23:13:14 watch.1 | at Module._compile (module.js:653:30)
23:13:14 watch.1 | at Object.Module._extensions…js (module.js:664:10)
23:13:14 watch.1 | error Command failed with exit code 1.
23:13:14 watch.1 | info Visit yarn run | Yarn for documentation about this command.
23:13:14 system | watch.1 stopped (rc=0)
23:13:14 system | sending SIGTERM to redis_cache.1 (pid 24298)
23:13:14 system | sending SIGTERM to redis_socketio.1 (pid 24300)
23:13:14 system | sending SIGTERM to redis_queue.1 (pid 24306)
23:13:14 system | sending SIGTERM to web.1 (pid 24304)
23:13:14 system | sending SIGTERM to socketio.1 (pid 24309)
23:13:14 system | sending SIGTERM to schedule.1 (pid 24323)
23:13:14 system | sending SIGTERM to worker_short.1 (pid 24317)
23:13:14 system | sending SIGTERM to worker_long.1 (pid 24325)
23:13:14 system | sending SIGTERM to worker_default.1 (pid 24322)
23:13:14 redis_cache.1 | 24305:signal-handler (1612296794) Received SIGTERM scheduling shutdown…
23:13:14 redis_socketio.1 | 24315:signal-handler (1612296794) Received SIGTERM scheduling shutdown…
23:13:14 redis_queue.1 | 24324:signal-handler (1612296794) Received SIGTERM scheduling shutdown…
23:13:14 system | socketio.1 stopped (rc=-15)
23:13:14 system | schedule.1 stopped (rc=-15)
23:13:15 redis_cache.1 | 24305:M 02 Feb 23:13:15.017 # User requested shutdown…
23:13:15 redis_cache.1 | 24305:M 02 Feb 23:13:15.018 * Removing the pid file.
23:13:15 redis_cache.1 | 24305:M 02 Feb 23:13:15.018 # Redis is now ready to exit, bye bye…
23:13:15 system | redis_cache.1 stopped (rc=-15)
23:13:15 redis_socketio.1 | 24315:M 02 Feb 23:13:15.038 # User requested shutdown…
23:13:15 redis_socketio.1 | 24315:M 02 Feb 23:13:15.038 * Removing the pid file.
23:13:15 redis_socketio.1 | 24315:M 02 Feb 23:13:15.038 # Redis is now ready to exit, bye bye…
23:13:15 system | redis_socketio.1 stopped (rc=-15)
23:13:15 redis_queue.1 | 24324:M 02 Feb 23:13:15.056 # User requested shutdown…
23:13:15 redis_queue.1 | 24324:M 02 Feb 23:13:15.056 * Removing the pid file.
23:13:15 redis_queue.1 | 24324:M 02 Feb 23:13:15.056 # Redis is now ready to exit, bye bye…
23:13:15 worker_default.1 | Exception in thread Thread-1:
23:13:15 worker_default.1 | Traceback (most recent call last):
23:13:15 worker_default.1 | File “/usr/lib/python3.6/threading.py”, line 916, in _bootstrap_inner
23:13:15 worker_default.1 | self.run()
23:13:15 worker_long.1 | Exception in thread Thread-1:
23:13:15 worker_long.1 | Traceback (most recent call last):
23:13:15 worker_long.1 | File “/usr/lib/python3.6/threading.py”, line 916, in _bootstrap_inner
23:13:15 worker_long.1 | self.run()
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3719, in run
23:13:15 worker_long.1 | timeout=sleep_time)
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3617, in get_message
23:13:15 worker_long.1 | response = self.parse_response(block=False, timeout=timeout)
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3503, in parse_response
23:13:15 worker_long.1 | if not block and not conn.can_read(timeout=timeout):
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 734, in can_read
23:13:15 worker_long.1 | return self._parser.can_read(timeout)
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 321, in can_read
23:13:15 worker_long.1 | return self._buffer and self._buffer.can_read(timeout)
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 231, in can_read
23:13:15 worker_long.1 | raise_on_timeout=False)
23:13:15 worker_long.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 201, in _read_from_socket
23:13:15 worker_long.1 | raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
23:13:15 worker_long.1 | redis.exceptions.ConnectionError: Connection closed by server.
23:13:15 worker_long.1 |
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3719, in run
23:13:15 worker_default.1 | timeout=sleep_time)
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3617, in get_message
23:13:15 worker_default.1 | response = self.parse_response(block=False, timeout=timeout)
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3503, in parse_response
23:13:15 worker_default.1 | if not block and not conn.can_read(timeout=timeout):
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 734, in can_read
23:13:15 worker_default.1 | return self._parser.can_read(timeout)
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 321, in can_read
23:13:15 worker_default.1 | return self._buffer and self._buffer.can_read(timeout)
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 231, in can_read
23:13:15 worker_default.1 | raise_on_timeout=False)
23:13:15 worker_default.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 201, in _read_from_socket
23:13:15 worker_default.1 | raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
23:13:15 system | redis_queue.1 stopped (rc=-15)
23:13:15 worker_short.1 | Exception in thread Thread-1:
23:13:15 worker_short.1 | Traceback (most recent call last):
23:13:15 worker_short.1 | File “/usr/lib/python3.6/threading.py”, line 916, in _bootstrap_inner
23:13:15 worker_short.1 | self.run()
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3719, in run
23:13:15 worker_short.1 | timeout=sleep_time)
23:13:15 worker_default.1 | redis.exceptions.ConnectionError: Connection closed by server.
23:13:15 worker_default.1 |
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3617, in get_message
23:13:15 worker_short.1 | response = self.parse_response(block=False, timeout=timeout)
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/client.py”, line 3503, in parse_response
23:13:15 worker_short.1 | if not block and not conn.can_read(timeout=timeout):
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 734, in can_read
23:13:15 worker_short.1 | return self._parser.can_read(timeout)
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 321, in can_read
23:13:15 worker_short.1 | return self._buffer and self._buffer.can_read(timeout)
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 231, in can_read
23:13:15 worker_short.1 | raise_on_timeout=False)
23:13:15 worker_short.1 | File “/home/frappe/frappe-bench/env/lib/python3.6/site-packages/redis/connection.py”, line 201, in _read_from_socket
23:13:15 worker_short.1 | raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
23:13:15 worker_short.1 | redis.exceptions.ConnectionError: Connection closed by server.
23:13:15 worker_short.1 |
23:13:15 system | worker_long.1 stopped (rc=-15)
23:13:15 system | worker_default.1 stopped (rc=-15)
23:13:15 system | worker_short.1 stopped (rc=-15)
23:13:15 system | web.1 stopped (rc=-15)
root@atef-MacBookPro:/home/frappe/frappe-bench#

Try bench setup requirements, bench setup redis and bench setup socketio

Is there a reason the root user is operating bench?

1 Like