'dcim.models.cables.Cable.DoesNotExist error when trying to recreate cable. #5173

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

Originally created by @bordwalk2000 on GitHub (Aug 12, 2021).

NetBox version

v2.11.10

Python version

3.8

Steps to Reproduce

  1. Connect Cable to two entities. (I've tried device to device and device to circuit, both create the same error.)
  2. Delete cable because one side was not connected to correct interface.
  3. Re-Create the cable but connecting one side to a different interface.
  4. Bug appears

P.S. I am running NetBox in docker.

Expected Behavior

A new cable to be create to the two entities.

Observed Behavior

Following error occurs.

image

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

Cable matching query does not exist.

Python version: 3.8.10
NetBox version: 2.11.10

Note: A restart of the NetBox docker container containers corrects the problem until the next time I go to delete a cable.

Originally created by @bordwalk2000 on GitHub (Aug 12, 2021). ### NetBox version v2.11.10 ### Python version 3.8 ### Steps to Reproduce 1. Connect Cable to two entities. (I've tried device to device and device to circuit, both create the same error.) 2. Delete cable because one side was not connected to correct interface. 3. Re-Create the cable but connecting one side to a different interface. 4. Bug appears P.S. I am running NetBox in docker. ### Expected Behavior A new cable to be create to the two entities. ### Observed Behavior Following error occurs. ![image](https://user-images.githubusercontent.com/4552602/129195996-ef4c101e-01c8-4cf2-98b8-1bb4ea1054ab.png) <class 'dcim.models.cables.Cable.DoesNotExist'> Cable matching query does not exist. Python version: 3.8.10 NetBox version: 2.11.10 Note: A restart of the NetBox docker container containers corrects the problem until the next time I go to delete a cable.
adam added the type: bugstatus: duplicate labels 2025-12-29 19:25:06 +01:00
adam closed this issue 2025-12-29 19:25:06 +01:00
Author
Owner

@bellwood commented on GitHub (Aug 12, 2021):

This is a known issue with caching, see: #6636

@bellwood commented on GitHub (Aug 12, 2021): This is a known issue with caching, see: #6636
Author
Owner

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

Yep. Please disable caching by setting CACHE_TIMEOUT = 0 in configuration.py and restart NetBox to resolve the issue.

@jeremystretch commented on GitHub (Aug 12, 2021): Yep. Please disable caching by setting `CACHE_TIMEOUT = 0` in `configuration.py` and restart NetBox to resolve the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5173