Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Desk doesn't work #1549

Open
ABAGDevelopment opened this issue Jan 15, 2025 · 0 comments
Open

Switch to Desk doesn't work #1549

ABAGDevelopment opened this issue Jan 15, 2025 · 0 comments
Labels

Comments

@ABAGDevelopment
Copy link

Description of the issue

Post installation:- Bench is giving below error

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 108, in get_bootinfo
bootinfo.desk_settings = get_desk_settings()
^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/boot.py", line 391, in get_desk_settings
return frappe.get_value("User", frappe.session.user, desk_properties, as_dict=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/init.py", line 2030, in get_value
return db.get_value(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/database.py", line 515, in get_value
result = self.get_values(
^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/database.py", line 619, in get_values
out = self._get_values_from_table(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/database.py", line 892, in _get_values_from_table
return query.run(as_dict=as_dict, debug=debug, update=update, run=run, pluck=pluck)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/query_builder/utils.py", line 87, in execute_query
result = frappe.db.sql(query, params, *args, **kwargs) # nosemgrep
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/database/database.py", line 230, in sql
self._cursor.execute(query, values)
File "env/lib/python3.11/site-packages/pymysql/cursors.py", line 153, in execute
result = self._query(query)
^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "env/lib/python3.11/site-packages/pymysql/connections.py", line 563, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/pymysql/connections.py", line 825, in _read_query_result
result.read()
File "env/lib/python3.11/site-packages/pymysql/connections.py", line 1199, in read
first_packet = self.connection._read_packet()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/pymysql/connections.py", line 775, in _read_packet
packet.raise_for_error()
File "env/lib/python3.11/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "env/lib/python3.11/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, "Unknown column 'search_bar' in 'SELECT'")

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 531, 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

Context information (for bug reports)

Steps to reproduce the issue

  1. Install via docker compose
  2. docker compose -f pwd.yml up -d
  3. Wait for 5 mins and then try to navigate on the http://localhost:8080/ login and select switch to desk

Observed result

Error displayed

Expected result

It should work

Stacktrace / full error message if available

Mentioned Above

(paste here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant