There was an error building this page

Traceback (most recent call last):
File “apps/frappe/frappe/www/app.py”, line 27, in get_context
boot = frappe.sessions.get()
File “apps/frappe/frappe/sessions.py”, line 138, in get
bootinfo = get_bootinfo()
File “apps/frappe/frappe/boot.py”, line 40, in get_bootinfo
get_user(bootinfo)
File “apps/frappe/frappe/boot.py”, line 278, in get_user
bootinfo.user = frappe.get_user().load_user()
File “apps/frappe/frappe/utils/user.py”, line 213, in load_user
d = frappe.db.get_value(
File “apps/frappe/frappe/database/database.py”, line 519, in get_value
result = self.get_values(
File “apps/frappe/frappe/database/database.py”, line 623, in get_values
out = self._get_values_from_table(
File “apps/frappe/frappe/database/database.py”, line 896, 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 234, in sql
self._cursor.execute(query, values)
File “env/lib/python3.10/site-packages/pymysql/cursors.py”, line 153, in execute
result = self._query(query)
File “env/lib/python3.10/site-packages/pymysql/cursors.py”, line 322, in _query
conn.query(q)
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 558, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 822, in _read_query_result
result.read()
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 1200, in read
first_packet = self.connection._read_packet()
File “env/lib/python3.10/site-packages/pymysql/connections.py”, line 772, in _read_packet
packet.raise_for_error()
File “env/lib/python3.10/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File “env/lib/python3.10/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, “Unknown column ‘default_workspace’ in ‘field list’”)

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 523, 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 29, in get_context
raise frappe.SessionBootFailed from e
frappe.exceptions.SessionBootFailed

i have the same issue

Traceback (most recent call last):
File “apps/frappe/frappe/www/app.py”, line 27, in get_context
boot = frappe.sessions.get()
File “apps/frappe/frappe/sessions.py”, line 138, in get
bootinfo = get_bootinfo()
File “apps/frappe/frappe/boot.py”, line 111, in get_bootinfo
bootinfo.changelog_feed = get_changelog_feed_items()
File “apps/frappe/frappe/utils/caching.py”, line 156, in redis_cache_wrapper
val = func(*args, **kwargs)
File “apps/frappe/frappe/desk/doctype/changelog_feed/changelog_feed.py”, line 68, in get_changelog_feed_items
feed = frappe.get_all(
File “apps/frappe/frappe/init.py”, line 2050, in get_all
return get_list(doctype, *args, **kwargs)
File “apps/frappe/frappe/init.py”, line 2025, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
File “apps/frappe/frappe/model/db_query.py”, line 185, in execute
self.columns = self.get_table_columns()
File “apps/frappe/frappe/model/db_query.py”, line 546, in get_table_columns
return get_table_columns(self.doctype)
File “apps/frappe/frappe/model/meta.py”, line 73, in get_table_columns
return frappe.db.get_table_columns(doctype)
File “apps/frappe/frappe/database/database.py”, line 1197, in get_table_columns
raise self.TableMissingError(“DocType”, doctype)
pymysql.err.ProgrammingError: (‘DocType’, ‘Changelog Feed’)

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 523, 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 29, in get_context
raise frappe.SessionBootFailed from e
frappe.exceptions.SessionBootFailed

i solve my issue by
bench update

1 Like

sudo supervisorctl stop all
bench --site setup requirements
bench build
bench --site backup --with-files
bench --site migrate
sudo supervisorctl start all

2 Likes

Worked for me