Issue while upgrading Netbox from 3.4.4 to 3.6.5: 'Group Matching Query Does Not Exist' error post-upgrade to PostgreSQL 15.3 #14275
Unanswered
F3d0s
asked this question in
Help Wanted!
Replies: 0 comments
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 people, I'm having an issue while upgrading Netbox from version 3.4.4 to 3.6.5. I hope you can help me find what I'm doing wrong.
I started with upgrading the DB (Azure Database for PostgreSQL) from version 11 (single server) to version 15.3 (flexible server), and I migrated the old DB version to the new DB version. At that moment, I still had Netbox 3.4.4, but I already got the error message I'll show later, I thought it was with some compatibility issue with PostgreSQL 15.3, so I upgraded Netbox to version 3.6.5 (via git).
Unfortunately, the error message is still there.
This is the setup Netbox in my company:
Server: Azure VM with Ubuntu 22.04
PostgreSQL 15.3 (Azure Database)
Python 3.10.12
This is the error message I got printed on the screen after login to Netbox:
The file
configuration.py
looks fine.It looks like this could occur when Django is trying to query a group that doesn’t exist in the database. This could be due to a variety of reasons, such as a missing migration or a problem with the database. The migration was completed successfully unless something changed while moving the data from PostgreSQL 11 to 15.3.
This is the result I got after running the command
python3 manage.py migrate
in/opt/netbox/netbox/
I guess this is happening because Netbox uses a python venv where
django3_saml2_nbplugin
should be installed.Are there some pending migrations that need to be applied after upgrading the DB to PostgreSQL, which may caused this issue?
EDIT:
I could verify the 'django3_saml2_nbplugin' module being installed within Netbox's virtual Python environment and yes, it's there.
Beta Was this translation helpful? Give feedback.
All reactions