Fail to upgrade netbox from 3.6.6 to 4.0.5 #16575
Unanswered
sidney31
asked this question in
Help Wanted!
Replies: 2 comments
-
You missed the part that says you need to upgrade v3.x->v3.7 first, then v3.7->v4.0 But unfortunately, it doesn't spell it out exactly like that, and I think it probably should as many other people have been caught out by this - @jeremystretch ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks, first USEFUL information about this BUG maybe just make a simple NOTICE and CHECK in the UPGRADE.SH and CHECKING ACTUALLY IF THE VERSIONS ARE REALLY UPDATEABLE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
following the instructions from the official website, I get a migration error:
python netbox/manage.py migrate
Traceback (most recent call last):
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/loader.py", line 276, in build_graph
self.graph.validate_consistency()
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/graph.py", line 198, in validate_consistency
[n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/graph.py", line 198, in
[n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/graph.py", line 60, in raise_error
raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration dcim.0183_devicetype_exclude_from_utilization dependencies reference nonexistent parent node ('dcim', '0182_zero_length_cable_fix')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/netbox-4.0.5/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/core/management/base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/core/management/base.py", line 459, in execute
output = self.handle(*args, **options)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/core/management/base.py", line 107, in wrapper
res = handle_func(*args, **kwargs)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/core/management/commands/migrate.py", line 117, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/executor.py", line 18, in init
self.loader = MigrationLoader(self.connection)
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/loader.py", line 58, in init
self.build_graph()
File "/opt/netbox-4.0.5/venv/lib/python3.10/site-packages/django/db/migrations/loader.py", line 295, in build_graph
raise NodeNotFoundError(
django.db.migrations.exceptions.NodeNotFoundError: Migration dcim.0183_devicetype_exclude_from_utilization depends on nonexistent node ('dcim', '0182_zero_length_cable_fix'). Django tried to replace migration dcim.0182_zero_length_cable_fix with any of [dcim.0167_squashed_0182] but wasn't able to because some of the replaced migrations are already applied.
Beta Was this translation helpful? Give feedback.
All reactions