Migrated from V2.11.0 to latest #15368
-
I have a Netbox Instance v2.10.5 running Ubuntu 1804 LTS and I got it to up v2.11.0, then I export the DB with this command. Stop the NetBox Service with sudo systemctl stop netbox netbox-rq Drop DB on new server, create a new blank, grant rights and import the dump: Now I get the following errors in CLI (venv) root@netbox-22:/opt/netbox/netbox# python3 manage.py migrate The above exception was the direct cause of the following exception: Traceback (most recent call last): Now I get the following errors in GUI Server Error Database migrations missing. When upgrading to a new NetBox release, the upgrade script must be run to apply any new database migrations. You can run migrations manually by executing python3 manage.py migrate from the command line. Unsupported PostgreSQL version. Ensure that PostgreSQL version 12 or later is in use. You can check this by connecting to the database using NetBox's credentials and issuing a query for SELECT VERSION(). The complete exception is provided below: <class 'django.db.utils.ProgrammingError'> relation "extras_bookmark" does not exist Python version: 3.10.12 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
0130_sitegroup.py was removed in 4383425 and has a replacement entry in
Django seems to think you've partially applied this update. What happens if you drop the database, reimport and remigrate? I note that 2.11.0 was released on Fri Apr 16 09:52:45 2021 -0400, but there was a commit a week later which may be relevant:
Since this migration still exists in v3.7.3, I don't think it should cause any problem. Still, it is this migration that it's complaining about. It might not do any harm to upgrade your existing system to v2.11.12 first, then re-export the database, then drop the database on your new system and import this database dump. |
Beta Was this translation helpful? Give feedback.
I decided to just make a new Netbox Database and start over. Looks like it wasn't straight forward what Netbox devs said it was and they wouldn't help either.