Bench Update Error 03-May-2016

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.

are these the full traces ??

if no please post the full ones…

if yes then please advise what branch are you one master or develop?

sorry for late replies

These are full traces.
I am on develop branch

Edit:
When I run bench start I am getting the below traces and the server shutsdown:

you have missconfiguration in redis as i think…

can you please run:

bench clear-cache
bench setup redis
bench restart

and feedback please

Same error :frowning:

aditya@ubuntu:~/frappe-bench$ bench clear-cache
aditya@ubuntu:~/frappe-bench$ bench setup redis
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==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/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:

Edit: Btw, the command sudo supervisorctl restart frappe is giving the below error maybe that could shed some light on my errors

aditya@ubuntu:~/frappe-bench$ sudo supervisorctl restart frappe
frappe: ERROR (no such process)
frappe: ERROR (no such process)

@adityaduggal Hmmmm, ok, do you need to be on the develop branch ?

you know there is a big difference between develop branch and developer mode…

the develop branch is the BETA branch for advanced developers to make new modules and apps and to help in debugging core modules …

develop mode is on a master branch not BETA do also do modules and apps but is meant for development of apps and modules but with the production ready version that is much less buggy…

Well this is a system where I develop my custom app…adding some validations and reports so really speaking the develop branch is something which gives me a preview of what is coming and also lets me pre-empt some of the errors that would be coming in the master branch but yeah its not at all necessary and I guess I can still develop my custom app being on the master branch.

Edit:
I switched to the master branch by bench switch-to-master and then when I ran bench update --patch I got the below error:

Updating frappe                     : [=                                       ]Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module>
    main()
  File "/home/aditya/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/commands.py", line 205, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/migrate.py", line 29, in migrate
    frappe.model.sync.sync_all(verbose=verbose)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/model/sync.py", line 43, in sync_for
    import_file_by_path(doc_path, force=force)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 54, in import_file_by_path
    import_doc(doc, force=force, data_import=data_import, pre_process=pre_process)
  File "/home/aditya/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 122, in import_doc
    doc.insert()
  File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 203, in insert
    self.db_insert()
  File "/home/aditya/frappe-bench/apps/frappe/frappe/model/base_document.py", line 282, in db_insert
    ), d.values())
  File "/home/aditya/frappe-bench/apps/frappe/frappe/database.py", line 136, in sql
    self._cursor.execute(query, values)
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/aditya/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1048, "Column 'track_seen' cannot be null")
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 91, in _update
    patch_sites(bench=bench_path)
  File "/home/aditya/bench-repo/bench/utils.py", line 131, in patch_sites
    run_frappe_cmd('--site', 'all', 'migrate', bench=bench)
  File "/home/aditya/bench-repo/bench/utils.py", line 468, in run_frappe_cmd
    raise CommandFailedError(args)
bench.utils.CommandFailedError: ('--site', 'all', 'migrate')

Edit2:
After switching to the master branch I am still getting the same error:

aditya@ubuntu:~/frappe-bench$ bench clear-cache
aditya@ubuntu:~/frappe-bench$ bench setup redis
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==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/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:

I did the above since the bench start does start the server but also sends a shutdown signal to the server and hence I tried to re-setup redis

ikhlas@ikhlas:~/frappe-bench$ bench switch-to-master
Switched to branch 'master'
Your branch is behind 'upstream/master' by 7 commits, and can be fast-forwarded.
Updating eecd537..8d881a9
Fast-forward
 frappe/__version__.py                              |    2 +-
 frappe/boot.py                                     |    2 +-
 frappe/core/doctype/communication/email.py         |    2 +-
 .../email/doctype/email_account/email_account.py   |    1 +
 frappe/hooks.py                                    |    2 +-
 .../doctype/dropbox_backup/dropbox_backup.py       |    9 +++++----
 setup.py                                           |    2 +-
 7 files changed, 11 insertions(+), 9 deletions(-)
remote: Counting objects: 4, done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 4
Unpacking objects: 100% (4/4), done.
From https://github.com/frappe/erpnext
   ed3c012..c711b82  develop    -> upstream/develop
   2cda7fd..9b61984  hotfix     -> upstream/hotfix
   2cda7fd..9b61984  master     -> upstream/master
 * [new tag]         v6.27.12   -> v6.27.12
 * [new tag]         v6.27.13   -> v6.27.13
 * [new tag]         v6.27.14   -> v6.27.14
 * [new tag]         v6.27.15   -> v6.27.15
error: Your local changes to the following files would be overwritten by checkout:
    erpnext/fixtures/web_form.json
Please, commit your changes or stash them before you can switch branches.
Aborting
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==2.1.0', 'console_scripts', 'bench')()
  File "/home/ikhlas/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/ikhlas/bench-repo/bench/commands/update.py", line 123, in switch_to_master
    switch_to_master(upgrade=upgrade)
  File "/home/ikhlas/bench-repo/bench/app.py", line 182, in switch_to_master
    switch_branch('master', apps=apps, bench=bench, upgrade=upgrade)
  File "/home/ikhlas/bench-repo/bench/app.py", line 169, in switch_branch
    exec_cmd("git checkout {branch}".format(branch=branch), cwd=app_dir)
  File "/home/ikhlas/bench-repo/bench/utils.py", line 99, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git checkout master

@Mohamed_Sajid @adityaduggal changing branches would not be this easy guys, you need to get the original files from git …

you have to change the master and make a full patch to replace the files…

am not sure i can help in this one but u think @vjFaLk can help you in this one…

Refer to the following post last comment

@ramielian Thanks for the help but it seems my issue is different since i have switched to the master branch and all the patches ran fine still I am getting the below error which basically shows that the frappe is no longer a supervisor process and I need to link that, I have done the following steps:

bench switch-to-master
bench update --patch (shows some errors)
bench mysql
ALTER TABLE tabDocType DROP COLUMN track_seen;
ALTER TABLE tabDocType DROP COLUMN quick_entry;
ALTER TABLE tabDocType DROP COLUMN beta;
Exit the SQL terminal, and run 
bench update --patch

Now after running the above commands, I am getting the below traces:

aditya@ubuntu:~/frappe-bench$ bench update --patch
Migrating rigpl.local
Updating frappe                     : [========================================]
Updating erpnext                    : [========================================]
Updating rigpl_erpnext              : [========================================]
Updating rohit_common               : [========================================]
Updating mandrill_integration       : [========================================]
Updating sendgrid_integration       : [========================================]
Importing /home/aditya/frappe-bench/apps/rigpl_erpnext/rigpl_erpnext/fixtures/custom_field.csv
Importing /home/aditya/frappe-bench/apps/rohit_common/rohit_common/fixtures/custom_field.csv
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:

So basically we are not addressing the real issue which is something beyond my understanding.

@adityaduggal

run bench migrate command and past the output here

also you can generate configuration again with the help of following command.

bench setup socketio
bench setup supervisor
bench setup nginx
bench setup redis-cache
sudo service nginx reload
sudo supervisorctl reload
1 Like

There is no error on bench migrate as below:

aditya@ubuntu:~/frappe-bench$ bench migrate
Migrating rigpl.local
Updating frappe                     : [========================================]
Updating erpnext                    : [========================================]
Updating rigpl_erpnext              : [========================================]
Updating rohit_common               : [========================================]
Updating mandrill_integration       : [========================================]
Updating sendgrid_integration       : [========================================]
Importing /home/aditya/frappe-bench/apps/rigpl_erpnext/rigpl_erpnext/fixtures/custom_field.csv
Importing /home/aditya/frappe-bench/apps/rohit_common/rohit_common/fixtures/custom_field.csv

But the problem is with bench update as you can see below:

aditya@ubuntu:~/frappe-bench$ bench update --no-backup
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
From https://github.com/frappe/frappe
   4780786..ca07fc8  hotfix     -> upstream/hotfix
INFO:bench.utils:updating bench
remote: Counting objects: 6, done.
remote: Total 6 (delta 4), reused 4 (delta 4), pack-reused 1
Unpacking objects: 100% (6/6), done.
From https://github.com/frappe/bench
   3f72026..0d09751  master     -> origin/master
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From https://github.com/frappe/erpnext
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling rigpl_erpnext
From https://github.com/adityaduggal/rigpl-erpnext
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling rohit_common
From https://github.com/adityaduggal/rohit-common
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling frappe_theme
From https://github.com/frappe/frappe_theme
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling manual_erpnext_com
From https://github.com/frappe/manual_erpnext_com
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling mandrill_integration
From https://github.com/frappe/mandrill_integration
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling meeting
From https://github.com/frappe/meeting
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling sendgrid_integration
From https://github.com/semilimes/sendgrid_integration
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling livechat
From https://github.com/semilimes/livechat
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
Migrating rigpl.local
Updating frappe                     : [========================================]
Updating erpnext                    : [========================================]
Updating rigpl_erpnext              : [========================================]
Updating rohit_common               : [========================================]
Updating mandrill_integration       : [========================================]
Updating sendgrid_integration       : [========================================]
Importing /home/aditya/frappe-bench/apps/rigpl_erpnext/rigpl_erpnext/fixtures/custom_field.csv
Importing /home/aditya/frappe-bench/apps/rohit_common/rohit_common/fixtures/custom_field.csv
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 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:

Do you have an customization on source code ?

The best way for now is to take the short way and make a backup and new installation.

The framework it self have some unknown issues and am not sure if some one in the community will be able to help much…

So I would remove everything and reinstall all the frappe related things and this time production only.

:frowning: