β frappe-bench bench restart
$ sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: ERROR (spawn error)
ERROR:
subprocess.CalledProcessError: Command βsudo supervisorctl restart frappe-bench-workers: 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.10/dist-packages/bench/cli.pyβ, line 127, in cli
bench_command()
File β/usr/local/lib/python3.10/dist-packages/click/core.pyβ, line 1130, in call
return self.main(*args, **kwargs)
File β/usr/local/lib/python3.10/dist-packages/click/core.pyβ, line 1055, in main
rv = self.invoke(ctx)
File β/usr/local/lib/python3.10/dist-packages/click/core.pyβ, line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File β/usr/local/lib/python3.10/dist-packages/click/core.pyβ, line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File β/usr/local/lib/python3.10/dist-packages/click/core.pyβ, line 760, in invoke
return __callback(*args, **kwargs)
File β/usr/local/lib/python3.10/dist-packages/bench/commands/utils.pyβ, line 41, in restart
Bench(β.β).reload(web, supervisor, systemd)
File β/usr/local/lib/python3.10/dist-packages/bench/utils/render.pyβ, line 126, in wrapper_fn
return fn(*args, **kwargs)
File β/usr/local/lib/python3.10/dist-packages/bench/bench.pyβ, line 151, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
File β/usr/local/lib/python3.10/dist-packages/bench/utils/bench.pyβ, line 321, in restart_supervisor_processes
failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
File β/usr/local/lib/python3.10/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.10/dist-packages/bench/utils/init.pyβ, line 158, in exec_cmd
raise CommandFailedError from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError