Getting Error After restoring frappe&erpnext v 12 backup on a v14 site

frappe.exceptions.DoesNotExistError: Web Template Standard Navbar not found,
Traceback (most recent call last):
File “/home/rafique/frappe-bench/apps/frappe/frappe/app.py”, line 86, in application
init_request(request)
File “/home/rafique/frappe-bench/apps/frappe/frappe/app.py”, line 165, in init_request
raise frappe.SessionStopped(“Session Stopped”)
frappe.exceptions.SessionStopped: Session Stopped

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/serve.py”, line 18, in get_response
response = renderer_instance.render()
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/utils.py”, line 517, in cache_html_decorator
html = func(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py”, line 101, in get_html
html = self.render_template()
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py”, line 236, in render_template
html = frappe.render_template(self.source, self.context, safe_render=safe_render)
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 94, in render_template
return get_jenv().from_string(template).render(context)
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/jinja2/environment.py”, line 1304, in render
self.environment.handle_exception()
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/jinja2/environment.py”, line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File “”, line 1, in top-level template code
File “/home/rafique/frappe-bench/apps/frappe/frappe/templates/web.html”, line 1, in top-level template code
{% extends base_template_path %}
File “/home/rafique/frappe-bench/apps/frappe/frappe/templates/base.html”, line 60, in top-level template code
{%- block navbar -%}
File “/home/rafique/frappe-bench/apps/frappe/frappe/templates/base.html”, line 61, in block ‘navbar’
{{ web_block(
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/jinja2/sandbox.py”, line 394, in call
return __context.call(__obj, *args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/jinja_globals.py”, line 37, in web_block
return web_blocks([options])
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/jinja_globals.py”, line 65, in web_blocks
out = get_web_blocks_html(web_blocks)
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/doctype/web_page/web_page.py”, line 212, in get_web_blocks_html
web_template = frappe.get_cached_doc(“Web Template”, block.web_template)
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 1109, in get_cached_doc
doc = get_doc(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 1200, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/model/document.py”, line 78, in get_doc
return controller(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/model/document.py”, line 110, in init
self.load_from_db()
File “/home/rafique/frappe-bench/apps/frappe/frappe/model/document.py”, line 151, in load_from_db
frappe.throw(
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 548, in throw
msgprint(
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 509, in msgprint
_raise_exception()
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 455, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Web Template Standard Navbar not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/rafique/frappe-bench/apps/frappe/frappe/middlewares.py”, line 16, in call
return super().call(environ, start_response)
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/werkzeug/middleware/shared_data.py”, line 249, in call
return self.app(environ, start_response)
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/werkzeug/middleware/shared_data.py”, line 249, in call
return self.app(environ, start_response)
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/werkzeug/local.py”, line 232, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/werkzeug/wrappers/request.py”, line 188, in application
resp = f(*args[:-2] + (request,))
File “/home/rafique/frappe-bench/apps/frappe/frappe/app.py”, line 115, in application
response = handle_exception(e)
File “/home/rafique/frappe-bench/apps/frappe/frappe/app.py”, line 312, in handle_exception
response = frappe.utils.response.handle_session_stopped()
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/response.py”, line 272, in handle_session_stopped
return get_response(“message”, http_status_code=503)
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/serve.py”, line 26, in get_response
response = ErrorPage(exception=e).render()
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py”, line 84, in render
html = self.get_html()
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/utils.py”, line 517, in cache_html_decorator
html = func(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py”, line 101, in get_html
html = self.render_template()
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/page_renderers/template_page.py”, line 236, in render_template
html = frappe.render_template(self.source, self.context, safe_render=safe_render)
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/jinja.py”, line 94, in render_template
return get_jenv().from_string(template).render(context)
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/jinja2/environment.py”, line 1304, in render
self.environment.handle_exception()
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/jinja2/environment.py”, line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File “”, line 1, in top-level template code
File “/home/rafique/frappe-bench/apps/frappe/frappe/templates/web.html”, line 1, in top-level template code
{% extends base_template_path %}
File “/home/rafique/frappe-bench/apps/frappe/frappe/templates/base.html”, line 60, in top-level template code
{%- block navbar -%}
File “/home/rafique/frappe-bench/apps/frappe/frappe/templates/base.html”, line 61, in block ‘navbar’
{{ web_block(
File “/home/rafique/frappe-bench/env/lib/python3.10/site-packages/jinja2/sandbox.py”, line 394, in call
return __context.call(__obj, *args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/jinja_globals.py”, line 37, in web_block
return web_blocks([options])
File “/home/rafique/frappe-bench/apps/frappe/frappe/utils/jinja_globals.py”, line 65, in web_blocks
out = get_web_blocks_html(web_blocks)
File “/home/rafique/frappe-bench/apps/frappe/frappe/website/doctype/web_page/web_page.py”, line 212, in get_web_blocks_html
web_template = frappe.get_cached_doc(“Web Template”, block.web_template)
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 1109, in get_cached_doc
doc = get_doc(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 1200, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/model/document.py”, line 78, in get_doc
return controller(*args, **kwargs)
File “/home/rafique/frappe-bench/apps/frappe/frappe/model/document.py”, line 110, in init
self.load_from_db()
File “/home/rafique/frappe-bench/apps/frappe/frappe/model/document.py”, line 151, in load_from_db
frappe.throw(
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 548, in throw
msgprint(
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 509, in msgprint
_raise_exception()
File “/home/rafique/frappe-bench/apps/frappe/frappe/init.py”, line 455, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Web Template Standard Navbar not found

Hi,

Trying to restore a v12 backup to v14 is not likely to succeed. if possible, restore it to a v12 instance , then upgrade that to 13, then 14 and backup. There’s too many changes between major versions to restore across them effortlessly.

1 Like

@RafiqueKhattak you can not restore backup in any other version site so u can update the your version 12 to version 13 and then version 14 and then version 15

This is step to follow for version upgrade

Example version 14 to 15 :

I already told to you in your previous post, why do you create the complexity?