No module named 'netbox.wsgi #19393
-
Did a clean install twice on Ubuntu 22.04. Used official install docs. And it always throws an error when I try to start the systemd services (4.). Development startup works (at the end of 3.), can access site and log in. Error is ModuleNotFoundError: No module named 'netbox.wsgi'. May 03 12:31:08 a gunicorn[2277]: [2025-05-03 12:31:08 +0200] [2277] [INFO] Starting gunicorn 23.0.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Have you verified that
(you can enclose the outputs in three backticks: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks) |
Beta Was this translation helpful? Give feedback.
-
Ah, and thank you for being extremely fast! |
Beta Was this translation helpful? Give feedback.
ls -ld /opt
drwxr-xr-x 3 root root 4096 May 3 10:15 /opt
ls -ld /opt/netbox
drwxr-xr-x 11 root root 4096 May 3 11:51 /opt/netbox
ls -ld /opt/netbox/netbox
drwxr-x--- 22 root root 4096 May 3 10:58 /opt/netbox/netbox
ls -ld /opt/netbox/netbox/netbox
drwxr-xr-x 15 root root 4096 May 3 10:44 /opt/netbox/netbox/netbox
YES, YES, YES - got it!
/opt/netbox/netbox got the wrong permissions. Changed them, and it works!
How could that happen? Did I do something wrong?
Thank you very much!
PS: And thanks for the
three backticks
.