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/", line 40, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/ubuntu/.bench/bench/commands/", line 19, in restart
    restart_supervisor_processes(bench_path='.', web_workers=web)
  File "/home/ubuntu/.bench/bench/", line 342, in restart_supervisor_processes
    supervisor_status = subprocess.check_output(['sudo', 'supervisorctl', 'status'], cwd=bench_path)
  File "/usr/lib/python2.7/", 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?

Ruchin Sharma

Please paste output for sudo supervisorctl status


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.

Ruchin Sharma

faced same issue in my local installation!

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


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

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.

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