Skip to content

Home page doesn't load post power failure #9784

Answered by svetlinski
svetlinski asked this question in Q&A
Discussion options

You must be logged in to vote

I hope this helps someone else in the same situation, but checking the nginx logs helped me:
2022/07/20 09:05:33 [error] 117920#117920: *39 open() "/opt/netbox/netbox-3.1.6/static/netbox-external.css" failed (2: No such file or directory), client: ::ffff:192.x.x.x, server: netbox.example.com, request: "GET /static/netbox-external.css?v=3.1.6 HTTP/1.1", host: "192.x.x.x", referrer: "https://192.x.x.x/"

The file is actually located in /opt/netbox/netbox-3.1.6/netbox/static/.

To fix this, edit the /etc/nginx/sites-available/netbox file:
location /static/ {
alias /opt/netbox/netbox-3.1.6**/netbox/**static/;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@svetlinski
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ryanmerolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9783 on July 19, 2022 22:34.