Version 9 Bench restart error

Bench restart error

INFO:bench.utils:sudo supervisorctl restart frappe:
error: <class ‘xmlrpclib.Fault’>, <Fault 10: ‘BAD_NAME: frappe’>: file: /usr/lib/python2.7/ line: 794
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/administrator/.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/administrator/.bench/bench/commands/”, line 19, in restart
restart_supervisor_processes(bench_path=‘.’, web_workers=web)
File “/home/administrator/.bench/bench/”, line 387, in restart_supervisor_processes
exec_cmd(‘sudo supervisorctl restart {group}’.format(group=group), cwd=bench_path)
File “/home/administrator/.bench/bench/”, line 140, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: sudo supervisorctl restart frappe:

1 Like

Would you be able to share some more details such as what environment (OS, ERPNext installation type) and status (system operational, last thing before this happened?, …)?


OS : Ubuntu 14.04.2, ERPNext installation type; Esay intall for developer setup

I created a new module and try to show it in show / hide modules page
I used bench restart command but i got an error as shown before

In Dev setup use:
bench start
Once running you can use
bench restart

If thats not the issue try:
sudo service nginx restart
sudo supervisorctl restart all

1 Like