Replicating NetBox - Server Error #13702
Replies: 2 comments 1 reply
-
You don't say what you've tried.
I have two NetBox VMs and the instructions you linked are the ones I follow to move the DB over. I dump the database from the active box, copy the file to the standby, then drop the standby's database and import the one I just copied. Be really really careful about which box you're on unless you want to drop the active database. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like you simply haven't restored the database correctly into the new instance (i.e. all the tables are missing) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
After following the below
https://docs.netbox.dev/en/stable/administration/replicating-netbox/
Can't log in - how to fix this?
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_userconfig" does not exist
LINE 1: ...config"."user_id", "users_userconfig"."data" FROM "users_use...
^
Python version: 3.10.12
NetBox version: 3.6.0
Plugins: None installed
Beta Was this translation helpful? Give feedback.
All reactions