demo.netbox.dev cable trace error #5317

Closed
opened 2025-12-29 19:26:35 +01:00 by adam · 3 comments
Owner

Originally created by @ryanmerolle on GitHub (Sep 3, 2021).

Discussed in https://github.com/netbox-community/netbox/discussions/7173

Originally posted by devon-mar September 3, 2021
I was playing around with v3.0 on demo.netbox.dev and it seems that the cable trace button is broken for devices from netbox-demo-data. I didn't open an issue because I'm not sure if this has to do with NetBox or the demo data.

NetBox version

v3.0.1

Python version

3.8.10

Steps to reproduce:

  1. Open the interface tab on one of the demo devices (eg. dmi01-akron-sw01)
  2. Click the blue cable trace button on one of the interfaces
  3. The following error occurs
<class 'KeyError'>

35

Python version: 3.8.10
NetBox version: 3.0.1

I also can't delete the cable and recreate it as I get a unique constraint violation:

<class 'django.db.utils.IntegrityError'>

duplicate key value violates unique constraint "dcim_cablepath_origin_type_id_origin_id_41b6f814_uniq"
DETAIL:  Key (origin_type_id, origin_id)=(27, 171) already exists.


Python version: 3.8.10
NetBox version: 3.0.1
```</div>

example link https://demo.netbox.dev/dcim/interfaces/170/trace/
Originally created by @ryanmerolle on GitHub (Sep 3, 2021). ### Discussed in https://github.com/netbox-community/netbox/discussions/7173 <div type='discussions-op-text'> <sup>Originally posted by **devon-mar** September 3, 2021</sup> I was playing around with v3.0 on `demo.netbox.dev` and it seems that the cable trace button is broken for devices from `netbox-demo-data`. I didn't open an issue because I'm not sure if this has to do with NetBox or the demo data. ### NetBox version v3.0.1 ### Python version 3.8.10 ### Steps to reproduce: 1. Open the interface tab on one of the demo devices (eg. `dmi01-akron-sw01`) 2. Click the blue cable trace button on one of the interfaces 3. The following error occurs ``` <class 'KeyError'> 35 Python version: 3.8.10 NetBox version: 3.0.1 ``` I also can't delete the cable and recreate it as I get a unique constraint violation: ``` <class 'django.db.utils.IntegrityError'> duplicate key value violates unique constraint "dcim_cablepath_origin_type_id_origin_id_41b6f814_uniq" DETAIL: Key (origin_type_id, origin_id)=(27, 171) already exists. Python version: 3.8.10 NetBox version: 3.0.1 ```</div> example link https://demo.netbox.dev/dcim/interfaces/170/trace/
adam added the type: bug label 2025-12-29 19:26:35 +01:00
adam closed this issue 2025-12-29 19:26:35 +01:00
Author
Owner

@DanSheps commented on GitHub (Sep 3, 2021):

Is this only an issue with demo-data @devon-mar?

IF you put in data is it fine?

@DanSheps commented on GitHub (Sep 3, 2021): Is this only an issue with demo-data @devon-mar? IF you put in data is it fine?
Author
Owner

@devon-mar commented on GitHub (Sep 3, 2021):

Is this only an issue with demo-data @devon-mar?

IF you put in data is it fine?

It seems like only interfaces that had a cable connection IN the demo data are affected. I can successfully add a cable to one of the demo device's interfaces that didn't already have a cable connected to it.

@devon-mar commented on GitHub (Sep 3, 2021): > Is this only an issue with demo-data @devon-mar? > > IF you put in data is it fine? It seems like only interfaces that had a cable connection IN the demo data are affected. I can successfully add a cable to one of the demo device's interfaces that didn't already have a cable connected to it.
Author
Owner

@ryanmerolle commented on GitHub (Sep 4, 2021):

Then we can probably move this to demo data repo

@ryanmerolle commented on GitHub (Sep 4, 2021): Then we can probably move this to demo data repo
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5317