Netbox Static Media Failure #5502

Closed
opened 2025-12-29 19:28:45 +01:00 by adam · 0 comments
Owner

Originally created by @apellini on GitHub (Oct 8, 2021).

NetBox version

v3.0.6

Python version

3.9

Steps to Reproduce

  1. Install a brand new NetBox Installation on RHEL 7 VM
  2. Configure gunicorn
  3. Start the service netbox and netbox-rq

Expected Behavior

See boarding login page.

Observed Behavior

Unformatted page and after you enter user and password data you are redirected to Static Media Failure page.

On NGINX sees following log:

2021/10/08 19:34:16 [error] 21819#21819: *2942 open() "/opt/netbox/netbox/static/netbox-print.css" failed (2: No such file or directory), client: ::ffff:192.168.0.2, server: fqdn, request: "GET /static/netbox-print.css HTTP/1.1", host: "fqdn", referrer: "https://fqdn/login/?next=/media-failure/%3Ffilename%3Dnetbox-print.css"

But if you try directly bypassing NGINX you have the same result.

Instead if you use start gunicorn via CLI it works.

Originally created by @apellini on GitHub (Oct 8, 2021). ### NetBox version v3.0.6 ### Python version 3.9 ### Steps to Reproduce 1. Install a brand new NetBox Installation on RHEL 7 VM 2. Configure gunicorn 3. Start the service netbox and netbox-rq ### Expected Behavior See boarding login page. ### Observed Behavior Unformatted page and after you enter user and password data you are redirected to Static Media Failure page. On NGINX sees following log: 2021/10/08 19:34:16 [error] 21819#21819: *2942 open() "/opt/netbox/netbox/static/netbox-print.css" failed (2: No such file or directory), client: ::ffff:192.168.0.2, server: fqdn, request: "GET /static/netbox-print.css HTTP/1.1", host: "fqdn", referrer: "https://fqdn/login/?next=/media-failure/%3Ffilename%3Dnetbox-print.css" But if you try directly bypassing NGINX you have the same result. Instead if you use start gunicorn via CLI it works.
adam added the type: bug label 2025-12-29 19:28:46 +01:00
adam closed this issue 2025-12-29 19:28:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5502