After upgraded to the netbox latest versions to v3.5.1 #12576
Replies: 2 comments 1 reply
-
Can you provide more stacktrace on the error as it is not possible to help with the provided message? |
Beta Was this translation helpful? Give feedback.
-
So I managed to fix this. I restored from my backup and tried the upgrade from the git repo again. I was getting the following error during the upgrade: django.db.utils.DataError: Unable to proceed with deleting contact fields from Provider model: Found 8 providers with legacy contact data. Please ensure all legacy provider contact data has been migrated to contact objects before proceeding. Or, set the NETBOX_DELETE_LEGACY_DATA environment variable to bypass this safeguard and delete all legacy provider contact data. I forced the legacy data deletion in the upgrade script: sudo NETBOX_DELETE_LEGACY_DATA=1 ./upgrade.sh Restarted Netbox: sudo systemctl restart netbox netbox-rq And we're back! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, It should be ok after I checked the dependencies to required versions as below.
https://github.com/netbox-community/netbox/blob/develop/docs/installation/upgrading.md
However, I got the server error after upgraded as below. It would be much appreciated if anyone can help on this.
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'django.contrib.contenttypes.models.ContentType.DoesNotExist'>
ContentType matching query does not exist.
Python version: 3.8.10
NetBox version: 3.5.1
If further assistance is required, please post to the NetBox discussion forum on GitHub
Beta Was this translation helpful? Give feedback.
All reactions