Static Media Failure #4267

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

Originally created by @abrand67 on GitHub (Nov 11, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.9.9

Steps to Reproduce

  1. Install minimal server CentOS 8
  2. Upgrade all packages to current
  3. Install Netbox per https://netbox.readthedocs.io/en/stable/installation/ using git
  4. Install Nginx

Expected Behavior

I expected Netbox to work

Observed Behavior

No errors were encountered during the install. Using the gunicorn server Netbox loads. Trying to launch it using NginX I get the following:
Static Media Failure
The following static media file failed to load: bootstrap-3.4.1-dist/css/bootstrap.min.css
Check the following:

manage.py collectstatic was run during the most recent upgrade. This installs the most recent iteration of each static file into the static root path.
The HTTP service (e.g. nginx or Apache) is configured to serve files from the STATIC_ROOT path. Refer to the installation documentation for further guidance.
STATIC_ROOT: /opt/netbox/netbox/static
STATIC_URL: /static/
The file bootstrap-3.4.1-dist/css/bootstrap.min.css exists in the static root directory and is readable by the HTTP process.
Click here to attempt loading NetBox again.

Originally created by @abrand67 on GitHub (Nov 11, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/g/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: 3.6.8 * NetBox version: 2.9.9 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Install minimal server CentOS 8 2. Upgrade all packages to current 3. Install Netbox per https://netbox.readthedocs.io/en/stable/installation/ using git 4. Install Nginx <!-- What did you expect to happen? --> ### Expected Behavior I expected Netbox to work <!-- What happened instead? --> ### Observed Behavior No errors were encountered during the install. Using the gunicorn server Netbox loads. Trying to launch it using NginX I get the following: Static Media Failure The following static media file failed to load: bootstrap-3.4.1-dist/css/bootstrap.min.css Check the following: manage.py collectstatic was run during the most recent upgrade. This installs the most recent iteration of each static file into the static root path. The HTTP service (e.g. nginx or Apache) is configured to serve files from the STATIC_ROOT path. Refer to the installation documentation for further guidance. STATIC_ROOT: /opt/netbox/netbox/static STATIC_URL: /static/ The file bootstrap-3.4.1-dist/css/bootstrap.min.css exists in the static root directory and is readable by the HTTP process. Click here to attempt loading NetBox again.
adam closed this issue 2025-12-29 18:34:19 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 11, 2020):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.

@jeremystretch commented on GitHub (Nov 11, 2020): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using one of the templates provided [here](https://github.com/netbox-community/netbox/issues/new/choose). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) instead.
Author
Owner

@abrand67 commented on GitHub (Nov 11, 2020):

Why did you close this? I did use the bug template at the location you sited.

@abrand67 commented on GitHub (Nov 11, 2020): Why did you close this? I did use the bug template at the location you sited.
Author
Owner

@jeremystretch commented on GitHub (Nov 11, 2020):

For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.

@jeremystretch commented on GitHub (Nov 11, 2020): > For general discussion, questions, or assistance with installation issues, please post to our mailing list instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4267