Skip to content

Netbox Static Media Failure #7509

@apellini

Description

@apellini

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions