Error when running bench init

Traceback (most recent call last):

File “/opt/bench/bench-repo/bench/commands/make.py”, line 70, in init
init(
File “/opt/bench/bench-repo/bench/utils/render.py”, line 95, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/bench/bench-repo/bench/utils/system.py”, line 78, in init
get_app(
File “/opt/bench/bench-repo/bench/app.py”, line 371, in get_app
app.install(verbose=verbose, skip_assets=skip_assets)
File “/opt/bench/bench-repo/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/bench/bench-repo/bench/app.py”, line 198, in install
install_app(
File “/opt/bench/bench-repo/bench/app.py”, line 436, in install_app
bench.reload()
File “/opt/bench/bench-repo/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/bench/bench-repo/bench/bench.py”, line 142, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web)
File “/opt/bench/bench-repo/bench/utils/bench.py”, line 256, in restart_supervisor_processes
supervisor_status = get_cmd_output(“supervisorctl status”, cwd=bench_path)
File “/opt/bench/bench-repo/bench/utils/init.py”, line 185, in get_cmd_output
output = subprocess.check_output(
File “/usr/lib/python3.9/subprocess.py”, line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/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.

Hi,

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 codewithkarani.com

It might we worthwhile to see if the installation steps from the http://codewithkarani.com/ 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 https://codewithkarani.com/?s=Erpnext+install

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.