Issue with replicating a netbox instance - relation already exists #12883
Unanswered
jozefws
asked this question in
Help Wanted!
Replies: 1 comment 1 reply
-
On the old (source) box, try If it doesn't (and you should also check this table doesn't exist in the pg_dump file that you exported), then the problem is likely on the import side: you need to completely drop and recreate the (empty) netbox database, before restoring from the pg_dump file. Then you can run There should be no need to run |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there - Trying to replicate a netbox instance from an old server.
I have pg_dumped it to an SQL file and have a fresh brand new instance of netbox installed on the new machine. Going through the replication steps it all works fine until it gets to migrating to circuit provider.
Then the migration errors out and spits out
django.db.utils.ProgrammingError: relation "circuits_provideraccount" already exists
.e.g. "manage.py migrate --fake"
I have tried all the obvious solutions from stack overflow which don't work.
The netbox version on the new machine is v3.5.3 and the older machine was on one from 3.4.7.
Any ideas? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions