I wonder how you have resolved this, as I’m facing the same problem.
I forgot. But I think I enabled and started each services one by one manually with
sudo systemctl enable (or start) servicename
These commands helped me
bench setup socketio
bench setup supervisor
bench setup redis
sudo supervisorctl reload
Worked for me. Thanks.
This worked for me too. Thanks
Are you still facing the issue?
I am also facing the same issue.
While doing bench restart getting bellow error.
ERROR: supervisorctl restart frappe-bench-workers: frappe-bench-web:
subprocess.CalledProcessError: Command 'supervisorctl restart frappe-bench-workers: frappe-bench-web:' returned non-zero exit status 7.
bench --site all list-apps
ModuleNotFoundError: No module named 'hospitality'
It has worked for me. Execute above all 4 commands inside erpnext installation directory with erpnext (user using which it has been setup) user.
Love you man! Thanks it worked for me
thanks a lot.worked for me also
It worked for me, thank you so much.
what is the fix for this? I’m using a kvm from hostinger and I tried everything but still i have an error only when I run
bench restart
ERROR: supervisorctl restart frappe-bench-web:
subprocess.CalledProcessError: Command 'supervisorctl restart frappe-bench-web:' returned non-zero exit status 7.
@seif_khelifi [quote=“seif_khelifi, post:24, topic:75995”]
what is the fix for this?
[/quote]
Here’s the fix:
bench setup socketio
bench setup supervisor
bench setup redis
sudo supervisorctl reload
Worked, Thanks. Kindly mark this as solution.
Also seems related (if I’m not mistaken) is the RAM of the server. Needs at least 4MB
i try to add redis search but not build correctly so i try to remove it now the erpnext stop and i cant bench restart and give me this error
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-web:frappe-bench-node-socketio: ERROR (spawn error)
frappe-bench-web:frappe-bench-frappe-web: started
ERROR: sudo supervisorctl restart frappe-bench-web:
subprocess.CalledProcessError: Command ‘sudo supervisorctl restart frappe-bench-web:’ returned non-zero exit status 7.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
^^^^^
File “/usr/local/lib/python3.12/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.12/dist-packages/bench/commands/utils.py”, line 41, in restart
Bench(“.”).reload(web, supervisor, systemd)
File “/usr/local/lib/python3.12/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/dist-packages/bench/bench.py”, line 154, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
File “/usr/local/lib/python3.12/dist-packages/bench/utils/bench.py”, line 343, in restart_supervisor_processes
failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/dist-packages/bench/utils/init.py”, line 181, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: sudo supervisorctl restart frappe-bench-web: