Conflicting migrations detected #11460

Closed
opened 2025-12-29 21:45:31 +01:00 by adam · 1 comment
Owner

Originally created by @antwacky on GitHub (Aug 7, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.3.5

Python Version

3.12

Steps to Reproduce

Upgraded from Netbox version 3.2 to 4.3.5 (using the Helm chart).

Expected Behavior

The migrations should complete as expected.

Observed Behavior

The migrations failed with error:

⚙️ Applying database migrations
CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0002_squashed_0029, 0052_extend_circuit_abs_distance_upper_limit in circuits; 0047_squashed_0053, 0081_remove_service_device_virtual_machine_add_parent_gfk_index in ipam; 0002_squashed_0059, 0129_fix_script_paths in extras; 0001_squashed_0011, 0010_add_token_meta_ordering in users; 0003_squashed_0130, 0208_devicerole_uniqueness in dcim; 0001_squashed_0022, 0048_populate_mac_addresses in virtualization; 0001_squashed_0012, 0020_remove_contactgroupmembership in tenancy).
To fix them run 'python manage.py makemigrations --merge'
🧬 loaded config '/etc/netbox/config/configuration.py'
🧬 loaded config '/etc/netbox/config/extra.py'
🧬 loaded config '/etc/netbox/config/logging.py'
🧬 loaded config '/etc/netbox/config/plugins.py'
Originally created by @antwacky on GitHub (Aug 7, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.3.5 ### Python Version 3.12 ### Steps to Reproduce Upgraded from Netbox version 3.2 to 4.3.5 (using the Helm chart). ### Expected Behavior The migrations should complete as expected. ### Observed Behavior The migrations failed with error: ``` ⚙️ Applying database migrations CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0002_squashed_0029, 0052_extend_circuit_abs_distance_upper_limit in circuits; 0047_squashed_0053, 0081_remove_service_device_virtual_machine_add_parent_gfk_index in ipam; 0002_squashed_0059, 0129_fix_script_paths in extras; 0001_squashed_0011, 0010_add_token_meta_ordering in users; 0003_squashed_0130, 0208_devicerole_uniqueness in dcim; 0001_squashed_0022, 0048_populate_mac_addresses in virtualization; 0001_squashed_0012, 0020_remove_contactgroupmembership in tenancy). To fix them run 'python manage.py makemigrations --merge' 🧬 loaded config '/etc/netbox/config/configuration.py' 🧬 loaded config '/etc/netbox/config/extra.py' 🧬 loaded config '/etc/netbox/config/logging.py' 🧬 loaded config '/etc/netbox/config/plugins.py' ```
adam added the type: bug label 2025-12-29 21:45:31 +01:00
adam closed this issue 2025-12-29 21:45:32 +01:00
Author
Owner

@antwacky commented on GitHub (Aug 7, 2025):

RTFM - upgrade to the latest minor version first to avoid this problem!

@antwacky commented on GitHub (Aug 7, 2025): RTFM - upgrade to the latest minor version first to avoid this problem!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11460