Broke Version 16

I spun up an instance of version 16 to play around with it and I was trying to create a custom Desktop Icon but somehow broke it where I can’t do anything anymore. No matter what I try to do, I get this error page:

The error message reads:

Traceback (most recent call last):
  File "apps/frappe/frappe/www/desk.py", line 30, in get_context
    boot = frappe.sessions.get()
  File "apps/frappe/frappe/sessions.py", line 144, in get
    bootinfo = get_bootinfo()
  File "apps/frappe/frappe/boot.py", line 60, in get_bootinfo
    bootinfo.desktop_icons = get_desktop_icons(bootinfo=bootinfo)
                             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/desk/doctype/desktop_icon/desktop_icon.py", line 234, in get_desktop_icons
    icon = frappe.get_doc("Desktop Icon", s)
  File "apps/frappe/frappe/model/utils/__init__.py", line 218, in wrapper
    return dispatch(args[0])(*args, **kw)
           ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 125, in get_doc_str
    doc = controller(doctype, name, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 208, in __init__
    self.load_from_db()
    ~~~~~~~~~~~~~~~~~^^
  File "apps/frappe/frappe/model/document.py", line 276, in load_from_db
    frappe.throw(
    ~~~~~~~~~~~~^
    	_("{0} {1} not found").format(_(self.doctype), self.name),
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    	frappe.DoesNotExistError(doctype=self.doctype),
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "apps/frappe/frappe/utils/messages.py", line 148, in throw
    msgprint(
    ~~~~~~~~^
    	msg,
     ^^^^
    ...<6 lines>...
    	primary_action=primary_action,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "apps/frappe/frappe/utils/messages.py", line 109, in msgprint
    _raise_exception()
    ~~~~~~~~~~~~~~~~^^
  File "apps/frappe/frappe/utils/messages.py", line 58, in _raise_exception
    raise exc
frappe.exceptions.DoesNotExistError: Desktop Icon {'label': 'Build', 'link': None, 'link_type': 'Workspace Sidebar', 'app': None, 'icon_type': 'Link', 'parent_icon': None, 'icon': 'hammer', 'link_to': 'My Sidebar', 'idx': 0, 'standard': 0, 'logo_url': None, 'hidden': 0, 'name': 'Custom Icon', 'sidebar': 'My New Sidebar'} not found

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
    return 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 540, 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/desk.py", line 32, in get_context
    raise frappe.SessionBootFailed from e
frappe.exceptions.SessionBootFailed

I could easily just wipe it and recreate a new instance but would like to understand what happened. Anyone else come across this?

1 Like

Same issue and wait for support =))

try

bench migrate

i have tried it but not success

Thanks. That solved it for me.

I stand corrected. Maybe it was just a caching thing that made me think it was fixed but now this morning when I tried to go back into the site, I’m back to the same error message.

This might get fixed with the following pull request.