problem with netbox update #15947
Unanswered
PenguinIsEvil
asked this question in
Help Wanted!
Replies: 0 comments
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'm updating netbox from version 2.5.10 to 2.11.10 (for later updating to the current one), an error occurs at the database migration stage:
Running migrations:
Applying dcim.0075_cable_devices...
Updating cable device terminations...
[1000/2396]
Traceback (most recent call last):
File "/opt/netbox-2.11.10/netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/core/management/commands/migrate.py", line 244, in handle
post_migrate_state = executor.migrate(
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/migrations/executor.py", line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/migrations/executor.py", line 227, in apply_migration
state = migration.apply(state, schema_editor)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/migrations/migration.py", line 126, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
self.code(from_state.apps, schema_editor)
File "/opt/netbox-2.11.10/netbox/dcim/migrations/0075_cable_devices.py", line 30, in cache_cable_devices
termination_b = termination_b_model.objects.get(pk=cable.termination_b_id)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/cacheops/query.py", line 351, in get
return qs._no_monkey.get(qs, *args, **kwargs)
File "/opt/netbox-2.11.10/venv/lib64/python3.9/site-packages/django/db/models/query.py", line 435, in get
raise self.model.DoesNotExist(
fake.FrontPort.DoesNotExist: FrontPort matching query does not exist.
Beta Was this translation helpful? Give feedback.
All reactions