[GH-ISSUE #513] migrate error (ubuntu 20.04) #309

Closed
opened 2026-02-27 15:58:12 +03:00 by kerem · 2 comments
Owner

Originally created by @bigstarhan on GitHub (Jun 30, 2022).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/513

Please tell me how to fix the error...


command:
python3 manage.py migrate


error return:
Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 92, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in init
self.loader = MigrationLoader(self.connection)
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in init
self.build_graph()
File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 259, in build_graph
self.graph.validate_consistency()
File "/srv/webvirtcloud/venv/lib/python3.8/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 "/srv/webvirtcloud/venv/lib/python3.8/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 "/srv/webvirtcloud/venv/lib/python3.8/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 appsettings.0007_auto_20220629_1213 dependencies reference nonexistent parent node ('ap psettings', '0006_alter_appsettings_id')

Originally created by @bigstarhan on GitHub (Jun 30, 2022). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/513 Please tell me how to fix the error... <br> command: python3 manage.py migrate <br> error return: Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, **cmd_options) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, **options) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 89, in wrapped res = handle_func(*args, **kwargs) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 92, in handle executor = MigrationExecutor(connection, self.migration_progress_callback) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__ self.loader = MigrationLoader(self.connection) File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in __init__ self.build_graph() File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 259, in build_graph self.graph.validate_consistency() File "/srv/webvirtcloud/venv/lib/python3.8/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 "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/db/migrations/graph.py", line 195, in <listcomp> [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)] File "/srv/webvirtcloud/venv/lib/python3.8/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 appsettings.0007_auto_20220629_1213 dependencies reference nonexistent parent node ('ap psettings', '0006_alter_appsettings_id')
kerem closed this issue 2026-02-27 15:58:12 +03:00
Author
Owner

@catborise commented on GitHub (Jun 30, 2022):

Missing migration reference is fixed. It should be working now

<!-- gh-comment-id:1171596535 --> @catborise commented on GitHub (Jun 30, 2022): Missing migration reference is fixed. It should be working now
Author
Owner

@bigstarhan commented on GitHub (Jun 30, 2022):

Error resolution check complete

thank you

<!-- gh-comment-id:1171773246 --> @bigstarhan commented on GitHub (Jun 30, 2022): Error resolution check complete thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#309
No description provided.