authentik.core.models.User.DoesNotExist: User matching query does not exist #11

Closed
opened 2025-01-01 19:27:25 +00:00 by ammaratef45 · 0 comments
Owner

The error below happened during the post deploy command once, I deployed this recipe few times while debugging #10 and it doesn't always occur - I could mitigate it by running abra app run <app> app bash and running the commands from the set_admin_pass in abra.sh manually

INFO[0237] running post-command 'set_admin_pass ' in container worker
Traceback (most recent call last):
  File "/manage.py", line 52, in <module>
    execute_from_command_line(sys.argv)
  File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/core/management/commands/shell.py", line 88, in handle
    exec(options["command"], namespace)  # nosec # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 2, in <module>
  File "/ak-root/venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ak-root/venv/lib/python3.12/site-packages/django/db/models/query.py", line 649, in get
    raise self.model.DoesNotExist(
authentik.core.models.User.DoesNotExist: User matching query does not exist.
The error below happened during the post deploy command once, I deployed this recipe few times while debugging #10 and it doesn't always occur - I could mitigate it by running `abra app run <app> app bash` and running the commands from the `set_admin_pass` in `abra.sh` manually ``` INFO[0237] running post-command 'set_admin_pass ' in container worker Traceback (most recent call last): File "/manage.py", line 52, in <module> execute_from_command_line(sys.argv) File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line utility.execute() File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv self.execute(*args, **cmd_options) File "/ak-root/venv/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute output = self.handle(*args, **options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/authentik/core/management/commands/shell.py", line 88, in handle exec(options["command"], namespace) # nosec # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 2, in <module> File "/ak-root/venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/ak-root/venv/lib/python3.12/site-packages/django/db/models/query.py", line 649, in get raise self.model.DoesNotExist( authentik.core.models.User.DoesNotExist: User matching query does not exist. ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/authentik#11
No description provided.