How to fix the migration from v3.7.8 to v4.0.3 when a table in the DB is missing? #16441
-
I am currently in the process of upgrading our Netbox server from version v3.7.8 to the release v4.0.3. During the migration phase, I encountered an inconsistency within the database.
Isn't the migration script supposed to be able to overcome this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks for moving this over here from issue #16430. I suggest posting as much actual output as you're comfortable putting in a public place, not just snippets or names of tables that appear implicated. There's often important context in log messages that looks like noise, but can lead to a 💡 for someone who's been troubleshooting NetBox for a long time. Feel free to redact sensitive details, of course. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint.
|
Beta Was this translation helpful? Give feedback.
I found the issue!
In my case, I am running NetBox inside a K8S cluster and attaching the report files from a persistent volume. One of these reports appears to be the cause of the exception thrown by the migration script.
After the reports volume was separated from the K8S deployment, the migrations performed successfully.