Replies: 6 comments 24 replies
-
|
The database error indicates that your migrations have not been run. What action did you take prior to receiving this error? Was NetBox recently upgraded? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
I used python 3 (-> points to 3.6) to create the new virtual environment, so I am actually uncertain why 'python version' in that virtual enviroment gives me Python-2.7.5 |
Beta Was this translation helpful? Give feedback.
-
|
It always puzzles me how people get into such a corner that they need to run various commands manually instead of letting the documented |
Beta Was this translation helpful? Give feedback.
-
|
so.... but yep.... (I saw you post on https://groups.google.com/g/netbox-discuss/c/D30kPhx9lAw) I'm in the right virtualenv... yes? |
Beta Was this translation helpful? Give feedback.
-
|
So.... basically I succeeded now in the minor upgrade. But I must also say that in the documentation of the upgrade, X.Y.Z are used interchangeably between first the new version (for symlink creation) and than secondly the current version (for copy conf files trough symlink), which is not very consistent and was very confusing . even worse to grasp when assuming that my initial installation setup was (unknowingly) not according to initial netbox installation documentation). ...at the end I still got a 502, cause the service was not running because I needed to restart netbox and netbox-rq in the virtual environment (venv) (dumbass me!) It was not necessary (since I was already on 2.8.9) but I thought I had to copy the services themselves from the netbox/contrib/ folder to the /etc/systemd/system/ folder as well (reload, restart and enable them) afterwards. So I did that as well ;-) So yes, indeed now it works. I upgraded to the latest minor version 2.11.12 and it's working |
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.
-
Hi All,
I need some assistance with recovering a database.
See below error message received. I'm not sure where to begin. Can someone help?
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 9.6 or higher 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'>
column extras_customfield.created does not exist
LINE 1: SELECT "extras_customfield"."created", "extras_customfield"....
^
Python version: 3.8.10
NetBox version: 3.1.10
Beta Was this translation helpful? Give feedback.
All reactions