'Site' object has no attribute 'scope_id' when viewing IP address information #10623

Closed
opened 2025-12-29 21:33:50 +01:00 by adam · 2 comments
Owner

Originally created by @panolex on GitHub (Jan 8, 2025).

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.2.0

Python Version

3.10

Steps to Reproduce

  1. Upgrade from Netbox 4.1.10 to 4.2.0 (upgrade finished successfully, actually not sure if it upgrade related)
  2. View info about ip address in Web UI (for example http://example.com/ipam/ip-addresses/152489/)

Expected Behavior

Info about IP address displayed, no errors.

Observed Behavior

Server Error

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'AttributeError'>

'Site' object has no attribute 'scope_id'

Python version: 3.10.12
NetBox version: 4.2.0
Plugins:
netbox_device_view: 0.1.7
netbox_gateways: 0.4.3
netbox_ipcalculator: 1.4.9
netbox_ipv4_tools: 1.0.4
netbox_reorder_rack: 1.1.3
If further assistance is required, please post to the NetBox discussion forum on GitHub.

Originally created by @panolex on GitHub (Jan 8, 2025). ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.2.0 ### Python Version 3.10 ### Steps to Reproduce 1. Upgrade from Netbox 4.1.10 to 4.2.0 (upgrade finished successfully, actually not sure if it upgrade related) 2. View info about ip address in Web UI (for example http://example.com/ipam/ip-addresses/152489/) ### Expected Behavior Info about IP address displayed, no errors. ### Observed Behavior Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'AttributeError'> 'Site' object has no attribute 'scope_id' Python version: 3.10.12 NetBox version: 4.2.0 Plugins: netbox_device_view: 0.1.7 netbox_gateways: 0.4.3 netbox_ipcalculator: 1.4.9 netbox_ipv4_tools: 1.0.4 netbox_reorder_rack: 1.1.3 If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub.
adam closed this issue 2025-12-29 21:33:50 +01:00
Author
Owner

@panolex commented on GitHub (Jan 8, 2025):

Issue caused by plugin "netbox_gateways"

It reports 0.4.3 version but actually it is 0.6.0:

pip list | grep gatewa
netbox-gateways 0.6.0

@panolex commented on GitHub (Jan 8, 2025): Issue caused by plugin "netbox_gateways" It reports 0.4.3 version but actually it is 0.6.0: pip list | grep gatewa netbox-gateways 0.6.0
Author
Owner

@jeremystretch commented on GitHub (Jan 8, 2025):

As this appears to be an issue with a plugin I'm going to close this out. If you uncover an issue within NetBox itself, please feel free to re-submit.

@jeremystretch commented on GitHub (Jan 8, 2025): As this appears to be an issue with a plugin I'm going to close this out. If you uncover an issue within NetBox itself, please feel free to re-submit.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10623