Uncaught Server Exception - There was an error building this page - Home

I’m getting this error after update
Traceback (most recent call last):
File “apps/frappe/frappe/www/app.py”, line 28, in get_context
boot = frappe.sessions.get()
File “apps/frappe/frappe/sessions.py”, line 166, in get
bootinfo = get_bootinfo()
File “apps/frappe/frappe/boot.py”, line 83, in get_bootinfo
frappe.get_attr(method)(bootinfo)
File “apps/erpnext/erpnext/startup/boot.py”, line 29, in boot_session
frappe.db.get_single_value(
File “apps/frappe/frappe/database/database.py”, line 779, in get_single_value
frappe.throw(
File “apps/frappe/frappe/init.py”, line 525, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 493, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 442, in _raise_exception
raise raise_exception(msg)
frappe.database.database.Database.InvalidColumnName: Invalid field name: allow_sales_order_creation_for_expired_quotation

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

Traceback (most recent call last):
File “apps/frappe/frappe/website/serve.py”, line 18, in get_response
response = renderer_instance.render()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 78, in render
html = self.get_html()
File “apps/frappe/frappe/website/utils.py”, line 510, in cache_html_decorator
html = func(*args, **kwargs)
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 89, in get_html
self.update_context()
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 157, in update_context
data = self.run_pymodule_method(“get_context”)
File “apps/frappe/frappe/website/page_renderers/template_page.py”, line 219, in run_pymodule_method
return method(self.context)
File “apps/frappe/frappe/www/app.py”, line 30, in get_context
raise frappe.SessionBootFailed from e
frappe.exceptions.SessionBootFailed

now after running bench update --reset get
fatal: ambiguous argument ‘upstream/version-14’: unknown revision or path not in the working tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’
ERROR:
Traceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/commands/update.py”, line 59, in update
update(
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/bench.py”, line 436, in update
pull_apps(apps=apps, bench_path=bench_path, reset=reset)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/app.py”, line 659, in pull_apps
bench.run(reset_cmd, cwd=app_dir)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/frappe/.local/lib/python3.10/site-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError

Is this resolved?

I solved my problem with:

bench update

I get the clue to solve this from Restoring from older backup