Hi,
I recently ran bench update --no-backup
on my test environment and I got the following error:
Wrote ./assets/js/erpnext-web.min.js - 1k
Wrote ./assets/css/module.min.css - 2k
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: frappe'>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==3.0.0', 'console_scripts', 'bench')()
File "/home/aditya/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/aditya/bench-repo/bench/commands/update.py", line 61, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File "/home/aditya/bench-repo/bench/commands/update.py", line 97, in _update
restart_supervisor_processes(bench=bench_path)
File "/home/aditya/bench-repo/bench/utils.py", line 293, in restart_supervisor_processes
exec_cmd('sudo supervisorctl restart {group}'.format(group=group), cwd=bench)
File "/home/aditya/bench-repo/bench/utils.py", line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: sudo supervisorctl restart frappe:
And I get the below error on bench restart
aditya@ubuntu:~/frappe-bench$ bench restart
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: frappe'>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.1', 'console_scripts', 'bench')()
File "/home/aditya/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/aditya/bench-repo/bench/commands/utils.py", line 18, in restart
restart_supervisor_processes()
File "/home/aditya/bench-repo/bench/utils.py", line 293, in restart_supervisor_processes
exec_cmd('sudo supervisorctl restart {group}'.format(group=group), cwd=bench)
File "/home/aditya/bench-repo/bench/utils.py", line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: sudo supervisorctl restart frappe:
Now due to this I am unable to run the bench start
command.