After Upgrade from 2026.5.7 to 2026.8.3: App 'authentik_stages_authenticator_validate' doesn't have a 'AuthenticatorValidateStage_configuration_stages' model.
Describe the bug
After upgrading an Authentik instance from 2026.5.7 to 2026.8.3 we see the following Exception warning message in the logs
Exception in ASGI application", "exc": "LookupError("App 'authentik_stages_authenticator_validate' doesn't have a 'AuthenticatorValidateStage_configuration_stages' model.")
So far it does not look like it causes a problem but I wanted to ask if anybody has seen something similar and if it can/should be fixed?
How to reproduce
- Update from 2026.5.7 to 2026.8.3
Unfortunately there are not any more steps ...
Expected behavior
Not to see an Exception in the logs :)
Screenshots
No response
Additional context
No response
Deployment Method
Docker
Version
2026.8.3
Relevant log output
{"domain_url": null, "event": "/ws/client/", "level": "info", "logger": "authentik.asgi", "pid": 6171, "remote": "X.X.X.X", "schema_name": "public", "scheme": "ws", "timestamp": "2026-09-21T13:27:44.534019", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36"}
{"domain_url": null, "event": "Exception in ASGI application", "exc": "LookupError(\"App 'authentik_stages_authenticator_validate' doesn't have a 'AuthenticatorValidateStage_configuration_stages' model.\")", "level": "warning", "logger": "authentik.asgi", "pid": 6171, "schema_name": "public", "timestamp": "2026-09-21T13:27:44.650785"}
{"auth_via": "api_token", "domain_url": "auth.asc.ac.at", "event": "/api/v3/core/groups/?include_children=true&include_inherited_roles=false&include_parents=true&include_users=true&page=10&page_size=50", "host": "auth.asc.ac.at", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 6171, "remote": "X.X.X.X", "request_id": "xxxx", "runtime": 240, "schema_name": "public", "scheme": "https", "status": 200, "timestamp": "2026-09-21T13:27:44.787372", "user": "ak-outpost-xxxx", "user_agent": "goauthentik.io/outpost/2026.8.3"}
can you try running ak shell in the container to maybe get the full exception?
If i just go into the container and execute ak shell I dont see any exceptions :/ is there anything i should import or execute that could maybe trigger it?
Once the image is built from the PR linked above, could you try that and post the new logs?
I have the update in place but for whatever reason I cannot see the error anymore in the logfiles.
Maybe it was related to a startup situation of the outposts we have because everything else was restarted. I will continue to monitor it and come back if I have any news ...
Ok i got it over the night ... once
{"auth_via": "api_token", "domain_url": null, "event": "Exception in ASGI application", "exc": [{"exc_notes": [], "exc_type": "ClientDisconnected", "exc_value": "", "exceptions": [], "frames": [{"filename": "/authentik/root/middleware.py", "lineno": 315, "name": "call"}, {"filename": "/authentik/tenants/channels.py", "lineno": 48, "name": "call"}, {"filename": "/authentik/outposts/channels.py", "lineno": 22, "name": "call"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/consumer.py", "lineno": 95, "name": "app"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/consumer.py", "lineno": 58, "name": "call"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/utils.py", "lineno": 50, "name": "await_many_dispatch"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py", "lineno": 506, "name": "call"}, {"filename": "/usr/local/lib/python3.14/concurrent/futures/thread.py", "lineno": 86, "name": "run"}, {"filename": "/usr/local/lib/python3.14/concurrent/futures/thread.py", "lineno": 73, "name": "run"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/sentry_sdk/integrations/threading.py", "lineno": 175, "name": "wrapped_fn"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/db.py", "lineno": 13, "name": "thread_handler"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py", "lineno": 561, "name": "thread_handler"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/consumer.py", "lineno": 126, "name": "dispatch"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/generic/websocket.py", "lineno": 64, "name": "websocket_receive"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/generic/websocket.py", "lineno": 131, "name": "receive"}, {"filename": "/authentik/outposts/consumer.py", "lineno": 149, "name": "receive_json"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/generic/websocket.py", "lineno": 145, "name": "send_json"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/generic/websocket.py", "lineno": 79, "name": "send"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/channels/consumer.py", "lineno": 134, "name": "send"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py", "lineno": 325, "name": "call"}, {"filename": "/usr/local/lib/python3.14/concurrent/futures/_base.py", "lineno": 447, "name": "result"}, {"filename": "/usr/local/lib/python3.14/concurrent/futures/_base.py", "lineno": 396, "name": "__get_result"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/asgiref/sync.py", "lineno": 365, "name": "main_wrap"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/sentry_sdk/integrations/asgi.py", "lineno": 356, "name": "_sentry_wrapped_send"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/uvicorn/protocols/websockets/wsproto_impl.py", "lineno": 445, "name": "send"}], "is_cause": false, "is_group": false, "syntax_error": null}, {"exc_notes": [], "exc_type": "LocalProtocolError", "exc_value": "Event Message(data='{"instruction": 0, "args": {}}', frame_finished=True, message_finished=True) cannot be sent in state ConnectionState.LOCAL_CLOSING.", "exceptions": [], "frames": [{"filename": "/ak-root/.venv/lib/python3.14/site-packages/uvicorn/protocols/websockets/wsproto_impl.py", "lineno": 426, "name": "send"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/wsproto/init.py", "lineno": 70, "name": "send"}, {"filename": "/ak-root/.venv/lib/python3.14/site-packages/wsproto/connection.py", "lineno": 118, "name": "send"}], "is_cause": true, "is_group": false, "syntax_error": null}], "level": "warning", "logger": "authentik.asgi", "pid": 59111, "schema_name": "public", "timestamp": "2026-09-29T01:26:32.519823"}
That seems to be a different exception in the full log, no mention of LookupError
i'll merge the PR above and it'll be included in the next .8 release, feel free to re-open if this issue happens again