ERPNext does not install - Internal Server Error

Hi Guys,

First attempt did not succeed.

Then on second attempt I got it through, but then it ran :

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/apps/frappe/frappe/website/page_renderers/static_page.py", line 30, in __init__
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     self.set_file_path()
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/apps/frappe/frappe/website/page_renderers/static_page.py", line 37, in set_file_path
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     file_path = frappe.get_app_path(app, "www") + "/" + self.path
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1483, in get_app_path
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     return get_pymodule_path(app_name, *joins)
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1513, in get_pymodule_path
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     return abspath(join(dirname(get_module(scrub(modulename)).__file__ or ""), *joins))
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1454, in get_module
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     return importlib.import_module(modulename)
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     return _bootstrap._gcd_import(name[level:], package, level)
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
2025-10-02T09:07:18-03:00 [1:erpnext2:backend] ModuleNotFoundError: No module named 'whitelabel'
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]
2025-10-02T09:07:18-03:00 [1:erpnext2:backend] During handling of the above exception, another exception occurred:
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]
2025-10-02T09:07:18-03:00 [1:erpnext2:backend] Traceback (most recent call last):
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/gunicorn/workers/gthread.py", line 300, in handle
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     keepalive = self.handle_request(req, conn)
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/gunicorn/workers/gthread.py", line 352, in handle_request
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]     respiter = self.wsgi(environ, resp.start_response)
2025-10-02T09:07:18-03:00 [1:erpnext2:backend]                

Tried on different servers, same results.

Best regards,

It seems that there are issues regarding the module “whitelabel”, cc @oneitonitram
I tried the installation without that module and it worked.

Apologies, I have seen the issue.
While Whitelable is listed here: ns8-erpnext/ui/src/views/Settings.vue at main · geniusdynamics/ns8-erpnext

WHitelable was not added on the Application Build List, at the time you downloaded your erpnext version
frappe_docker/apps.json at main · geniusdynamics/frappe_docker

I have since added it here: Update apps.json Add whitelable · geniusdynamics/frappe_docker@a494cd2

The Application Build List for erpnext, determines which applications are built and provided with erpnext, on the docker image.

You can pull the latest image, in About an Hour, and you should be able to install in on your server,
or manually install it using bench install whitelable, using instructions here: ns8-erpnext/README.md at main · geniusdynamics/ns8-erpnext · GitHub

2 Likes

Great,

Will try it then.

I selected a few modules, so I can try it.

Thanks,

All other modules should work fine.
I also noticed why the module was removed.

it was causing a build issue, just patched the module, lets wait for build to complete, i will update.

try installing white lable from this geniusdynamics/ns8-erpnext at dev

add-module ghcr.io/geniusdynamics/erpnext:dev 1

let me know

1 Like

Hi all,

What a great app!

We should make it work!

Even if I remove the module by hand it still complains that the module is not there.

I decided to remove it completely but I got an error: Network timeout

So I’m uninstalling by hand and see if I get a better shot with a new install.

Thanks,