diff --git a/Common-Issues.md b/Common-Issues.md index 982dda1..d210a54 100644 --- a/Common-Issues.md +++ b/Common-Issues.md @@ -1,5 +1,6 @@ * [ProgrammingError Exception Following a Recent Upgrade](#programmingerror-exception-following-a-recent-upgrade) * [502 Bad Gateway Error When Calling NAPALM API](#502-bad-gateway-error-when-calling-napalm-api) +* [Rack Elevations Do Not Display](#rack-elevations-do-not-display-v2.7) ## ProgrammingError Exception Following a Recent Upgrade @@ -19,4 +20,16 @@ NetBox is using NAPALM to request information from a device, but the WSGI proces ### Recommended Solution -You can increase the timeout of the WSGI process so that it waits longer for the device to respond. For example, you can set `timeout=60` in your Gunicorn configuration file. (Gunicorn's default timeout is 30 seconds.) Keep in mind that there's also a timeout value controlled by your HTTP daemon (e.g. nginx or Apache), which determines how long it will wait for a response from the WSGI service. This timeout must be equal to or greater than the WSGI timeout. \ No newline at end of file +You can increase the timeout of the WSGI process so that it waits longer for the device to respond. For example, you can set `timeout=60` in your Gunicorn configuration file. (Gunicorn's default timeout is 30 seconds.) Keep in mind that there's also a timeout value controlled by your HTTP daemon (e.g. nginx or Apache), which determines how long it will wait for a response from the WSGI service. This timeout must be equal to or greater than the WSGI timeout. + +## Rack Elevations Do Not Display (v2.7+) + +### What's Happening + +NetBox makes two requests to its REST API to render the front and rear elevations of a rack. You can try fetching these SVG images directly by requesting `/api/dcim/racks/XXX/elevation/?render=svg`, where XXX is the rack's database ID. + +If the direct API call is successful but the images don't appear on the rack page, it's likely that your HTTP server is setting the `X-Frame-Options` header to `DENY`. You can inspect the headers of the response by opening your browser's developer tools (F12 in Firefox/Chrome) and inspecting the initial request for the rack page. `X-Frame-Options` should be set to `SAMEORIGIN`. + +### Recommended Solution + +Inspect the configuration of your HTTP daemon (e.g. nginx or Apache) and remove any statements which statically set the `X-Frame-Options` header. \ No newline at end of file