Cable Traces Broken in 3.0-beta2 #5206

Closed
opened 2025-12-29 19:25:27 +01:00 by adam · 6 comments
Owner

Originally created by @nbogle on GitHub (Aug 19, 2021).

NetBox version

v3.0-beta2

Python version

3.8

Steps to Reproduce

1.) Create a circuit and connect its A/Z terminations to a port
2.) Attempt a Cable Trace

or

1.) Attempt a cable trace from front or rear port of device.

Expected Behavior

Show the cable trace and then display the trace. Allow downloads of SVG to occur

Observed Behavior

No cable trace is displayed, and upon clicking download SVG, the following error is given:
{"error": "'NoneType' object has no attribute 'get_absolute_url'", "exception": "AttributeError", "netbox_version": "3.0-beta2", "python_version": "3.8.10"}

If trying to trace from a front or rear port on a device, the following error is displayed:

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

The complete exception is provided below:

<class 'AttributeError'>

'NoneType' object has no attribute 'origin'

Python version: 3.8.10
NetBox version: 3.0-beta2
If further assistance is required, please post to the NetBox mailing list.

Home Page
Originally created by @nbogle on GitHub (Aug 19, 2021). ### NetBox version v3.0-beta2 ### Python version 3.8 ### Steps to Reproduce 1.) Create a circuit and connect its A/Z terminations to a port 2.) Attempt a Cable Trace or 1.) Attempt a cable trace from front or rear port of device. ### Expected Behavior Show the cable trace and then display the trace. Allow downloads of SVG to occur ### Observed Behavior No cable trace is displayed, and upon clicking download SVG, the following error is given: `{"error": "'NoneType' object has no attribute 'get_absolute_url'", "exception": "AttributeError", "netbox_version": "3.0-beta2", "python_version": "3.8.10"}` If trying to trace from a front or rear port on a device, the following error is displayed: ``` Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'AttributeError'> 'NoneType' object has no attribute 'origin' Python version: 3.8.10 NetBox version: 3.0-beta2 If further assistance is required, please post to the NetBox mailing list. Home Page ```
adam added the type: bugstatus: revisions neededbeta labels 2025-12-29 19:25:27 +01:00
adam closed this issue 2025-12-29 19:25:27 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 20, 2021):

Please provide detailed reproduction steps.

@jeremystretch commented on GitHub (Aug 20, 2021): Please provide detailed reproduction steps.
Author
Owner

@jeremystretch commented on GitHub (Aug 20, 2021):

Also, this may just be an issue with your local data. Try rebuilding the cable paths first with manage.py trace_paths --force.

@jeremystretch commented on GitHub (Aug 20, 2021): Also, this may just be an issue with your local data. Try rebuilding the cable paths first with `manage.py trace_paths --force`.
Author
Owner

@nbogle commented on GitHub (Aug 20, 2021):

I tried rebuilding the cable paths -- to no avail. I am not sure how I can get any more detailed. Any time I build a cable, and try to trace it, I just get nothing returned, like this:
image

@nbogle commented on GitHub (Aug 20, 2021): I tried rebuilding the cable paths -- to no avail. I am not sure how I can get any more detailed. Any time I build a cable, and try to trace it, I just get nothing returned, like this: ![image](https://user-images.githubusercontent.com/10579989/130250460-e3283728-fd2e-43ca-8803-84ffbc8e3f83.png)
Author
Owner

@jeremystretch commented on GitHub (Aug 20, 2021):

I am not sure how I can get any more detailed.

You wrote:

1.) Create a circuit and connect its A/Z terminations to a port

Start with the creation of the circuit, and then its termination(s). What values are you using? Are you attaching each termination to a site, an interface, etc.? Which end do you start with? Be specific.

The more detail you provide, the more help you'll get.

@jeremystretch commented on GitHub (Aug 20, 2021): > I am not sure how I can get any more detailed. You wrote: > 1.) Create a circuit and connect its A/Z terminations to a port Start with the creation of the circuit, and then its termination(s). What values are you using? Are you attaching each termination to a site, an interface, etc.? Which end do you start with? Be specific. The more detail you provide, the more help you'll get.
Author
Owner

@thatmattlove commented on GitHub (Aug 20, 2021):

Just wanted to add: I ran into this recently, and was able to reproduce it locally just now by going to the cable trace for circuit 19 (demo data). However, after running manage.py trace_paths --force, the issue went away.

@thatmattlove commented on GitHub (Aug 20, 2021): Just wanted to add: I ran into this recently, and was able to reproduce it locally just now by going to the cable trace for circuit 19 (demo data). However, after running `manage.py trace_paths --force`, the issue went away.
Author
Owner

@jeremystretch commented on GitHub (Aug 27, 2021):

Closing this out as there has been no further response from OP and is most likely a local issue.

@jeremystretch commented on GitHub (Aug 27, 2021): Closing this out as there has been no further response from OP and is most likely a local issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5206