Error after Upgrade "<class 'django.db.utils.ProgrammingError'>" #15800
Replies: 1 comment 2 replies
-
If migrations failed, then you would be trying to run Netbox 3.7.x code with a Netbox 3.2.x database, and that definitely won't work. However, I also note from your screenshot (which I can't copy-paste) that it says NetBox version: 3.2.1. This suggests that no upgrade took place at all. There are two different upgrade procedures documented - one for when Netbox was originally installed from git, and one for when it was originally installed from tarball. It's important that you use the correct one. If you're not sure which, use
You're running manage.py wrongly, without activating the virtualenv first. Run it like this instead and it should be fine:
However: when you ran
You should not be using any globally-installed packages for Django or any other python libraries. The packages will all be installed in Netbox's virtualenv instead. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently using Netbox version 3.2.1 and wanted to upgrade to the latest version 3.7.5 today. Unfortunately, after the upgrade I keep getting the error "<class 'django.db.utils.ProgrammingError'>"
My Python library is on 3.8.10 and my Postgres database is on version 12, so there should be no problem.
The upgrade goes through without any problems, but after that I can no longer access the interface. Am I missing something?
The only thing the log tells me is:
Edit:
I already tried to manually execute the "manage.py" script and got the error:
Beta Was this translation helpful? Give feedback.
All reactions