Replies: 1 comment 4 replies
-
But:
These errors indicate that you are trying to upgrade directly to v3.0. You need to upgrade to a v2.11 release before upgrading to v3.0, as called out in the release notes. |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hello ,
I have netox on this path /opt/netbox without nay number of version beside it but when I open the Web interface the version is 2.9.11 and get this error when I try to upgrade to 2.11.12
`ERROR: Database schema migrations are out of synchronization. (No
data has been lost.) If attempting to upgrade to NetBox v3.0 or
later, first upgrade to a v2.11 release to ensure schema migrations
have been correctly prepared. For further detail on the exact error,
run the following commands:
root@NetBox:/opt/netbox# ^C
root@NetBox:/opt/netbox# source /opt/netbox/venv/bin/activate
(venv) root@NetBox:/opt/netbox# ^C
(venv) root@NetBox:/opt/netbox# python3 netbox/manage.py showmigrations
/opt/netbox/netbox/netbox/settings.py:51: UserWarning: The CACHE_TIMEOUT configuration parameter was removed in v3.0.0 and no longer has any effect.
"The CACHE_TIMEOUT configuration parameter was removed in v3.0.0 and no longer has any effect."
/opt/netbox/netbox/netbox/settings.py:55: UserWarning: The RELEASE_CHECK_TIMEOUT configuration parameter was removed in v3.0.0 and no longer has any effect.
"The RELEASE_CHECK_TIMEOUT configuration parameter was removed in v3.0.0 and no longer has any effect."
Traceback (most recent call last):
File "/opt/netbox/venv/lib/python3.7/site-packages/django/db/migrations/loader.py", line 259, in build_graph
self.graph.validate_consistency()
File "/opt/netbox/venv/lib/python3.7/site-packages/django/db/migrations/graph.py", line 195, in validate_consistency
[n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
File "/opt/netbox/venv/lib/python3.7/site-packages/django/db/migrations/graph.py", line 195, in
[n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
File "/opt/netbox/venv/lib/python3.7/site-packages/django/db/migrations/graph.py", line 58, in raise_error
raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration dcim.0131_consoleport_speed dependencies reference nonexistent parent node ('dc im', '0130_sitegroup')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib/python3.7/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib/python3.7/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/netbox/venv/lib/python3.7/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/netbox/venv/lib/python3.7/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/opt/netbox/venv/lib/python3.7/site-packages/django/core/management/commands/showmigrations.py", line 52, in handle
return self.show_list(connection, options['app_label'])
File "/opt/netbox/venv/lib/python3.7/site-packages/django/core/management/commands/showmigrations.py", line 71, in show_list
loader = MigrationLoader(connection, ignore_no_migrations=True)
File "/opt/netbox/venv/lib/python3.7/site-packages/django/db/migrations/loader.py", line 53, in init
self.build_graph()
File "/opt/netbox/venv/lib/python3.7/site-packages/django/db/migrations/loader.py", line 284, in build_graph
) from exc
django.db.migrations.exceptions.NodeNotFoundError: Migration dcim.0131_consoleport_speed depends on nonexistent node ('dcim', '0130_sitegrou p'). Django tried to replace migration dcim.0130_sitegroup with any of [dcim.0003_squashed_0130] but wasn't able to because some of the repl aced migrations are already applied.
`
Is there any way to fix this issue ? I really need your help
Best Regards
Beta Was this translation helpful? Give feedback.
All reactions