Clicking rack UI for devices results in attempt to resolve localhost #3627

Closed
opened 2025-12-29 18:30:15 +01:00 by adam · 2 comments
Owner

Originally created by @Smoot178 on GitHub (May 1, 2020).

Brand new Netbox environment running on Ubuntu 18.0.4 LTS.

Environment

  • Python version: 2.7.17
  • NetBox version: 2.8.1

Steps to Reproduce

  1. Open a rack in the web UI
  2. Click an existing device on the "rack visual" UI on the right side.

The link should resolve something like the following:
http://dcim.domain.com:8085/dcim/devices/5/

image

The link will attempt to resolve something like the following: http://localhost:8085/dcim/devices/5/

image

Originally created by @Smoot178 on GitHub (May 1, 2020). Brand new Netbox environment running on Ubuntu 18.0.4 LTS. ### Environment * Python version: 2.7.17 * NetBox version: 2.8.1 <!-- When clicking on a device in the "rack view", the link attempts to resolve "localhost" instead of the FQDN of the server like all other links. --> ### Steps to Reproduce 1. Open a rack in the web UI 2. Click an existing device on the "rack visual" UI on the right side. <!-- What did you expect to happen? --> The link should resolve something like the following: http://dcim.domain.com:8085/dcim/devices/5/ ![image](https://user-images.githubusercontent.com/2719585/80829349-f6d8d100-8bb4-11ea-8047-98a3bce78b59.png) <!-- What happened instead? --> The link will attempt to resolve something like the following: http://localhost:8085/dcim/devices/5/ ![image](https://user-images.githubusercontent.com/2719585/80829306-e294d400-8bb4-11ea-90e7-2585f683d06a.png)
adam closed this issue 2025-12-29 18:30:15 +01:00
Author
Owner

@ghost commented on GitHub (May 1, 2020):

We are seeing the same behaviour here since upgrading to Netbox 2.8.1. In our case, the link isn't localhost but the IP address of the netbox server itself. For example:

http://10.50.5.50/dcim/devices/38/

Rather than https://netbox.example.com/dcim/devices/38/

All other navigation around our instance seems to be working properly; only nav from the rack view is broken.

@ghost commented on GitHub (May 1, 2020): We are seeing the same behaviour here since upgrading to Netbox 2.8.1. In our case, the link isn't `localhost` but the IP address of the netbox server itself. For example: `http://10.50.5.50/dcim/devices/38/` Rather than `https://netbox.example.com/dcim/devices/38/` All other navigation around our instance seems to be working properly; only nav from the rack view is broken.
Author
Owner

@jeremystretch commented on GitHub (May 1, 2020):

Duplicate of #4526. Please see my comment here for how to correct your configuration.

@jeremystretch commented on GitHub (May 1, 2020): Duplicate of #4526. Please see my comment [here](https://github.com/netbox-community/netbox/issues/4526#issuecomment-618403170) for how to correct your configuration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3627