Authorization issue after upgrading from 3.3.2 to 4.2.6 with empty database #19011
Replies: 1 comment
-
Install with last version. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Сreated everything by video from the netbox labs channel install version 3.3.2 it was not easy, I had to edit something so that everything started.
Made a snapshot of the virtual machine and started updating to 4.2.6 downloaded the package, threw files from the backup, did not use any utilities for updating. do not know about their existence, finally saw the interface of the new version, during authorization I get an error:
Server Error
A database programming error was detected while processing this request. Common causes include the following:
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 "users_user" does not exist
LINE 1: ...ser"."is_active", "users_user"."date_joined" FROM "users_use...
Python version: 3.10.12
NetBox version: 4.2.6
Plugins: None installed
I also apply a screen of errors when trying to migrate, I have an empty database created according to the instructions.
I believe that it is possible that after the update, the components have been added and may not be enough for correct operation, I ask for help, because the base is empty, ready to do everything you need on your recommendation,
recreate the database so that there is an up-to-date table with all the data, login password, superuser, the main thing is to start and start working with the application.
According to the configuration ubuntu 22.04 server, python 3.10.12 postgres 14.17 ready to execute commands and provide screenshots, please tell me steps for correct work in future netbox.
Beta Was this translation helpful? Give feedback.
All reactions