Database Migration Failure During Upgrade (custom fields) #6336
Replies: 1 comment 2 replies
-
Similar problem here. I think the upgrade is risky when you have custom fields. Its not being handled carefully. OS = Ubuntu 20 , Python version = 3.8 , Netbox version = 2.11.2 (Trying to upgrade from 2.8.8 to 2.11.2)
Stuck here forever ^^ So I dug deeper and observed strange behavior with .exclude... it doesn't seem to work. In my case, the custom field called 'Role' has a default value of ''. !? I tried to execute https://github.com/netbox-community/netbox/blob/v2.11.2/netbox/extras/migrations/0051_migrate_customfields.py, and it fails here: https://github.com/netbox-community/netbox/blob/v2.11.2/netbox/extras/migrations/0051_migrate_customfields.py#L38 ` During handling of the above exception, another exception occurred: Traceback (most recent call last): CustomField has no field name
😞 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
NetBox version
2.11.2
Python version
3.6
Steps to Reproduce
This is an upgrade from version 2.9.9 to 2.11.2 via git. I followed these instructions:
It looks to have errored out on one of my custom fields. They are configured as follows:
Host OS: Ubuntu 18.04
Postgres version: psql (PostgreSQL) 10.16 (Ubuntu 10.16-0ubuntu0.18.04.1)
Python version: Python 3.6.9
Expected Behavior
Expected behavior: upgrade completed without issues.
Observed Behavior
ValueError occurred during the database migration:
Beta Was this translation helpful? Give feedback.
All reactions