I was getting the above error on develop branch on my test account and then out of frustration I had shifted to the master branch in my test environment and I had to reinstall frappe from scratch.
But after using the master branch for few months I am again getting this error on running bench update --no-backup
I hope someone this time could give me a solution to this problem
Migrating rigb.local
Executing erpnext.patches.v6_20x.repost_valuation_rate_for_negative_inventory in rigb.local (6b2467e6e9)
Success
Updating frappe : [========================================]
Updating erpnext : [========================================]
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/frappe-web.min.js - 101k
Wrote ./assets/js/form.min.js - 113k
Wrote ./assets/js/report.min.js - 157k
Wrote ./assets/js/erpnext.min.js - 36k
Wrote ./assets/css/list.min.css - 6k
Wrote ./assets/js/erpnext-web.min.js - 1k
Wrote ./assets/css/report.min.css - 7k
Wrote ./assets/css/frappe-web.css - 51k
Wrote ./assets/js/list.min.js - 66k
Wrote ./assets/js/dialog.min.js - 58k
Wrote ./assets/js/desk.min.js - 874k
Wrote ./assets/css/form.min.css - 2k
Wrote ./assets/js/editor.min.js - 26k
Wrote ./assets/css/erpnext.css - 1k
Wrote ./assets/css/desk.min.css - 256k
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 60, 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 96, in _update
restart_supervisor_processes(bench_path=bench_path)
File "/home/aditya/bench-repo/bench/utils.py", line 322, in restart_supervisor_processes
exec_cmd('sudo supervisorctl restart {group}'.format(group=group), cwd=bench_path)
File "/home/aditya/bench-repo/bench/utils.py", line 100, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: sudo supervisorctl restart frappe: