Error during bench update --patch (for Ver4 to Ver5)

Can you please help me with this?

ubuntu@ip-172-31-19-181:~$ bench update --patch
Migrating site1.local
Executing frappe.patches.v5_0.convert_to_barracuda_and_utf8mb4 in site1.local (site1.local)
Success
Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘docfield’, force=True) #2015-01-01 in site1.local (site1.local)
Success
Executing execute:frappe.reload_doc(‘email’, ‘doctype’, ‘email_alert’) #2014-07-15 in site1.local (site1.local)
Success
Executing execute:frappe.reload_doc(‘desk’, ‘doctype’, ‘todo’) #2014-12-31-1 in site1.local (site1.local)
Success
Executing execute:frappe.reload_doc(‘custom’, ‘doctype’, ‘property_setter’) #2014-12-31-1 in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.v4_to_v5 in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.remove_shopping_cart_app in site1.local (site1.local)
Success
Executing execute:frappe.permissions.reset_perms(“Module Def”) in site1.local (site1.local)
Success
Executing execute:frappe.permissions.reset_perms(“User”) #2015-03-24 in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.rename_table_fieldnames in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.communication_parent in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.clear_website_group_and_notifications in site1.local (site1.local)
Success
Executing execute:frappe.db.sql(“”“update tabComment set comment = substr(comment, 6, locate(”:“, comment)-6) where comment_type in (“Assigned”, “Assignment Completed”)”“”) in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.fix_feed in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.update_shared in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.bookmarks_to_stars in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.style_settings_to_website_theme in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.rename_ref_type_fieldnames in site1.local (site1.local)
Success
Executing frappe.patches.v5_0.fix_email_alert in site1.local (site1.local)
Success
Executing execute:frappe.permissions.reset_perms(“GL Entry”) #2014-06-09 in site1.local (site1.local)
Success
Executing execute:frappe.permissions.reset_perms(“Stock Ledger Entry”) #2014-06-09 in site1.local (site1.local)
Success
Executing execute:frappe.rename_doc(“DocType”, “Support Ticket”, “Issue”, force=True) in site1.local (site1.local)
Success
Executing erpnext.patches.v4_4.make_email_accounts in site1.local (site1.local)
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/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 77, in
main()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 14, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 202, in migrate
frappe.modules.patch_handler.run_all()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v4_4/make_email_accounts.py”, line 4, in execute
frappe.reload_doc(“email”, “doctype”, “email_account”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 522, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/init.py”, line 37, in reload_doc
return import_files(module, dt, dn, force=force)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 17, in import_files
return import_file(module, dt, dn, force=force)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 22, in import_file
ret = import_file_by_path(path, force)
File “/home/ubuntu/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)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 120, in import_doc
doc.insert()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 194, in insert
self.run_post_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 558, in run_post_save_methods
self.run_method(“on_update”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 506, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 619, in composer
return composed(self, method, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 602, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 500, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 113, in on_update
self.run_module_method(“on_doctype_update”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 122, in run_module_method
module = load_doctype_module(self.name, self.module)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/init.py”, line 62, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 531, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 10, in
from frappe.email.receive import POP3Server, Email
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/email/receive.py”, line 11, in
from email_reply_parser import EmailReplyParser
ImportError: No module named email_reply_parser
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/ubuntu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/bench-repo/bench/cli.py”, line 247, in update
patch_sites()
File “/home/ubuntu/bench-repo/bench/utils.py”, line 118, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench=bench)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 427, in run_frappe_cmd
subprocess.check_call((f, ‘-m’, ‘frappe.utils.bench_helper’, ‘frappe’) + args, cwd=sites_dir)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘(’/home/ubuntu/frappe-bench/env/bin/python’, ‘-m’, ‘frappe.utils.bench_helper’, ‘frappe’, ‘–site’, ‘all’, ‘migrate’)’ returned non-zero exit status 1

Run

bench update --requirements
bench retry-upgrade

Hello, I did as instructed but still having the same issue. I noticed in the error it refers to the name of my outbox account ‘Erp’… will this help ?

The error trace is like:

ubuntu@ip-172-31-19-181:~$ bench update --requirements
You are using pip version 6.0.6, however version 6.0.8 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
You are using pip version 6.0.6, however version 6.0.8 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
You are using pip version 6.0.6, however version 6.0.8 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
frappe-web: stopped
frappe-workerbeat: stopped
frappe-worker: stopped
frappe-worker: started
frappe-web: started
frappe-workerbeat: started


Not Found - Donate to help make better free and open source tools

ubuntu@ip-172-31-19-181:~$ bench retry-upgrade
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

  • branch develop → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
  • branch develop → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/shopping_cart: Online Shopping Cart integrated with ERPNext
  • branch develop → FETCH_HEAD
    Already up-to-date.
    Migrating site1.local
    Executing erpnext.patches.v4_4.make_email_accounts in site1.local (site1.local)
    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/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 77, in
    main()
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 14, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 610, in call
    return self.main(*args, **kwargs)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 590, in main
    rv = self.invoke(ctx)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
    return callback(*args, **kwargs)
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 28, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 202, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
    if not run_single(patchmodule = patch):
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + “.execute”)()
    File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v4_4/make_email_accounts.py”, line 69, in execute
    account.insert()
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 186, in insert
    self.db_insert()
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 243, in db_insert
    ), d.values())
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py”, line 129, in sql
    self._cursor.execute(query, values)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
    self.errorhandler(self, exc, value)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
    raise errorclass, errorvalue
    frappe.exceptions.NameError: (‘Email Account’, u’Erp’, IntegrityError(1062, “Duplicate entry ‘Erp’ for key ‘PRIMARY’”))
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 55, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
    return callback(*args, **kwargs)
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 263, in retry_upgrade
    patch_sites()
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 118, in patch_sites
    run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench=bench)
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 427, in run_frappe_cmd
    subprocess.check_call((f, ‘-m’, ‘frappe.utils.bench_helper’, ‘frappe’) + args, cwd=sites_dir)
    File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘(’/home/ubuntu/frappe-bench/env/bin/python’, ‘-m’, ‘frappe.utils.bench_helper’, ‘frappe’, ‘–site’, ‘all’, ‘migrate’)’ returned non-zero exit status 1

I have 4 sites on the same server. I am facing trouble with site1.local only. Site2/3/4 all went smoothly by doing “bench frappe sitename --latest”. Something is stuck for site1.local, unfortunately this is the most important of the 4 sites !

Here is what I get when I run bench frappe site1.local --latest:

ubuntu@ip-172-31-19-181:~$ bench frappe site1.local --latest
Executing erpnext.patches.v4_4.make_email_accounts in site1.local (site1.local)
Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.9.2’, ‘console_scripts’, ‘frappe’)()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py”, line 53, in main
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py”, line 431, in latest
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v4_4/make_email_accounts.py”, line 69, in execute
account.insert()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 186, in insert
self.db_insert()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 243, in db_insert
), d.values())
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/database.py”, line 129, in sql
self._cursor.execute(query, values)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
frappe.exceptions.NameError: (‘Email Account’, u’Erp’, IntegrityError(1062, “Duplicate entry ‘Erp’ for key ‘PRIMARY’”))
ubuntu@ip-172-31-19-181:~$

It seems you have 2 email pulling settings with the same email address!
Like maybe your outgoing email and incoming email had the same email
address?

@ anand It can be the case actually, is there a way around this ?

Released a fix. Can you update again?

Hello Anand, the fix worked for the emails issue but now I got stuck on another issue! Please see below:

Executing erpnext.patches.v4_2.repost_sle_for_si_with_no_warehouse in site1.local (site1.local)

Failed to repost: []
Success
Executing erpnext.patches.v5_0.newsletter in site1.local (site1.local)
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/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 77, in
main()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 14, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 202, in migrate
frappe.modules.patch_handler.run_all()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/patches/v5_0/newsletter.py”, line 37, in execute
general.import_from(“Contact”)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/crm/doctype/newsletter_list/newsletter_list.py”, line 32, in import_from
}).insert(ignore_permissions=True)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 177, in insert
self._validate()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 298, in _validate
self._validate_mandatory()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 453, in _validate_mandatory
raise frappe.MandatoryError(", ".join((each[0] for each in missing)))
frappe.exceptions.MandatoryError: email
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/ubuntu/bench-repo/bench/cli.py”, line 55, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/bench-repo/bench/cli.py”, line 247, in update
patch_sites()
File “/home/ubuntu/bench-repo/bench/utils.py”, line 118, in patch_sites
run_frappe_cmd(‘–site’, ‘all’, ‘migrate’, bench=bench)
File “/home/ubuntu/bench-repo/bench/utils.py”, line 427, in run_frappe_cmd
subprocess.check_call((f, ‘-m’, ‘frappe.utils.bench_helper’, ‘frappe’) + args, cwd=sites_dir)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘(’/home/ubuntu/frappe-bench/env/bin/python’, ‘-m’, ‘frappe.utils.bench_helper’, ‘frappe’, ‘–site’, ‘all’, ‘migrate’)’ returned non-zero exit status 1

Help please … This is actually our production server. I will be having all sorts of trouble if this doesn’t work by Sunday morning (our week in UAE starts on Sunday). Thanks in advance.

Hello leaders and experts. Can I have some help here please ?

Fixed. Can you update again and check?

Thanks a lot Anand. I am now on Ver5. HOWEVER :slight_smile:

Once the desk loaded, I received an error message saying “Redis cache server not running. Please contact Administrator / Tech support”. It looks like it’s not stopping me from doing the work, but can you advise how to get rid of it? I think it’s making my system slow !

Best regards,
Ahmed

bench update
bench retry-upgrade

It will also print the commands you will have to run to reload nginx and supervisor