Upgrade to v3.6.0 No space left on device: devicetype_component_counters #13676
Replies: 3 comments 8 replies
-
I might also add that, after the failed migration attempt, trying to revert to 3.5.9 fails in the same way. |
Beta Was this translation helpful? Give feedback.
-
How much free space was available on the system before attempting this migration? How much disk space is being used now by postgres? ( I suspect you might need to blow away postgres and restore from a backup. |
Beta Was this translation helpful? Give feedback.
-
This looks like bug #13605, which was addressed during the v3.6 beta for devices but apparently not for device types. It should be simple enough for us to fix in the next release, but to get you back up and running for now, we can disable the problematic logic within the migration file. Open the file migrations.RunPython(
recalculate_devicetype_template_counts,
reverse_code=migrations.RunPython.noop
), It should look like this after editing: # migrations.RunPython(
# recalculate_devicetype_template_counts,
# reverse_code=migrations.RunPython.noop
# ), The, run the upgrade script again (or run At this point all migrations should apply successfully, however your device types will all report having zero component templates. We can fix this by running the
You should see this output:
Finally, to restore a pristine environment, revert the changes you made to Let me know how this goes! 🤞 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When upgrading from v3.5.9 to 3.6.0, migrating devicetype_component_counters will result in running out of disk space. The process consumes 50 GB, takes a long time and did not lead to success. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions