Unable to initialize bench

Trying to spin up new bench on Docker. Followed development instructions on https://github.com/frappe/frappe_docker/tree/main/development. Running into Command 'supervisorctl status' returned non-zero exit status 127 error.

Complete error message:

Traceback (most recent call last):
File “/home/frappe/.bench/bench/commands/make.py”, line 70, in init
init(
File “/home/frappe/.bench/bench/utils/render.py”, line 95, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.bench/bench/utils/system.py”, line 78, in init
get_app(
File “/home/frappe/.bench/bench/app.py”, line 371, in get_app
app.install(verbose=verbose, skip_assets=skip_assets)
File “/home/frappe/.bench/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.bench/bench/app.py”, line 198, in install
install_app(
File “/home/frappe/.bench/bench/app.py”, line 436, in install_app
bench.reload()
File “/home/frappe/.bench/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.bench/bench/bench.py”, line 142, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web)
File “/home/frappe/.bench/bench/utils/bench.py”, line 256, in restart_supervisor_processes
supervisor_status = get_cmd_output(“supervisorctl status”, cwd=bench_path)
File “/home/frappe/.bench/bench/utils/init.py”, line 185, in get_cmd_output
output = subprocess.check_output(
File “/home/frappe/.pyenv/versions/3.9.9/lib/python3.9/subprocess.py”, line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/home/frappe/.pyenv/versions/3.9.9/lib/python3.9/subprocess.py”, line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘supervisorctl status’ returned non-zero exit status 127.

Also found this, Error when running bench init. May be something was wrong with bench for few days?

EDIT: yes bench on latest commit fails. Irrespective of containerized or native setup.

cd ~/.bench
git reset --hard 25f49c2dbba998a7b11975a6f17034bdb050c3ab
pip3 install --user -e ~/.bench

And then try again.

1 Like

Put up an issue in bench repo if you can confirm this.

This issues happens even if I reset to d38b63a483deb0186828e82e09c4c650eb672d54 commit.

This is the solution… except for the commit. 60084fd6b33c08348b3f36df5ef574308d1abac1 worked for me.
commit: Merge branch ‘develop’ into uri-path · frappe/bench@60084fd (github.com)

Please update