Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
markkuleinio opened this issue May 8, 2024 · 3 comments · Fixed by #16035
Closed

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

markkuleinio opened this issue May 8, 2024 · 3 comments · Fixed by #16035
Assignees
Labels
status: accepted This issue has been accepted for implementation type: documentation A change or addition to the documentation

Comments

@markkuleinio
Copy link
Contributor

markkuleinio commented May 8, 2024

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
@markkuleinio markkuleinio added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels May 8, 2024
@markkuleinio
Copy link
Contributor Author

I'm willing to submit PR for that fix

@julianstolp
Copy link

Can confirm this issue, see: #16030

@jeremystretch jeremystretch added type: documentation A change or addition to the documentation status: accepted This issue has been accepted for implementation and removed type: bug A confirmed report of unexpected behavior in the application status: needs triage This issue is awaiting triage by a maintainer labels May 8, 2024
@jeremystretch
Copy link
Member

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

markkuleinio added a commit to markkuleinio/netbox that referenced this issue May 8, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: documentation A change or addition to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants