uWSGI install docs don't lead to a working setup #9623

Closed
opened 2025-12-29 21:19:54 +01:00 by adam · 3 comments
Owner

Originally created by @markkuleinio on GitHub (May 8, 2024).

Originally assigned to: @markkuleinio on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.0

Python Version

3.11

Steps to Reproduce

  1. Use the install documentation https://docs.netbox.dev/en/stable/installation/4b-uwsgi/ to configure NetBox with uWSGI
  2. Start netbox service

Expected Behavior

netbox service is started

Observed Behavior

May 08 16:06:17 netbox-lab systemd[1]: Started netbox.service - NetBox WSGI Service.
May 08 16:06:17 netbox-lab uwsgi[568130]: [uWSGI] getting INI configuration from /opt/netbox/uwsgi.ini
May 08 16:06:17 netbox-lab uwsgi[568130]: *** Starting uWSGI 2.0.23 (64bit) on [Wed May  8 16:06:17 2024] ***
...
May 08 16:06:17 netbox-lab uwsgi[568130]: current working directory: /opt/netbox
...
May 08 16:06:17 netbox-lab uwsgi[568130]: *** no app loaded. GAME OVER ***
May 08 16:06:17 netbox-lab systemd[1]: netbox.service: Main process exited, code=exited, status=22/n/a

= it cannot find /opt/netbox/netbox/netbox/wsgi.py file.

Workaround: add these in uwsgi.ini:

chdir = netbox
wsgi-file = netbox/wsgi.py
# or, instead of wsgi-file:
module = netbox.wsgi:application
Originally created by @markkuleinio on GitHub (May 8, 2024). Originally assigned to: @markkuleinio on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.0 ### Python Version 3.11 ### Steps to Reproduce 1. Use the install documentation https://docs.netbox.dev/en/stable/installation/4b-uwsgi/ to configure NetBox with uWSGI 2. Start `netbox` service ### Expected Behavior `netbox` service is started ### Observed Behavior ``` May 08 16:06:17 netbox-lab systemd[1]: Started netbox.service - NetBox WSGI Service. May 08 16:06:17 netbox-lab uwsgi[568130]: [uWSGI] getting INI configuration from /opt/netbox/uwsgi.ini May 08 16:06:17 netbox-lab uwsgi[568130]: *** Starting uWSGI 2.0.23 (64bit) on [Wed May 8 16:06:17 2024] *** ... May 08 16:06:17 netbox-lab uwsgi[568130]: current working directory: /opt/netbox ... May 08 16:06:17 netbox-lab uwsgi[568130]: *** no app loaded. GAME OVER *** May 08 16:06:17 netbox-lab systemd[1]: netbox.service: Main process exited, code=exited, status=22/n/a ``` = it cannot find `/opt/netbox/netbox/netbox/wsgi.py` file. Workaround: add these in `uwsgi.ini`: ``` chdir = netbox wsgi-file = netbox/wsgi.py # or, instead of wsgi-file: module = netbox.wsgi:application ```
adam added the status: acceptedtype: documentation labels 2025-12-29 21:19:54 +01:00
adam closed this issue 2025-12-29 21:19:55 +01:00
Author
Owner

@markkuleinio commented on GitHub (May 8, 2024):

I'm willing to submit PR for that fix

@markkuleinio commented on GitHub (May 8, 2024): I'm willing to submit PR for that fix
Author
Owner

@julianstolp commented on GitHub (May 8, 2024):

Can confirm this issue, see: https://github.com/netbox-community/netbox/discussions/16030

@julianstolp commented on GitHub (May 8, 2024): Can confirm this issue, see: https://github.com/netbox-community/netbox/discussions/16030
Author
Owner

@jeremystretch commented on GitHub (May 8, 2024):

Thanks @markkuleinio, I've assigned this to you.

@jeremystretch commented on GitHub (May 8, 2024): Thanks @markkuleinio, I've assigned this to you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9623