Upgrading existing NetBox 4.3.7 to 4.4.0 fails when indexing extras.imageattachment #20300
-
I have a working NetBox 4.3.7 without any plugins. Python 3.12.3 I've created a new NetBox 4.4.0 environment, restored the database from 4.3.7, and then run upgrade.sh. It gets as far as indexing models, then fails on extras.imageattachment:
I'm guessing it has something to do with this commit: 6df0a02 However it seems that nobody else has run into this problem. I've tried the upgrade in both a self-hosted environment, and a netbox-docker environment, with exactly the same outcome. Can anyone point me in the right direction to get past this point? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for sharing the detailed traceback and steps you’ve tried. Your error ( Quick things to try/workarounds:
If you can confirm that one or more image names contain a slash and that renaming them lets the reindex complete, that would align with #20236 and help others hitting the same edge case. Thanks! |
Beta Was this translation helpful? Give feedback.
-
That was indeed the problem. Thanks! |
Beta Was this translation helpful? Give feedback.
Thanks for sharing the detailed traceback and steps you’ve tried.
Your error (
KeyError: 'filename'
while indexingextras.imageattachment
) looks consistent with this bug report: “New image attachment index breaks if image name contains a slash” – #20236.Quick things to try/workarounds:
/
(slash). If so, temporarily rename those images to remove the slash characters and run the reindex/upgrade again.If you can confirm that one or more image names contain a slash and that renaming them lets the reindex complete, t…