Describe the bug
When visiting the main page when no outposts are present, an error appears in console. refreshing creates a new outpost and fixes the issue.
To Reproduce
Steps to reproduce the behavior:
Delete all outposts
Do other things for a few minutes
Navigate to main page
Refresh to fix error on screen
Expected behavior
The outpost is recreated without sending a ASGI application exception
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
"domain_url": null, "event": "Exception in ASGI application", "exc": "DenyConnection()", "level": "warning", "logger": "authentik.asgi", "pid": 12405, "schema_name": "public", "timestamp": "2024-07-12T02:56:49.679895"}
Exception in ASGI application
Traceback (most recent call last):
File "/ak-root/venv/lib/python3.12/site-packages/uvicorn/protocols/websockets/wsproto_impl.py", line 234, in run_asgi
result = await self.app(self.scope, self.receive, self.send) # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/sentry_sdk/integrations/asgi.py", line 144, in _run_asgi3
return await self._run_app(scope, receive, send, asgi_version=3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/sentry_sdk/integrations/asgi.py", line 235, in _run_app
raise exc from None
File "/ak-root/venv/lib/python3.12/site-packages/sentry_sdk/integrations/asgi.py", line 230, in _run_app
return await self.app(
^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/channels/routing.py", line 62, in __call__
return await application(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/authentik/root/asgi.py", line 55, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ak-root/venv/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__
return await application(
^^^^^^^^^^^^^^^^^^
File "/authentik/root/middleware.py", line 279, in __call__
raise DenyConnection() from None
channels.exceptions.DenyConnection
{"error":"websocket: bad handshake","event":"failed to connect websocket","level":"warning","logger":"authentik.outpost.ak-api-controller","timestamp":"2024-07-12T02:56:49Z"}
{"event":"waiting 8 seconds to reconnect","level":"info","logger":"authentik.outpost.ak-api-controller","timestamp":"2024-07-12T02:56:49Z"}
Version and Deployment (please complete the following information):
authentik version: 2024.6.1
Deployment: docker compose
Additional context
Firefox stable latest and nightly on windows 11
Describe the bug When visiting the main page when no outposts are present, an error appears in console. refreshing creates a new outpost and fixes the issue.
To Reproduce Steps to reproduce the behavior:
Expected behavior The outpost is recreated without sending a ASGI application exception
Screenshots If applicable, add screenshots to help explain your problem.
Logs
Version and Deployment (please complete the following information):
Additional context Firefox stable latest and nightly on windows 11