Upgrade Error: netbox ipam_iprange already exists #710
Unanswered
unnuetz
asked this question in
Getting Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i was running latest v2.11.12 version and decided now to upgrade to the
latest v3.2.0.
What I did as recommended in the upgrade documentation is to create a postgres backup, then remove all old containers and remove postgres data volume.
Restored postgres data and start up all containers.
But now I got stuck:
What I did:
Stop all containers (old Version V2.11.12)
docker-compose down
Only start the DB
docker-compose up -d postgres
Take a DB backup
docker-compose exec -T netbox-docker_postgres_1 sh -c 'pg_dump -v -Fc -c -U netbox netbox' > "netbox_backup.pgdump"
Stop the database
docker-compose down
docker volume rm netbox-docker_netbox-postgres-data
Restore the database
output:
Start all other containers
docker-compose up
netbox container will exit 1 after a short time with the following error message:
docker-compose logs netbox
I was wondering if it could have something to do with the restore command i am using:
In the Wiki the command is beeing used:
gunzip -c db_dump.sql.gz | docker-compose exec -T postgres sh -c '**psql -U $POSTGRES_USER $POSTGRES_DB**'
and i am using:
docker-compose exec -T postgres sh -c "**pg_restore** -v -Fc -c -U $POSTGRES_USER -d $POSTGRES_DB" < "netbox_backup.pgdump"
if i am trying to use pgsql -U with the dump file without compression gz used. i am receiving the following error:
Beta Was this translation helpful? Give feedback.
All reactions