Energy Point Settings not found

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

Hi,

You should not mix the Frappe and ERPNext version. If you want to install version-15 of ERPNext, Frappe also should be on version-15.

Thanks,

Divyesh M.

Do setup a new site with the matching versions. In v15, Energy Point System was a part of the framework, so ERPNext also made use of it. It was split into a separate app on the develop branch.

Hi,

This error usually appears after a fresh ERPNext v15 install — the Energy Point Settings DocType isn’t created properly due to version mismatch or incomplete migration.

:white_check_mark: Quick Fix:

Run these commands inside your bench directory:

bench --site [your-site-name] migrate
bench --site [your-site-name] reload-doc social doctype energy_point_settings
bench --site [your-site-name] clear-cache
bench restart

If you mixed versions (Frappe v16 + ERPNext v15), fix it with:

bench switch-to-branch version-15 frappe erpnext
bench update --patch
bench restart

That should resolve the SessionBootFailed error and let you log in normally.


Tip: Always keep ERPNext and Frappe versions aligned to avoid such issues.

Or, skip manual setup altogether — try AccuWeb.Cloud ERPNext Hosting for a fully managed, production-ready environment:

  • One-click ERPNext deployment (v14–v16)

  • Automated updates & daily backups

  • Global Tier III cloud infrastructure

  • 24/7 expert support

You can launch ERPNext in minutes without touching the terminal.