Home page doesn't load post power failure #9784
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Not a lot to go on here, but if the server was powered on continually (and never rebooted) since you installed NetBox, check settings that might not persist through a reboot/power loss. For example, this could be a SELinux issue. You could test that theory by doing a In any case, I suggest checking your nginx error logs for the exact error message when you try to load the page. |
Beta Was this translation helpful? Give feedback.
-
I hope this helps someone else in the same situation, but checking the nginx logs helped me: 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: |
Beta Was this translation helpful? Give feedback.
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/;