Session Start Failed attribute 'send_user_permissions'

please help to resolve the facing error

#### Session Start Failed

module ‘frappe.core.doctype.user_permission.user_permission’ has no attribute ‘send_user_permissions’

After update bench on cd frappe-bench
bench update --reset
bench update --requirements
bench migrate
bench clear-cache

@NCP kindly check it

Uncaught Server Exception

There was an error building this page


Error Code: 500

Hide Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/www/", line 28, in get_context
    boot = frappe.sessions.get()
  File "apps/frappe/frappe/", line 158, in get
    bootinfo = get_bootinfo()
  File "apps/frappe/frappe/", line 39, in get_bootinfo
  File "apps/frappe/frappe/", line 282, in get_user
    bootinfo.user = frappe.get_user().load_user()
  File "apps/frappe/frappe/utils/", line 210, in load_user
    d = frappe.db.get_value(
  File "apps/frappe/frappe/database/", line 509, in get_value
    result = self.get_values(
  File "apps/frappe/frappe/database/", line 606, in get_values
    out = self._get_values_from_table(
  File "apps/frappe/frappe/database/", line 835, in _get_values_from_table
    return, debug=debug, update=update, run=run, pluck=pluck)
  File "apps/frappe/frappe/query_builder/", line 87, in execute_query
    result = frappe.db.sql(query, params, *args, **kwargs)  # nosemgrep
  File "apps/frappe/frappe/database/", line 220, 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 'onboarding_status' 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 517, 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 162, in update_context
    data = self.run_pymodule_method("get_context")
  File "apps/frappe/frappe/website/page_renderers/", line 224, in run_pymodule_method
    return method(self.context)
  File "apps/frappe/frappe/www/", line 30, in get_context
    raise frappe.SessionBootFailed from e

Login with another user and then check it.
Otherwise, check it in another browser.

If the above step does not work then apply it.

bench --site [sitename] destroy-all-sessions

Then reload and check it.

Thank You!

Same error Sir,

Uncaught Server Exception

There was an error building this page

try it.

bench build --force

if not worked then please create a new site and then check it.

Sir @NCP same error

How to get get old data to new site

Error has been resolved
after try

bench --site migrate