Tried bench update, I am getting this error.
Please help. This is GST update.
Thanks
Jay
Backing up sites…
Patching sites…
Migrating acepl
Executing erpnext.patches.v8_1.delete_deprecated_reports in acepl (67a3d78f6737a20d)
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 174, 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/proman2/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 91, in
main()
File “/home/proman2/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 17, in main
click.Group(commands=commands)(prog_name=‘bench’)
File "/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/clickfrappe.exceptions.LinkExistsError: Cannot delete or cancel because Report Customer Addresses And Contacts is linked with Desktop Icon 7fc9eab62b
/core.py", line 722, in call
return self.main(*args, **kwargs)
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/proman2/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/proman2/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/proman2/frappe-bench/apps/frappe/frappe/commands/site.py”, line 216, in migrate
migrate(context.verbose, rebuild_website=rebuild_website)
File “/home/proman2/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in migrate
frappe.modules.patch_handler.run_all()
File “/home/proman2/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
if not run_single(patchmodule = patch):
File “/home/proman2/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_singlefrappe.exceptions.LinkExistsError: Cannot delete or cancel because Report Customer Addresses And Contacts is linked with Desktop Icon 7fc9eab62b
return execute_patch(patchmodule, method, methodargs)
File “/home/proman2/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/proman2/frappe-bench/apps/erpnext/erpnext/patches/v8_1/delete_deprecated_reports.py”, line 21, in execute
frappe.delete_doc(“Report”, report, ignore_permissions=True)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 648, in delete_doc
ignore_permissions, flags)
File “/home/proman2/frappe-bench/apps/frappe/frappe/model/delete_doc.py”, line 82, in delete_doc
check_if_doc_is_linked(doc)
File “/home/proman2/frappe-bench/apps/frappe/frappe/model/delete_doc.py”, line 187, in check_if_doc_is_linked
item.parent or item.name), frappe.LinkExistsError)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 320, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 310, in msgprint
_raise_exception()
File “/home/proman2/frappe-bench/apps/frappe/frappe/init.py”, line 283, in _raise_exception
raise raise_exception(encode(msg))
frappe.exceptions.LinkExistsError: Cannot delete or cancel because Report Customer Addresses And Contacts is linked with Desktop Icon 7fc9eab62b