pgsql database backup on v2.8 and restore on v2.10 not working

39 views
Skip to first unread message

maxus...@gmail.com

unread,
Mar 23, 2021, 8:59:09 AM3/23/21
to NetBox
So I backup the database regulary with pg_dump and restore from time to time on different test-machines running different version of netbox.
Today I installed netbox v2.10.6 and imported .sql file with psql -U User database <
 db.sql from v2.8.
Import was successful but after the restart of services I get :
Server Error

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.contrib.contenttypes.models.ContentType.DoesNotExist'>
ContentType matching query does not exist. Python version: 3.6.8 NetBox version: 2.10.6


I'm not sure where the issue is. I wanted to continue with v2.10.6 as production machine after the database restore but I'm blocked now.

Brian Candler

unread,
Mar 23, 2021, 11:01:56 AM3/23/21
to NetBox
You have to run ./upgrade.sh after importing the database, to update the database schema to match 2.10.  Then restart netbox.

maxus...@gmail.com

unread,
Mar 23, 2021, 12:19:35 PM3/23/21
to NetBox
Thank you Brian, you saved my day !
Cheers
Reply all
Reply to author
Forward
0 new messages