You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applying database migrations (python3 netbox/manage.py migrate)...
Operations to perform:
Apply all migrations: admin, auth, circuits, contenttypes, dcim, extras, ipam, secrets, sessions, taggit, tenancy, users, virtualization
Running migrations:
Applying dcim.0075_cable_devices...
Updatng cable device terminations...
Traceback (most recent call last):
File "netbox/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 234, in handle
fake_initial=fake_initial,
File "/usr/local/lib/python3.6/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 "/usr/local/lib/python3.6/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 "/usr/local/lib/python3.6/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/migration.py", line 124, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/local/lib/python3.6/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
self.code(from_state.apps, schema_editor)
File "/opt/netbox-2.6.6/netbox/dcim/migrations/0075_cable_devices.py", line 21, in cache_cable_devices
termination_a = termination_a_model.objects.get(pk=cable.termination_a_id)
File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 356, in get
return qs._no_monkey.get(qs, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 408, in get
self.model._meta.object_name
__fake__.DoesNotExist: Interface matching query does not exist.
Removing stale content types (python3 netbox/manage.py remove_stale_contenttypes --no-input)...
Collecting static files (python3 netbox/manage.py collectstatic --no-input)...
0 static files copied to '/opt/netbox-2.6.6/netbox/static', 344 unmodified.
did i miss some migrations or something similar?
earlier migrations has applied successfully:
2.5.5->2.5.6->2.5.7->2.5.8->2.5.9->2.5.10->2.5.11->2.5.12->2.5.13->2.6.0->2.6.1->2.6.2->2.6.3->2.6.4->2.6.5
This discussion was converted from issue #6034 on March 24, 2021 18:10.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
NetBox version
2.6.5
Python version
3.6
Steps to Reproduce
upgrading via instructions:
Expected Behavior
migrations applied successfully
Observed Behavior
did i miss some migrations or something similar?
earlier migrations has applied successfully:
2.5.5->2.5.6->2.5.7->2.5.8->2.5.9->2.5.10->2.5.11->2.5.12->2.5.13->2.6.0->2.6.1->2.6.2->2.6.3->2.6.4->2.6.5
Beta Was this translation helpful? Give feedback.
All reactions