upgrade script failed on clean install of centos 9 stream - Database migrations failed #13137
-
--->>> FYI: I have been able to recreate this error multiple times. <<<--- Clean "server" install of centos 9 stream. Everything installs without any issue until I run the upgrade script (notice the change from python3.8 in the install doc to 3.9 which is installed on my server) as a non-root user. But user is an "administrator": sudo PYTHON=/usr/bin/python3.9 /opt/netbox/upgrade.sh All the packages get installed without error, but then it goes wrong here: Skipping local dependencies (local_requirements.txt not found) Applying database migrations (python3 netbox/manage.py migrate)... Traceback (most recent call last): File "/opt/netbox/venv/lib64/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) psycopg2.errors.UndefinedTable: relation "django_content_type" does not exist LINE 1: ..."."app_label", "django_content_type"."model" FROM "django_co... ^Full output provided below [admin@centos9stream-netbox netbox]$ sudo PYTHON=/usr/bin/python3.9 /opt/netbox/upgrade.sh The above exception was the direct cause of the following exception: Traceback (most recent call last): [admin@centos9stream-netbox netbox]$ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
See #13116 |
Beta Was this translation helpful? Give feedback.
-
I just went back to 3.5.4 it was easier :) Just clear your /opt/netbox directory first but backup the configuration.py file if you want. |
Beta Was this translation helpful? Give feedback.
-
I followed the steps as shown here: which came from the link provided here: and rerun the upgrade scripts and that worked as expected. Thanks all for the quick reply. |
Beta Was this translation helpful? Give feedback.
See #13116