After update this is the error im getting.i cant log in

Traceback (most recent call last):
File “apps/frappe/frappe/www/”, line 28, in get_context
boot = frappe.sessions.get()
File “apps/frappe/frappe/”, line 166, in get
bootinfo = get_bootinfo()
File “apps/frappe/frappe/”, line 50, in get_bootinfo
File “apps/frappe/frappe/”, line 132, in load_desktop_data
bootinfo.allowed_workspaces = get_workspace_sidebar_items().get(“pages”)
File “apps/frappe/frappe/desk/”, line 408, in get_workspace_sidebar_items
all_pages = frappe.get_all(
File “apps/frappe/frappe/”, line 1924, in get_all
return get_list(doctype, *args, **kwargs)
File “apps/frappe/frappe/”, line 1896, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
File “apps/frappe/frappe/model/”, line 202, in execute
result = self.build_and_run()
File “apps/frappe/frappe/model/”, line 242, in build_and_run
return frappe.db.sql(
File “apps/frappe/frappe/database/”, line 219, in sql
self._cursor.execute(query, values)
File “env/lib/python3.10/site-packages/pymysql/”, line 158, in execute
result = self._query(query)
File “env/lib/python3.10/site-packages/pymysql/”, line 325, in _query
File “env/lib/python3.10/site-packages/pymysql/”, line 549, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “env/lib/python3.10/site-packages/pymysql/”, line 779, in _read_query_result
File “env/lib/python3.10/site-packages/pymysql/”, line 1157, in read
first_packet = self.connection._read_packet()
File “env/lib/python3.10/site-packages/pymysql/”, line 729, in _read_packet
File “env/lib/python3.10/site-packages/pymysql/”, line 221, in raise_for_error
File “env/lib/python3.10/site-packages/pymysql/”, line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, “Unknown column ‘is_hidden’ in ‘field list’”)

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

Traceback (most recent call last):
File “apps/frappe/frappe/website/”, line 18, in get_response
response = renderer_instance.render()
File “apps/frappe/frappe/website/page_renderers/”, line 84, in render
html = self.get_html()
File “apps/frappe/frappe/website/”, line 510, in cache_html_decorator
html = func(*args, **kwargs)
File “apps/frappe/frappe/website/page_renderers/”, line 95, in get_html
File “apps/frappe/frappe/website/page_renderers/”, line 163, in update_context
data = self.run_pymodule_method(“get_context”)
File “apps/frappe/frappe/website/page_renderers/”, line 225, in run_pymodule_method
return method(self.context)
File “apps/frappe/frappe/www/”, line 30, in get_context
raise frappe.SessionBootFailed from e

any help please

I am experiencing the same error. For me the error occurred after performing a bench restore where I restored the database from a docker installation of ERPNext into a separate installation of ERPNext which is running on a virtual machine. I suspect that I am getting this issue because bench restore may not be intended for migrating all data from one installation to another. If anyone could point me in the right direction it would be much appreciated!

same issue here, v14.
After restoring…

Now I am screwed…

my old v14 doesn’t work, the new install server restore also doesn’t work.

i am stuck with backups but can’t do anything with it…

hi after bench update i am getting this error

mysqldump: Couldn’t execute ‘SELECT TRIGGER_NAME FROM INFORMATION_SCHEMA.TRIGG ERS WHERE EVENT_OBJECT_SCHEMA = DATABASE() AND EVENT_OBJECT_TABLE = ‘tabBOM’’: L ost connection to MySQL server during query (2013)\n"
Backup failed for Site galaxy. Database or site_config.json may be corrupt ed

then i tried bench update -no-backup

Migrating the7thgalaxy
Updating DocTypes for frappe : [== ] 14%Queued rebuildin g of search index for the7thgalaxy

Traceback with variables (most recent call last):
File “/usr/lib/python3.10/”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
mod_name = ‘frappe.utils.bench_helper’
alter_argv = True
mod_spec = ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_im portlib_external.SourceFileLoader object at 0x7f7febf7fd00>, origin=‘/home/galax y/galaxyerp/apps/frappe/frappe/utils/’)
code = <code object at 0x7f7fe9d33890, file “/home/galaxy/galaxye rp/apps/frappe/frappe/utils/”, line 1>
main_globals = {‘name’: ‘main’, ‘doc’: None, ‘package’: ‘f rappe.utils’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7f7febf7fd00>, ‘spec’: ModuleSpec(name=‘frappe.utils.bench_helper’, loa der=<_frozen_importlib_external.SourceFileLoader object at 0x7f7febf7fd00>, orig in=‘/home/galaxy/galaxyerp/apps/frappe/frappe/utils/’), ‘annota tions’: {}, ‘builtins’: <module ‘builtins’ (built-in)>, ‘file’: ‘/home /galaxy/galaxyerp/apps/frappe/frappe/utils/’, ‘cached’: ‘/hom e/galaxy/galaxyerp/apps/frappe/frappe/utils/pycache/bench_helper.cpython-310 .pyc’, ‘importlib’: <module ‘importlib’ from ‘/usr/lib/python3.10/importlib/in’>, ‘json’: <module ‘json’ from ‘/usr/lib/python3.10/json/’>, ‘os’: <module ‘os’ from ‘/usr/lib/python3.10/’>, ‘traceback’: <module ‘trac eback’ from ‘/usr/lib/python3.10/’>, ‘warnings’: <module ‘warnings’ from ‘/usr/lib/python3.10/’>, ‘click’: <module ‘cl…
File “/usr/lib/python3.10/”, line 86, in _run_code
exec(code, run_globals)
code = <code object at 0x7f7fe9d33890, file “/home/galaxy/galaxye rp/apps/frappe/frappe/utils/”, line 1>
run_globals = {‘name’: ‘main’, ‘doc’: None, ‘package’: ‘fr appe.utils’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object a t 0x7f7febf7fd00>, ‘spec’: ModuleSpec(name=‘frappe.utils.bench_helper’, load er=<_frozen_importlib_external.SourceFileLoader object at 0x7f7febf7fd00>, origi n=’/home/galaxy/galaxyerp/apps/frappe/frappe/utils/’), ‘annotat ions’: {}, ‘builtins’: <module ‘builtins’ (built-in)>, ‘file’: ‘/home/ galaxy/galaxyerp/apps/frappe/frappe/utils/’, ‘cached’: ‘/home /galaxy/galaxyerp/apps/frappe/frappe/utils/pycache/bench_helper.cpython-310. pyc’, ‘importlib’: <module ‘importlib’ from ‘/usr/lib/python3.10/importlib/ini’>, ‘json’: <module ‘json’ from ‘/usr/lib/python3.10/json/’>, ’ os’: <module ‘os’ from ‘/usr/lib/python3.10/’>, ‘traceback’: <module ‘trace back’ from ‘/usr/lib/python3.10/’>, ‘warnings’: <module ‘warnings’ f rom ‘/usr/lib/python3.10/’>, ‘click’: <module ‘cl…
init_globals = None
mod_name = ‘main
mod_spec = ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_im portlib_external.SourceFileLoader object at 0x7f7febf7fd00>, origin=’/home/galax y/galaxyerp/apps/frappe/frappe/utils/’)
pkg_name = ‘frappe.utils’
script_name = None
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7f7febf7 fd00>
fname = ‘/home/galaxy/galaxyerp/apps/frappe/frappe/utils/’
cached = ‘/home/galaxy/galaxyerp/apps/frappe/frappe/utils/pycache/benc h_helper.cpython-310.pyc’
File “/home/galaxy/galaxyerp/apps/frappe/frappe/utils/”, line 1 09, in
…skipped… 25 vars
File “/home/galaxy/galaxyerp/apps/frappe/frappe/utils/”, line 1 8, in main
commands = {‘frappe’: , ‘get-frappe-commands’: , ‘get-frappe-help’: }
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/”, line 829, in call
return self.main(*args, **kwargs)
self =
args = ()
kwargs = {‘prog_name’: ‘bench’}
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/”, line 782, in main
rv = self.invoke(ctx)
self =
args = [‘frappe’, ‘–site’, ‘the7thgalaxy’, ‘migrate’]
prog_name = ‘bench’
complete_var = None
standalone_mode = True
extra = {}
ctx = <click.core.Context object at 0x7f7fead537c0>
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
_process_result = <function MultiCommand.invoke.._process_result a t 0x7f7fe9cd6170>
args = [‘migrate’]
cmd_name = ‘frappe’
cmd =
sub_ctx = <click.core.Context object at 0x7f7fe9c39a50>
ctx = <click.core.Context object at 0x7f7fead537c0>
self =
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
_process_result = <function MultiCommand.invoke.._process_result a t 0x7f7fe9c2feb0>
args = []
cmd_name = ‘migrate’
cmd =
sub_ctx = <click.core.Context object at 0x7f7fe9c39090>
ctx = <click.core.Context object at 0x7f7fe9c39a50>
self =
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
self =
ctx = <click.core.Context object at 0x7f7fe9c39090>
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/”, line 610, in invoke
return callback(*args, **kwargs)
args = ()
kwargs = {‘skip_failing’: False, ‘skip_search_index’: False}
self = <click.core.Context object at 0x7f7fe9c39090>
callback = <function migrate at 0x7f7fe9bb0700>
ctx = <click.core.Context object at 0x7f7fe9c39090>
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/click/decorators .py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
args = ()
kwargs = {‘skip_failing’: False, ‘skip_search_index’: False}
f = <function migrate at 0x7f7fe9bb04c0>
File “/home/galaxy/galaxyerp/apps/frappe/frappe/commands/”, line 29 , in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
ctx = <click.core.Context object at 0x7f7fe9c39090>
args = ()
kwargs = {‘skip_failing’: False, ‘skip_search_index’: False}
profile = False
f = <function migrate at 0x7f7fe9bb0430>
File “/home/galaxy/galaxyerp/apps/frappe/frappe/commands/”, line 557, i n migrate
context = {‘sites’: [‘the7thgalaxy’], ‘force’: False, ‘verbose’: False, ‘p rofile’: False}
skip_failing = False
skip_search_index = False
activate_by_import = <module ‘traceback_with_variables.activate_by_import’ from ‘/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/traceback_with_va riables/’>
SiteMigration = <class ‘frappe.migrate.SiteMigration’>
site = ‘the7thgalaxy’
File “/home/galaxy/galaxyerp/apps/frappe/frappe/”, line 175, in run
self = <frappe.migrate.SiteMigration object at 0x7f7fe9c396c0>
site = ‘the7thgalaxy’
File “/home/galaxy/galaxyerp/apps/frappe/frappe/”, line 45, in wrapp er
args = (<frappe.migrate.SiteMigration object at 0x7f7fe9c396c0>,)
kwargs = {}
method = <function SiteMigration.run_schema_updates at 0x7f7fe7903eb0>
File “/home/galaxy/galaxyerp/apps/frappe/frappe/database/”, line 10 50, in rollback
self = <frappe.database.mariadb.database.MariaDBDatabase object at 0x7f7fe 7717700>
save_point = None
File “/home/galaxy/galaxyerp/apps/frappe/frappe/database/”, line 22 1, in sql
self._cursor.execute(query, values)
self = <frappe.database.mariadb.database.MariaDBDatabase object at 0x7f7fe 7717700>
query = ‘rollback’
values = None
as_dict = 0
as_list = 0
formatted = 0
debug = False
ignore_ddl = 0
as_utf8 = 0
auto_commit = 0
update = None
explain = False
run = True
pluck = False
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/pymysql/cursors. py”, line 158, in execute
result = self._query(query)
self = <pymysql.cursors.Cursor object at 0x7f7fe771d450>
query = ‘rollback’
args = None
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/pymysql/cursors. py”, line 325, in _query
self = <pymysql.cursors.Cursor object at 0x7f7fe771d450>
q = ‘rollback’
conn = <pymysql.connections.Connection object at 0x7f7fe771d390>
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/pymysql/connecti”, line 548, in query
self._execute_command(COMMAND.COM_QUERY, sql)
self = <pymysql.connections.Connection object at 0x7f7fe771d390>
sql = b’rollback’
unbuffered = False
File “/home/galaxy/galaxyerp/env/lib/python3.10/site-packages/pymysql/connecti”, line 797, in _execute_command
raise err.InterfaceError(0, “”)
self = <pymysql.connections.Connection object at 0x7f7fe771d390>
command = 3
sql = b’rollback’
pymysql.err.InterfaceError: (0, ‘’)

The login Page is stuck on verifying…