Upgrade error - duplicate key value violates unique constraint #5910
-
Hello, I am attempting to upgrade from version 2.8.3 (the ldap variant) to 2.10.5 (-ldap). I built the system in Docker. After dropping and creating the database, I ran pg_restore to populate my old data. When the system starts, it goes through its migrations and fails at virtualization.0016_replicate_interfaces with a unique constraint violation. I don't know where to go for this. both the virtualization_vminterface and virtualization_vminterface_tagged_vlans are empty. Any assistance is greatly appreciated. 🧬 loaded config '/etc/netbox/config/configuration.py' The above exception was the direct cause of the following exception: Traceback (most recent call last): ⏳ Waiting on DB... (0s / 30s) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The virtual machine with ID 1812 apparently has more than one interface named "Network adapter 1". Deleting the duplicate interface(s) and re-running the migration should fix it. |
Beta Was this translation helpful? Give feedback.
The virtual machine with ID 1812 apparently has more than one interface named "Network adapter 1". Deleting the duplicate interface(s) and re-running the migration should fix it.