Netbox database error preventing it from starting. #11327
-
We added a new device status to /opt/netbox/netbox/dcim/choices.py a few weeks ago and I then attempted to upgrade Netbox yesterday. However, it appeared to have errored during the upgrade. I tried to back out the changes and perform the upgrade again, but we're getting the following error when Netbox tries to load in a browser. **<class 'django.db.utils.ProgrammingError'> column extras_customlink.content_type_id does not exist Is there a way to fix this error? This is set up as an AWS EC2 instance with a RDS instance for the database. I have also done a restore of the RDS instance in the event that we need to restore the database, but don't have instructions for restoring the database in Netbox. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Here is the link to documentation that says how you can define new status values: https://docs.netbox.dev/en/stable/configuration/data-validation/#field_choices I don't know what you did and how the database was corrupted because of that. If you can find out how to revert the database changes, you can restore the database, revert any changes (in the database and in the code) and then continue using the database in NetBox. |
Beta Was this translation helpful? Give feedback.
Here is the link to documentation that says how you can define new status values: https://docs.netbox.dev/en/stable/configuration/data-validation/#field_choices
I don't know what you did and how the database was corrupted because of that. If you can find out how to revert the database changes, you can restore the database, revert any changes (in the database and in the code) and then continue using the database in NetBox.