Fresh install of ERPNext on a Linux server is causing the following issue when navigating to /app/home on initial Administrator login:
Traceback (most recent call last): File "apps/frappe/frappe/www/app.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 108, in get_bootinfo bootinfo.energy_points_enabled = is_energy_point_enabled() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "apps/frappe/frappe/social/doctype/energy_point_settings/energy_point_settings.py", line 32, in is_energy_point_enabled return frappe.db.get_single_value("Energy Point Settings", "enabled", True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "apps/frappe/frappe/database/database.py", line 839, in get_single_value df = frappe.get_meta(doctype).get_field(fieldname) ^^^^^^^^^^^^^^^^^^^^^^^^ File "apps/frappe/frappe/__init__.py", line 1338, in get_meta return frappe.model.meta.get_meta(doctype, cached=cached) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "apps/frappe/frappe/model/meta.py", line 71, in get_meta meta = Meta(doctype) ^^^^^^^^^^^^^ File "apps/frappe/frappe/model/meta.py", line 125, in __init__ super().__init__("DocType", doctype) File "apps/frappe/frappe/model/document.py", line 126, in __init__ self.load_from_db() File "apps/frappe/frappe/model/meta.py", line 131, in load_from_db super().load_from_db() File "apps/frappe/frappe/model/document.py", line 179, in load_from_db frappe.throw( File "apps/frappe/frappe/__init__.py", line 609, in throw msgprint( File "apps/frappe/frappe/__init__.py", line 574, in msgprint _raise_exception() File "apps/frappe/frappe/__init__.py", line 525, in _raise_exception raise exc frappe.exceptions.DoesNotExistError: DocType Energy Point Settings 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 534, 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/app.py", line 32, in get_context raise frappe.SessionBootFailed from e frappe.exceptions.SessionBootFailed
Here are the steps taken, after installing bench and initializing a new site:
bench get-app payments
bench get-app --branch version-15 erpnext
bench switch-to-branch version-15 (had to do this since Frappe was on 16)
bench --site [APP_NAME] install-app erpnext
bench start
bench migrate