Help! Stuck at System is being updated

Hi,

I have just done a bench switch-to-develop on my site and now it is stuck saying Your system is being updated.

I wanted to test the new Version 13 but it seems to have completely broken the site.

does anyone have any ideas on how I can fix it?

Thanks

bench migrate

I’ve tried a bench migrate and bench update and i’m getting and error saying DocType Web Page Block not found

can you paste traceback here

I’m new to this but is this what you mean?

erpnext001@debERP:~/frappe-bench$ bench migrate
Migrating infinics.co.uk
Executing frappe.patches.v13_0.website_theme_custom_scss in infinics.co.uk (_dacc01057b73e4e0)
Traceback (most recent call last):
File “/usr/lib/python3.7/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.7/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/erpnext001/frappe-bench/env/lib/python3.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/commands/site.py”, line 252, in migrate
migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/migrate.py”, line 51, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 41, in run_all
run_patch(patch)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 30, in run_patch
if not run_single(patchmodule = patch):
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 71, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 91, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/patches/v13_0/website_theme_custom_scss.py”, line 10, in execute
doc.save()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/document.py”, line 281, in save
return self.save(*args, **kwargs)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/document.py”, line 315, in save
self.validate_higher_perm_levels()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/document.py”, line 599, in validate_higher_perm_levels
high_permlevel_fields = frappe.get_meta(df.options).get_high_permlevel_fields()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/init.py”, line 797, in get_meta
return frappe.model.meta.get_meta(doctype, cached=cached)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/meta.py”, line 37, in get_meta
meta = Meta(doctype)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/meta.py”, line 83, in init
super(Meta, self).init(“DocType”, doctype)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/document.py”, line 106, in init
self.load_from_db()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/meta.py”, line 88, in load_from_db
super(Meta, self).load_from_db()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/model/document.py”, line 149, in load_from_db
frappe.throw(
(“{0} {1} not found”).format(
(self.doctype), self.name), frappe.DoesNotExistError)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/init.py”, line 397, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable)
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/init.py”, line 376, in msgprint
_raise_exception()
File “/home/erpnext001/frappe-bench/apps/frappe/frappe/init.py”, line 327, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: DocType Web Page Block not found

Clearly a DocType is missing. Possible solutions:

  1. Pull from the original repository in your develop branch and then run bench migrate
  2. comment out that patch(put a # before frappe.patches.v13_0.website_theme_custom_scss in patches.txt) and try running bench migrate [ temporary solution, you will have to re-run this patch eventually so go for this option only if absolutely urgent ]
1 Like

Exact same issue. Have been unable to resolve the problem. Unable to upgrade to V13.