Uncaught Server Exception: There was an error building this page Error Code: 500

After updating using

bench update

now I’m facing this server error all over erpnext

Traceback (most recent call last):
File “apps/frappe/frappe/www/app.py”, line 27, in get_context
hooks = frappe.get_hooks()
^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/sessions.py”, line 167, in get
frappe.get_attr(hook)(bootinfo=bootinfo)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 1673, in get_attr
and app_name not in get_installed_apps()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘erpnext.startup.boot’ has no attribute ‘bootinfo’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “apps/frappe/frappe/website/serve.py”, line 18, in get_response
response = renderer_instance.render()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/utils.py”, line 522, in cache_html_decorator
frappe.local.response.from_cache = True
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 95, in get_html
self.update_context()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 162, in update_context
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 224, in run_pymodule_method
if inspect.getfullargspec(method).args:
^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/www/app.py”, line 29, in get_context
boot = frappe.sessions.get()

Same Problem

Try bench --site site_name migrate