Device Interface adding or re-adding a cable after deleting - Cable.DoesNotExist #5130

Closed
opened 2025-12-29 19:24:34 +01:00 by adam · 1 comment
Owner

Originally created by @Yentel on GitHub (Aug 2, 2021).

NetBox version

v2.11.10 (upgraded today from 2.9.X

Python version

3.8

Steps to Reproduce

  1. Navigate to the interfaces page of a certain device
  2. Click on add cable and choose circuit termination on a given interface.
  3. Select an available circuit and a side
  4. Select the cable type (CAT6a in my case)
  5. Create the cable

NOTE: I have been unable to reproduce this issue on a clone of our production netbox (same netbox version and python version).

NOTE: this also seems to occur when removing a cable between two device interfaces and trying to re-add the cable, so it does not seem to be limited to circuit terminations.

NOTE: If I choose another interface to re-create the cable, it works fine.

Expected Behavior

A cable is created between the interface and the given circuit side or device interface

Observed Behavior

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

The complete exception is provided below:

<class 'dcim.models.cables.Cable.DoesNotExist'>

Cable matching query does not exist.

Python version: 3.8.10
NetBox version: 2.11.10

Originally created by @Yentel on GitHub (Aug 2, 2021). ### NetBox version v2.11.10 (upgraded today from 2.9.X ### Python version 3.8 ### Steps to Reproduce 1. Navigate to the interfaces page of a certain device 2. Click on add cable and choose circuit termination on a given interface. 2. Select an available circuit and a side 3. Select the cable type (CAT6a in my case) 4. Create the cable NOTE: I have been unable to reproduce this issue on a clone of our production netbox (same netbox version and python version). NOTE: this also seems to occur when removing a cable between two device interfaces and trying to re-add the cable, so it does not seem to be limited to circuit terminations. NOTE: If I choose another interface to re-create the cable, it works fine. ### Expected Behavior A cable is created between the interface and the given circuit side or device interface ### Observed Behavior Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'dcim.models.cables.Cable.DoesNotExist'> Cable matching query does not exist. Python version: 3.8.10 NetBox version: 2.11.10
adam added the type: bugstatus: duplicate labels 2025-12-29 19:24:34 +01:00
adam closed this issue 2025-12-29 19:24:34 +01:00
Author
Owner

@TheNetworkGuy commented on GitHub (Aug 2, 2021):

See #6747 and #6781 for more information.

TLDR; Caching issue. Set CACHE_TIMEOUT to 0.

@TheNetworkGuy commented on GitHub (Aug 2, 2021): See #6747 and #6781 for more information. TLDR; Caching issue. Set CACHE_TIMEOUT to 0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5130