Error while updating Bench June 2, 2015

Tried to update Bench this morning, and now get this error:

Already up-to-date.
From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

  • branch master → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/shopping_cart: Online Shopping Cart integrated with ERPNext
  • branch master → FETCH_HEAD
    Already up-to-date.
    From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
  • branch master → FETCH_HEAD
    Already up-to-date.
    Migrating site1.local
    Executing erpnext.patches.v5_0.portal_fixes in site1.local (1bd3e0294d)
    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 664, in call
    return self.main(*args, **kwargs)
    File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
    rv = self.invoke(ctx)
    File “/home/ubuntu/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/ubuntu/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/ubuntu/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/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, 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 205, 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/portal_fixes.py”, line 3, in execute
    erpnext.setup.install.add_web_forms()
    File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/setup/install.py”, line 60, in add_web_forms
    data_import=True)
    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 179, in insert
    self._validate()
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 300, in _validate
    self._validate_mandatory()
    File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 462, in _validate_mandatory
    raise frappe.MandatoryError(", ".join((each[0] for each in missing)))
    frappe.exceptions.MandatoryError: label

I read another thread that mentioned I should remove the timed out locks, so I deleted site1.local/locks/scheduler.lock, but the error remains.

I’m getting the same with Ubuntu 12.04.5 x86_64 in case it help…because other system upgrade on Ubuntu 14 did no error message.

As always, truly grateful!

I increase the swapfile just in case but get the same…

1 Like

Can you check if updating again solves the issue?

Just ran bench update, but still get the same error.

Sorry but still after Migrating site3.local (there are 3 sites!) I get this:
Executing erpnext.patches.v5_0.portal_fixes in site3.local (site3.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/cami/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 77, in
main()
File “/home/cami/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 14, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/cami/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/home/cami/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/home/cami/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/cami/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/cami/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/cami/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/cami/frappe-bench/apps/frappe/frappe/commands.py”, line 28, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/cami/frappe-bench/apps/frappe/frappe/commands.py”, line 205, in migrate
frappe.modules.patch_handler.run_all()
File “/home/cami/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/cami/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/cami/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/cami/frappe-bench/apps/erpnext/erpnext/patches/v5_0/portal_fixes.py”, line 3, in execute
erpnext.setup.install.add_web_forms()
File “/home/cami/frappe-bench/apps/erpnext/erpnext/setup/install.py”, line 60, in add_web_forms
data_import=True)
File “/home/cami/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/cami/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line 120, in import_doc
doc.insert()
File “/home/cami/frappe-bench/apps/frappe/frappe/model/document.py”, line 179, in insert
self._validate()
File “/home/cami/frappe-bench/apps/frappe/frappe/model/document.py”, line 300, in _validate
self._validate_mandatory()
File “/home/cami/frappe-bench/apps/frappe/frappe/model/document.py”, line 462, in _validate_mandatory
raise frappe.MandatoryError(", ".join((each[0] for each in missing)))
frappe.exceptions.MandatoryError: label

please help!

Pushed a fix, can you try to update again?

Yesterday, this ultimately worked for me:
bench --force reload-doc website doctype web_form_field

See thread here: Error when running bench update · Issue #3405 · frappe/erpnext · GitHub

Thank you nabinhait! Yes it worked fine. The only issue is about the background of desk, still white (?)…any idea what I could do?

Can you check the browser’s console for any error messages?

-Anand.

Failed to load resource: net::ERR_NAME_NOT_RESOLVED
http://site1.local:8000/assets/frappe/images/ui/into-the-dawn.jpg

-Camilo

If you are using development setup, check if bench start is running.

Or if you are using a production setup, it is likely that your server process did’t restart and you might need to see if bench migrate showed any error message.

How to know if development or production setup?

ERPNext: v5.0.17
Frappe Framework: v5.0.21

Today I will spend more time to learn about the bench commands. If there is some extra documentation about please let me know. My goal is to learn as much as I can about Frappe also.