Error after ERPNext Installation

Hi Everyone,
I have just installed ERPNext but after installation when I did bench restart I got the below errors:

sudo: supervisorctl: command not found
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/ubuntu/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/ubuntu/.bench/bench/commands/utils.py", line 19, in restart
    restart_supervisor_processes(bench_path='.', web_workers=web)
  File "/home/ubuntu/.bench/bench/utils.py", line 342, in restart_supervisor_processes
    supervisor_status = subprocess.check_output(['sudo', 'supervisorctl', 'status'], cwd=bench_path)
  File "/usr/lib/python2.7/subprocess.py", line 574, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['sudo', 'supervisorctl', 'status']' returned non-zero exit status 1

Any idea about this?

Regards
Ruchin Sharma

Please paste output for sudo supervisorctl status

@saurabh6790

vishnu@vishnu-VirtualBox:~/frappe-bench$ sudo supervisorctl status
[sudo] password for vishnu: 
sudo: supervisorctl: command not found
vishnu@vishnu-VirtualBox:~/frappe-bench$ sudo supervisorctl status

Same thing happened when I installed ERPNext on one of my another Server.

Regards
Ruchin Sharma

faced same issue in my local installation!

I had to restart the system and then i could do bench start.

Thanks

@Basawaraj_Savalagi
I did a restart too but still facing the same problem.

Regards
Ruchin Sharma

How did you install the bench and erpnext ?

I am facing same issue while performed sudo supervisorctl status command. I still getting error.
sudo: supervisorctl: command not found

Anybody has solution ? Please help me.

using centos or ubuntu?

Yes, I am using ubuntu 16.04 OS.

run
sudo bench setup production user
user : if you have installed via easy install script then user is frappe.

The above command will install all dependancies and setup the production mode.

1 Like