Replies: 1 comment 2 replies
-
So you have device interfaces in the database (table Try this query in postgres:
and look for devices with the given device_id ( However, that should not be possible, because there should be a foreign key constraint which prevents it.
If you're missing that constraint, then your database is badly corrupted - perhaps some migrations were not correctly applied during updates from older versions of Netbox. You'll need a SQL expert to fix this, together with a freshly installed Netbox of the same version. You could either compare the schemas manually and apply fixups by hand; or export the contents of the tables of one system into the new system. But you'll really need to know what you're doing with SQL to do that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi all,
when trying to update from 3.2.6 to 3.3.2 I received errors. I went back to 3.2.6 through a snapshot of the system and checked my entries there. I have 4 cables which I can't delete with 8 connections (which I don't see). I get the following error:
<class 'dcim.models.cables.Cable.DoesNotExist'>
Cable matching query does not exist.
Python version: 3.9.2
NetBox version: 3.2.6
On further checking it turns out that all my devices are no longer in the database. There are 116 interfaces according to the balloon in the bar and according to the api, but the list remains empty.
Also, since some update, all the associated devices have been deleted. According to the history, the last time I made changes to devices was in June.
Everything under Virtualisation and IPAM is still correct.
Is there a way to delete the devices and connection section in the database so that I can continue to update cleanly? The entries there do not bother me when they are gone.
Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions