Problems with reindex on 3.7.8 #16828
-
Hi, Im having problem to upgrade from 3.2.5 to 3.7.8. When I run: PYTHON=/usr/bin/python3.11 ./upgrade.sh as netbox user i get this output. Something is not right with the database and I want some help figuring it out. ----------------upgrade.sh Output--------------------------- 513 static files copied to '/opt/netbox-3.7.8/netbox/static', 24 unmodified. The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You omitted the earlier output of upgrade.sh. Did it say anything about migrations? It seems they haven't been applied properly (although I would expect it to fail on error). |
Beta Was this translation helpful? Give feedback.
To start with an empty netbox database, just drop it, recreate it, then run
./upgrade.sh
. This will create all the tables correctly. (Same as when you do an initial installation).