hit "Device matching query does not exist" when delete a device #3167

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

Originally created by @bybai on GitHub (Jan 16, 2020).

Environment

  • Python version: 3.6.6
  • NetBox version: 2.6.9

Steps to Reproduce

  1. I select a device, this device has interface

  2. I delete it, I got this error:
    image

  3. there is no error in backgroud:
    [13/Jan/2020 07:04:30] "POST /dcim/devices/46/delete/ HTTP/1.1" 500 1766
    [13/Jan/2020 07:04:30] "GET /static/bootstrap-3.4.1-dist/css/bootstrap.min.css HTTP/1.1" 304 0
    [13/Jan/2020 07:04:30] "GET /static/font-awesome-4.7.0/css/font-awesome.min.css HTTP/1.1" 304 0

  4. then I refresh this page, I got "Deleted device nodesw2" sucessful.

Expected Behavior

There is no error page.

Observed Behavior

There is a error page like above

Originally created by @bybai on GitHub (Jan 16, 2020). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.6<!-- Example: 3.5.4 --> * NetBox version: 2.6.9<!-- Example: 2.5.2 --> <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> ### Steps to Reproduce 1. I select a device, this device has interface 2. I delete it, I got this error: ![image](https://user-images.githubusercontent.com/6743951/72520750-10b80780-3895-11ea-90e0-00530eed0953.png) 3. there is no error in backgroud: [13/Jan/2020 07:04:30] "POST /dcim/devices/46/delete/ HTTP/1.1" 500 1766 [13/Jan/2020 07:04:30] "GET /static/bootstrap-3.4.1-dist/css/bootstrap.min.css HTTP/1.1" 304 0 [13/Jan/2020 07:04:30] "GET /static/font-awesome-4.7.0/css/font-awesome.min.css HTTP/1.1" 304 0 4. then I refresh this page, I got "Deleted device nodesw2" sucessful. <!-- What did you expect to happen? --> ### Expected Behavior There is no error page. <!-- What happened instead? --> ### Observed Behavior There is a error page like above
adam added the status: duplicate label 2025-12-29 18:26:16 +01:00
adam closed this issue 2025-12-29 18:26:16 +01:00
Author
Owner

@hSaria commented on GitHub (Jan 16, 2020):

I couldn't recreate this on v2.6.9, but it might be worth trying this on the latest stable release (v2.6.12).

@hSaria commented on GitHub (Jan 16, 2020): I couldn't recreate this on v2.6.9, but it might be worth trying this on the latest stable release (v2.6.12).
Author
Owner

@jeremystretch commented on GitHub (Jan 16, 2020):

Looks like a duplicate of #3927, which will be fixed in the next release.

@jeremystretch commented on GitHub (Jan 16, 2020): Looks like a duplicate of #3927, which will be fixed in the next release.
Author
Owner

@bybai commented on GitHub (Jan 17, 2020):

@jeremystretch, it is the same with #3927
after I added the patch in secrets/models.py, I still hit the problem

@bybai commented on GitHub (Jan 17, 2020): @jeremystretch, it is the same with #3927 after I added the patch in secrets/models.py, I still hit the problem
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3167