frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
22k stars 7.38k forks source link

Cannot Login due to Workspace Error #43828

Open thorhat opened 1 month ago

thorhat commented 1 month ago

Information about bug

Please help, I don't know what I need to do. Suddenly, this happened after the update.

error login

Module

other

Version

erpnext 15.39.3 frappe 15.45.1 payments 0.0.1 print_designer 1.x.x-develop

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

Traceback (most recent call last):
  File "apps/frappe/frappe/www/app.py", line 30, in get_context
    boot = frappe.sessions.get()
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/sessions.py", line 142, in get
    bootinfo = get_bootinfo()
               ^^^^^^^^^^^^^^
  File "apps/frappe/frappe/boot.py", line 55, in get_bootinfo
    load_desktop_data(bootinfo)
  File "apps/frappe/frappe/boot.py", line 147, in load_desktop_data
    bootinfo.module_wise_workspaces = get_controller("Workspace").get_module_wise_workspaces()
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Document' has no attribute 'get_module_wise_workspaces'

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

Traceback (most recent call last):
  File "apps/frappe/frappe/website/serve.py", line 20, 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 529, in cache_html_decorator
    html = func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  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 163, in update_context
    data = self.run_pymodule_method("get_context")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 223, in run_pymodule_method
    return method(self.context)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/www/app.py", line 32, in get_context
    raise frappe.SessionBootFailed from e
frappe.exceptions.SessionBootFailed
Savan120 commented 1 month ago

ps aux | grep bench bench --site your-site-name set-maintenance-mode off bench --site your-site-name migrate (Bench must be running)

Use this command for this issue.

thorhat commented 1 month ago

bench --site your-site-name set-maintenance-mode off

I tried that, but the error still persists.

Savan120 commented 1 month ago

bench update Or bench update --reset bench restart bench clear-cache bench build bench migrate

Use this commands.

thorhat commented 1 month ago

bench migrate

already tried, same error