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: