Error migrating v4 to v5

Hi,

we did:

bench update
bench migrate-to-v5

update worked OK and the command migrate-to-v5 is available but after migrating, we get in the website “Updating. We will be back in a few moments…”:

And the error in console is:

Executing erpnext.patches.v4_4.make_email_accounts in ourdomain.com (ourdomain.com)
Traceback (most recent call last):
  File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.6.1', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 40, in main
    ret = run(fn, args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 84, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 68, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 443, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/patches/v4_4/make_email_accounts.py", line 49, in execute
    account.insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 206, in insert
    self.db_insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/base_document.py", line 197, in db_insert
    ), d.values())
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 129, in sql
    self._cursor.execute(query, values)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
frappe.exceptions.NameError: ('Email Account', u'Dialog', IntegrityError(1062, "Duplicate entry 'Dialog' for key 'PRIMARY'"))
Error: None
Traceback (most recent call last):
  File "/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
    return bench()
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/cli.py", line 170, in update
    patch_sites()
  File "/home/erpnext/bench-repo/bench/utils.py", line 91, in patch_sites
    exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, 'sites'))
  File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/erpnext/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1
Error: None
Traceback (most recent call last):
  File "/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
    return bench()
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib64/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/cli.py", line 208, in _migrate_to_v5
    migrate_to_v5(bench=bench)
  File "/home/erpnext/bench-repo/bench/migrate_to_v5.py", line 16, in migrate_to_v5
    exec_cmd("{bench} update".format(bench=sys.argv[0]))
  File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/bin/bench update' returned non-zero exit status 1

@nabinhait please check

Hi,

we are on the latest version of ERPNext 4.23.0 with Frappe v4.13.0 and Shopping Cart v0.7.0.

As the release date of v5 is near, we tried to upgrade again but keep receiving this error and the result is an internal server error:

Executing erpnext.patches.v4_4.make_email_accounts in site1.local (site1.local)
Traceback (most recent call last):
  File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.9.3', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 448, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/patches/v4_4/make_email_accounts.py", line 49, in execute
    account.insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 175, in insert
    self.db_insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/base_document.py", line 237, in db_insert
    ), d.values())
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 129, in sql
    self._cursor.execute(query, values)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
frappe.exceptions.NameError: ('Email Account', u'Dialog', IntegrityError(1062, "Duplicate entry 'Dialog' for key 'PRIMARY'"))
Error: None
Traceback (most recent call last):
  File "/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
    return bench()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/cli.py", line 172, in update
    patch_sites()
  File "/home/erpnext/bench-repo/bench/utils.py", line 93, in patch_sites
    exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, 'sites'))
  File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/erpnext/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1
Error: None
Traceback (most recent call last):
  File "/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
    return bench()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/cli.py", line 210, in _migrate_to_v5
    migrate_to_v5(bench=bench)
  File "/home/erpnext/bench-repo/bench/migrate_to_v5.py", line 16, in migrate_to_v5
    exec_cmd("{bench} update".format(bench=sys.argv[0]))
  File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/bin/bench update' returned non-zero exit status 1

Try increasing the memory (RAM) available on your target machine. We found 512 mb caused similar issues, and were resolved with at least 1GB.

Thanks for the tip, but the RAM issue is discarded. We did the test originally with 1GB. Just to make sure, i was trying also allocating 2GB RAM and there is still the problem with erpnext.patches.v4_4.make_email_accounts

We are on CentOS 7 latest.

Just to give more info, when trying to execute again bench migrate-to-v5 we are told that frappe is not anymore on v4.x.x, so actually part of the migration was done.

Traceback (most recent call last):
  File "/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
    return bench()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/cli.py", line 210, in _migrate_to_v5
    migrate_to_v5(bench=bench)
  File "/home/erpnext/bench-repo/bench/migrate_to_v5.py", line 12, in migrate_to_v5
    validate_v4(bench=bench)
  File "/home/erpnext/bench-repo/bench/migrate_to_v5.py", line 41, in validate_v4
    raise Exception("{} is not on v4.x.x".format(repo))
Exception: frappe is not on v4.x.x

And when trying to execute bench update, we receive the same problem as in the migration:

Running latest for site1.local
--------------------------------------------------
Executing erpnext.patches.v4_4.make_email_accounts in site1.local (site1.local)
Traceback (most recent call last):
  File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.9.3', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 448, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/patches/v4_4/make_email_accounts.py", line 49, in execute
    account.insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 175, in insert
    self.db_insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/base_document.py", line 237, in db_insert
    ), d.values())
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 129, in sql
    self._cursor.execute(query, values)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/erpnext/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
frappe.exceptions.NameError: ('Email Account', u'Dialog', IntegrityError(1062, "Duplicate entry 'Dialog' for key 'PRIMARY'"))
Error: None
Traceback (most recent call last):
  File "/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/erpnext/bench-repo/bench/cli.py", line 38, in cli
    return bench()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/erpnext/bench-repo/bench/cli.py", line 172, in update
    patch_sites()
  File "/home/erpnext/bench-repo/bench/utils.py", line 93, in patch_sites
    exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, 'sites'))
  File "/home/erpnext/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/erpnext/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1

Hi,

Did you solve your problem?

If so, could I kindly ask what did you do?

… I am having the same issue.

Thanks and kind regards,

Yes, migrate-to-v5 won’t work after the branches are shifted.
Run, bench frappe --ipython and delete the email accounts

for e in frappe.get_list('Email Account'):
    frappe.delete_doc('Email Account', e['name'])

Hi pdvyas,

Thank you.

So, should we use migrate-to-v5 at all or not?

These instructions that you give are to do instead of migrate-to-v5?

Is there a step by sted guide of how to update anywhere?

Thanks and regards,

As of now, migrate-to-v5 is the way to try version 5. What I meant was that you cannot run it twice.

Hi pdvyas,

Thank you.

I run your commands:

bench frappe --ipython 
for e in frappe.get_list('Email Account'):
    frappe.delete_doc('Email Account', e['name'])

And the update process keeps complaining as the wrong email address were still there.

I am not very capable at programming. Do I need to change ‘name’ by other thing, or it is exactly like that how I should run that code?

Many thanks and kind regards,

Yes, we understand that migrate-to-v5 will not work the second time. But our problem is that the first time we run migrate-to-v5 we keep receiving the error shown above and the migration is cancelled. It seems for other users also.

Could you please give us a workaround? migrate-to-v5 is just not working.

Or do you mean we should:

  1. bench migrate-to-v5
  2. delete the email accounts
  3. bench update
    ?

In the current state (in middle of the migrate-to-v5), you can delete the email accounts and run bench update --patch --no-backup to continue.

If you’re starting over, you can remove all sales email, jobs email and outgoing email settings and migrate-to-v5

Hi pdvyas,

Thank you very much. I was able now to complete the migration to v5 without any error that I could see, but now the initial screen of ErpNext v5 appears as empty without any module, even though all modules are click to be shown?!

Thanks and kind regards,

Hi,

Now when trying to modify tree of accounts I get:

List/Chart of Accounts

Error Report
Traceback (innermost last):
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 51, in application
    response = frappe.handler.handle()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 62, in handle
    execute_cmd(cmd)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 85, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 708, in call
    return fn(*args, **newargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/load.py", line 63, in getdoctype
    docs = get_meta_bundle(doctype)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/load.py", line 73, in get_meta_bundle
    bundle = [frappe.desk.form.meta.get_meta(doctype)]
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/meta.py", line 19, in get_meta
    meta = frappe.cache().get_value("form_meta:" + doctype, lambda: FormMeta(doctype))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 44, in get_value
    val = generator()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/meta.py", line 19, in 
    meta = frappe.cache().get_value("form_meta:" + doctype, lambda: FormMeta(doctype))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/meta.py", line 31, in __init__
    self.load_assets()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/meta.py", line 41, in load_assets
    self.load_templates()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/desk/form/meta.py", line 170, in load_templates
    module = load_doctype_module(self.name)
  File "/home/erpnext/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/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 521, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
 ImportError: No module named chart_of_accounts.chart_of_accounts


Request Data
{
	"type": "GET",
	"args": {
		"doctype": "Chart of Accounts",
		"with_parent": 1,
		"cached_timestamp": null,
		"cmd": "frappe.desk.form.load.getdoctype",
		"_type": "GET"
	},
	"show_spinner": true,
	"url": "/"
}

We could migrate. It is a imperative to remove all email settings, ingoing and outgoing. But have still 2 problems.

  1. Emails are not being sent, we filled POP3 and SMTP in the new Email settings, the communications appear under support but the emails are not sent. Any other configuration to made?

.2 When trying bench update some hours after the migration, we got:
--------------------------------------------------
Executing erpnext.patches.v5_0.update_material_transferred_for_manufacturing in site1.local (site1.local)
Traceback (most recent call last):
File “/home/erpnext/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.9.3’, ‘console_scripts’, ‘frappe’)()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py”, line 448, in latest
frappe.modules.patch_handler.run_all()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 691, in get_attr
return getattr(get_module(modulename), methodname)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 521, in get_module
return importlib.import_module(modulename)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named update_material_transferred_for_manufacturing
Error: None
Traceback (most recent call last):
File “/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/erpnext/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/lib/python2.7/site-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python2.7/site-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python2.7/site-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/erpnext/bench-repo/bench/cli.py”, line 172, in update
patch_sites()
File “/home/erpnext/bench-repo/bench/utils.py”, line 93, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/erpnext/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/home/erpnext/frappe-bench/env/bin/frappe --latest all’ returned non-zero exit status 1

Hi, the update error have beeen solved this morning.

Still the problem with the outgoing Email remains. I will open a separate topic.