Skip to content

Readonly upgrade doesn't build static content #21926

Description

@averyhabbott

NetBox Edition

NetBox Community

NetBox Version

v4.5.7

Python Version

3.12

Steps to Reproduce

  1. Build new NetBox folder and update the symlink to point at the new dir
  2. Complete all other upgrade steps before running the upgrade script itself
  3. Run the upgrade script in readonly mode to avoid db writes: "sudo /opt/netbox/upgrade.sh --readonly"
  4. Observe that the static folder in /opt/netbox/netbox did not get created
  5. Attempt to load the login page, observe error message regarding static content

Fix is to run manage.py collectstatic after the upgrade script, but this step isn't documented in the upgrade instructions and I assume it was intended to be automatically ran as a part of the upgrade script itself.

Expected Behavior

Per the upgrade instructions, I expect the static content to be created

Observed Behavior

Static folder does not get created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions