Add workaround to make reloads work with pyuwsgi #9635

Closed
opened 2025-12-29 21:20:07 +01:00 by adam · 2 comments
Owner

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

Originally assigned to: @markkuleinio on GitHub.

Change Type

Addition

Area

Installation/upgrade

Proposed Changes

As discussed in https://github.com/netbox-community/netbox/issues/16043, when using pyuwsgi package (as used in the current NetBox instructions) there is a problem where uWSGI detects the Python binary incorrectly, and consequently uWSGI reloads won't work.

Other references:

I'm proposing adding the identified workaround in the NetBox-provided uwsgi.ini:

; workaround to make uWSGI reloads work with pyuwsgi (not to be used if using uwsgi package instead)
binary-path = venv/bin/python
Originally created by @markkuleinio on GitHub (May 9, 2024). Originally assigned to: @markkuleinio on GitHub. ### Change Type Addition ### Area Installation/upgrade ### Proposed Changes As discussed in https://github.com/netbox-community/netbox/issues/16043, when using `pyuwsgi` package (as used in the current NetBox instructions) there is a problem where uWSGI detects the Python binary incorrectly, and consequently uWSGI reloads won't work. Other references: - https://github.com/unbit/uwsgi/issues/2478 - https://github.com/lincolnloop/pyuwsgi-wheels/issues/23 I'm proposing adding the identified workaround in the NetBox-provided `uwsgi.ini`: ``` ; workaround to make uWSGI reloads work with pyuwsgi (not to be used if using uwsgi package instead) binary-path = venv/bin/python ```
adam added the status: acceptedtype: documentation labels 2025-12-29 21:20:07 +01:00
adam closed this issue 2025-12-29 21:20:07 +01:00
Author
Owner

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

If this is accepted, I can send the PR.

@markkuleinio commented on GitHub (May 9, 2024): If this is accepted, I can send the PR.
Author
Owner

@jeffgdotorg commented on GitHub (May 9, 2024):

LGTM. Thanks @markkuleinio.

@jeffgdotorg commented on GitHub (May 9, 2024): LGTM. Thanks @markkuleinio.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9635