V5 Ugprade error

Hello everyone, I’m trying to upgrade from V4 to V5 on a fresh install on Ubuntu 14.1. The downloads and all go fine but it crashes somewhere along the line with this

Executing frappe.patches.v5_0.update_shared in site1.local (site1.local)
    Traceback (most recent call last):
      File "/home/erp/frappe-bench/env/bin/frappe", line 9, in <module>
        load_entry_point('frappe==4.9.2', 'console_scripts', 'frappe')()
      File "/home/erp/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
        ret = run(fn, args)
      File "/home/erp/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
        out = globals().get(fn)(**args)
      File "/home/erp/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
        return fn(*args, **new_kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/cli.py", line 442, in latest
        frappe.modules.patch_handler.run_all()
      File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
        if not run_single(patchmodule = patch):
      File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
        return execute_patch(patchmodule, method, methodargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 68, in execute_patch
        frappe.get_attr(patchmodule.split()[0] + ".execute")()
      File "/home/erp/frappe-bench/apps/frappe/frappe/patches/v5_0/update_shared.py", line 13, in execute
        frappe.share.add("User", user.name, user.name, write=1)
      File "/home/erp/frappe-bench/apps/frappe/frappe/share.py", line 37, in add
        doc.save(ignore_permissions=True)
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 203, in save
        self.insert()
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 165, in insert
        self.run_before_save_methods()
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 495, in run_before_save_methods
        self.run_method("validate")
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 461, in run_method
        return Document.hook(fn)(self, *args, **kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in composer
        return composed(self, method, *args, **kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 555, in runner
        add_to_return_value(self, fn(self, *args, **kwargs))
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 455, in <lambda>
        fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/core/doctype/docshare/docshare.py", line 16, in validate
        self.get_doc().run_method("validate_share", self)
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 461, in run_method
        return Document.hook(fn)(self, *args, **kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in composer
        return composed(self, method, *args, **kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 555, in runner
        add_to_return_value(self, fn(self, *args, **kwargs))
      File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 455, in <lambda>
        fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
      File "/home/erp/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 95, in validate_share
        frappe.throw(_("Sorry! User should have complete access to their own record."))
      File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 234, in throw
        msgprint(msg, raise_exception=exc)
      File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 227, in msgprint
        _raise_exception()
      File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 211, in _raise_exception
        raise raise_exception, msg
    frappe.exceptions.ValidationError: Sorry! User should have complete access to their own record.
    Error: None
    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/erp/bench-repo/bench/cli.py", line 38, in cli
        return 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/erp/bench-repo/bench/cli.py", line 172, in update
        patch_sites()
      File "/home/erp/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/erp/bench-repo/bench/utils.py", line 61, in exec_cmd
        subprocess.check_call(cmd, cwd=cwd, shell=True)
      File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '/home/erp/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1
    Error: None
    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/erp/bench-repo/bench/cli.py", line 38, in cli
        return 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/erp/bench-repo/bench/cli.py", line 210, in _migrate_to_v5
        migrate_to_v5(bench=bench)
      File "/home/erp/bench-repo/bench/migrate_to_v5.py", line 16, in migrate_to_v5
        exec_cmd("{bench} update".format(bench=sys.argv[0]))
      File "/home/erp/bench-repo/bench/utils.py", line 61, in exec_cmd
        subprocess.check_call(cmd, cwd=cwd, shell=True)
      File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '/usr/local/bin/bench update' returned non-zero exit status 1

I can’t seem to figure out what the problem is

OK So I just tried it on my Amazon Web Service server, same error

Executing frappe.patches.v5_0.update_shared in site1.local (site1.local)
Traceback (most recent call last):
  File "/home/ubuntu/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.9.2', 'console_scripts', 'frappe')()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/cli.py", line 442, in latest
    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/frappe/frappe/patches/v5_0/update_shared.py", line 13, in execute
    frappe.share.add("User", user.name, user.name, write=1)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/share.py", line 37, in add
    doc.save(ignore_permissions=True)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 203, in save
    self.insert()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 165, in insert
    self.run_before_save_methods()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 495, in run_before_save_methods
    self.run_method("validate")
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 461, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 555, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 455, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/core/doctype/docshare/docshare.py", line 16, in validate
    self.get_doc().run_method("validate_share", self)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 461, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 555, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 455, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 95, in validate_share
    frappe.throw(_("Sorry! User should have complete access to their own record."))
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 234, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 227, in msgprint
    _raise_exception()
  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 211, in _raise_exception
    raise raise_exception, msg
frappe.exceptions.ValidationError: Sorry! User should have complete access to their own record.
Error: None
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/ubuntu/bench-repo/bench/cli.py", line 38, in cli
    return 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 172, in update
    patch_sites()
  File "/home/ubuntu/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/ubuntu/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  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/frappe --latest all' returned non-zero exit status 1
Error: None
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/ubuntu/bench-repo/bench/cli.py", line 38, in cli
    return 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 210, in _migrate_to_v5
    migrate_to_v5(bench=bench)
  File "/home/ubuntu/bench-repo/bench/migrate_to_v5.py", line 16, in migrate_to_v5
    exec_cmd("{bench} update".format(bench=sys.argv[0]))
  File "/home/ubuntu/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/bin/bench update' returned non-zero exit status 1

Related to new feature. Paging @rushabh_mehta

OK. Waiting for a fix. I’ve a regional airline that I’d like to intro ERPNext. But they need multi-currency. So I want to demo them the v5

I think you should create an issue for this.

Ok sure. Lemme just get back to NY desk

I have different errors after updating

  1. I can NOT install shopping_cart app.
abelbm@DEVELOPER2:~/frappe-bench$ bench frappe --install_app shopping_cart
Traceback (most recent call last):
  File "/home/abelbm/frappe-bench/env/bin/frappe", line 9, in 
    load_entry_point('frappe==4.11.4', 'console_scripts', 'frappe')()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 359, in install_app
    install_app(app_name, verbose=verbose)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/installer.py", line 94, in install_app
    app_hooks = frappe.get_hooks(app_name=name)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 611, in get_hooks
    hooks = _dict(load_app_hooks(app_name))
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 584, in load_app_hooks
    app_hooks = get_module(app + ".hooks")
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 486, 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 shopping_cart.hooks
  1. After completing the wizard I got this error and it wont let me continue
    Message
"["Setting this Address Template as default as there is no other default", "SMTP Server is required"]"

Console

Traceback (innermost last):
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/app.py", line 49, in application
    response = frappe.handler.handle()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/handler.py", line 62, in handle
    execute_cmd(cmd)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/handler.py", line 85, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 691, in call
    return fn(*args, **newargs)
  File "/home/abelbm/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/setup_wizard.py", line 34, in setup_account
    install_fixtures.install(args.get("country"))
  File "/home/abelbm/frappe-bench/apps/erpnext/erpnext/setup/page/setup_wizard/install_fixtures.py", line 208, in install
    doc.insert()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/model/document.py", line 165, in insert
    self.run_before_save_methods()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/model/document.py", line 495, in run_before_save_methods
    self.run_method("validate")
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/model/document.py", line 461, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/model/document.py", line 572, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/model/document.py", line 555, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/model/document.py", line 455, in 
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 39, in validate
    self.check_smtp()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 62, in check_smtp
    frappe.throw(_("{0} is required").format("SMTP Server"))
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 234, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 227, in msgprint
    _raise_exception()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 211, in _raise_exception
    raise raise_exception, msg
 ValidationError: SMTP Server is required

I have the same error. Fresh install on Debian. Is it because it’s still under development?

Shopping cart is merged into erpnext in v5
Address Template issue was fixed (I think only in v4), will look into this.

Please note that v5 is not recommended for production use.

I think @pdvyas means v5 is NOT recommended for production use :slight_smile:

1 Like

Yup. Edited. Thanks Omkar!

Fixed the setup wizard issue. Please update and check

This is what happened to me.

  • If you ONLY install the bench and then update to version 5, everything goes good.
  • If you have ERPNext installed with Shopping Cart and try to update to version 5 the script die in the middle.

Look my trace. It seems to be an error looking for the shopping_cart.hook

abelbm@DEVELOPER2:~/frappe-bench$ bench migrate-to-v5
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
This will migrate all sites in the bench to version 5. Version 5 is still work in progress and NOT STABLE.
This is irreversible. Do you want to continue? [y/N]: y
remote: Counting objects: 115, done.
remote: Compressing objects: 100% (104/104), done.
remote: Total 115 (delta 102), reused 23 (delta 10)
Receiving objects: 100% (115/115), 17.60 KiB | 0 bytes/s, done.
Resolving deltas: 100% (102/102), completed with 79 local objects.
From https://github.com/frappe/frappe
   2448157..572ed95  v5.0       -> upstream/v5.0
Branch v5.0 set up to track remote branch v5.0 from upstream.
Switched to a new branch 'v5.0'
Removing frappe/core/doctype/bulk_email/
Removing frappe/core/doctype/custom_field/
Removing frappe/core/doctype/custom_script/
Removing frappe/core/doctype/customize_form/
Removing frappe/core/doctype/customize_form_field/
Removing frappe/core/doctype/email_alert/
Removing frappe/core/doctype/email_alert_recipient/
Removing frappe/core/doctype/event/
Removing frappe/core/doctype/event_role/
Removing frappe/core/doctype/event_user/
Removing frappe/core/doctype/letter_head/
Removing frappe/core/doctype/notification_count/
Removing frappe/core/doctype/outgoing_email_settings/
Removing frappe/core/doctype/print_format/
Removing frappe/core/doctype/print_settings/
Removing frappe/core/doctype/property_setter/
Removing frappe/core/doctype/standard_reply/
Removing frappe/core/doctype/todo/
Removing frappe/core/doctype/workflow/
Removing frappe/core/doctype/workflow_action/
Removing frappe/core/doctype/workflow_document_state/
Removing frappe/core/doctype/workflow_state/
Removing frappe/core/doctype/workflow_transition/
Removing frappe/core/page/applications/
Removing frappe/templates/website_group/
Removing frappe/utils/email_lib/
Removing frappe/website/doctype/post/
Removing frappe/website/doctype/user_vote/
Removing frappe/website/doctype/website_group/
Removing frappe/website/doctype/website_route_permission/
Removing frappe/widgets/
remote: Counting objects: 153, done.
remote: Compressing objects: 100% (153/153), done.
remote: Total 153 (delta 117), reused 1 (delta 0)
Receiving objects: 100% (153/153), 35.69 KiB | 0 bytes/s, done.
Resolving deltas: 100% (117/117), done.
From https://github.com/frappe/erpnext
   ceb0472..c82331b  v5.0       -> upstream/v5.0
Branch v5.0 set up to track remote branch v5.0 from upstream.
Switched to a new branch 'v5.0'
Removing erpnext/accounts/doctype/budget_distribution/
Removing erpnext/accounts/doctype/budget_distribution_detail/
Removing erpnext/accounts/doctype/chart_of_accounts/
Removing erpnext/accounts/doctype/journal_voucher/
Removing erpnext/accounts/doctype/journal_voucher_detail/
Removing erpnext/home/
Removing erpnext/setup/doctype/country/
Removing erpnext/setup/doctype/currency/
Removing erpnext/setup/doctype/jobs_email_settings/
Removing erpnext/setup/doctype/sales_email_settings/
Removing erpnext/support/doctype/support_email_settings/
Removing erpnext/support/doctype/support_ticket/
Removing erpnext/utilities/doctype/note_user/

Running remove_from_installed_apps for site1.local
--------------------------------------------------
Uninstalling shopping-cart:
  Successfully uninstalled shopping-cart
Already up-to-date.
From https://github.com/frappe/frappe
 * branch            v5.0       -> FETCH_HEAD
Already up-to-date.
From https://github.com/frappe/erpnext
 * branch            v5.0       -> FETCH_HEAD
Already up-to-date.
database backup taken - ./site1.local/private/backups/20150212_16340485_database.sql.gz - on 2015-02-12 20:57:45.478651

Running latest for site1.local
--------------------------------------------------
Traceback (most recent call last):
  File "/home/abelbm/frappe-bench/env/bin/frappe", line 9, in 
    load_entry_point('frappe==4.11.4', 'console_scripts', 'frappe')()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/cli.py", line 442, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all
    if not run_single(patchmodule = patch):
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 58, in execute_patch
    block_user(True)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 100, in block_user
    frappe.db.set_global('__session_status', block and 'stop' or None)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/database.py", line 570, in set_global
    self.set_default(key, val, user)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/database.py", line 578, in set_default
    frappe.defaults.set_default(key, val, parent, parenttype)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/defaults.py", line 90, in set_default
    _clear_cache(parent)
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/defaults.py", line 178, in _clear_cache
    frappe.clear_cache()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 361, in clear_cache
    for fn in frappe.get_hooks("clear_cache"):
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 613, in get_hooks
    hooks = _dict(cache().get_value("app_hooks", load_app_hooks))
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 38, in get_value
    val = generator()
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 584, in load_app_hooks
    app_hooks = get_module(app + ".hooks")
  File "/home/abelbm/frappe-bench/apps/frappe/frappe/__init__.py", line 486, 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 shopping_cart.hooks
Error: None
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in 
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/abelbm/bench-repo/bench/cli.py", line 38, in cli
    return 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/abelbm/bench-repo/bench/cli.py", line 172, in update
    patch_sites()
  File "/home/abelbm/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/abelbm/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/abelbm/frappe-bench/env/bin/frappe --latest all' returned non-zero exit status 1
Error: None
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in 
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/abelbm/bench-repo/bench/cli.py", line 38, in cli
    return 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/abelbm/bench-repo/bench/cli.py", line 210, in _migrate_to_v5
    migrate_to_v5(bench=bench)
  File "/home/abelbm/bench-repo/bench/migrate_to_v5.py", line 16, in migrate_to_v5
    exec_cmd("{bench} update".format(bench=sys.argv[0]))
  File "/home/abelbm/bench-repo/bench/utils.py", line 61, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/bin/bench update' returned non-zero exit status 1

This is strange, can you raise an issue in the bench repo?

I don’t understand your question … what do you mean?