Error when running bench init

Traceback (most recent call last):

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


It may help to say the operating environment and what install guide is being used. The error message suggests that something is amiss with supervisor, What does supervisorctl version return , in a terminal?

Hello @smino, thanks for your response.
I’m using Ubuntu 21.04 as the OS.
I followed the installation steps from

It might we worthwhile to see if the installation steps from the source are consistent with the documentation.

Has the author of the install method been consulted for advice?

Here is a link to the steps from the author

Try this:

Hello @spryng, are you saying installing erpnext on Ubuntu distro is not a good idea?

Are you new to Linux?
The process works for Ubuntu 20.x.x too
What works for Debian in most cases works for Ubuntu, please follow all steps don’t leave any undone, you should have a working instance

Not new to Linux.
I get you now.