-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentik worker become "unhealthy" and never recover after restarting reddis docker container #6221
Comments
I can confirm this. It seems like once the worker has successfully connected to redis, and then the redis connection is lost, the worker does not handle the resulting Exception (where it should be trying to re-establish the connection). This is an issue for us, because we use Watchtower to keep our containers up-to-date, and therefore Redis container is recreated regularly in our setup. Solution: Either have the worker exit (and therefore restart) when the Redis connection becomes unavailable, or find a way to try to re-connect to redis if a connection loss is detected. |
I'm experiencing the authentik-worker becoming unhealthy using image: |
As a workaround until this is fixed, I have set up autoheal for the workers. add this to docker-compose.yml
and then add the autoheal label to your worker service:
|
Thank you for this, I noticed that others in this thread were also using watchtower, and I tested adding the label:
labels:
com.centurylinklabs.watchtower.enable: false to each service in the Authentik stack. This also appears to have solved the issue for me (at least in the short term). Perhaps something to do with Watchtower attempting to update/restart(?) redis, which is not on a fixed version, while the worker remains on a fixed version. My knowledge is limited in this area, but hopefully another piece of the puzzle. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
i noticed this issue as well. can we expect a permanent fix? yes i also use watchtower. I noticed the correlation between straight after receiving watchtower email notification about restarting authentik (probably because it was updating), after that event then the worker became unhealthy i noticed. |
I'm also facing this issue, and using Watchtower to update the database and Redis |
Have same issue - I just started using Authentik, run the docker compose up -d and every time the worker is unhealthy :/ |
Some time ago, the container started to be constantly unhealthy. It's not because of the Redis restart, but I have a feeling it's because of some certificate of either a Postgre database or a Redis database, I'm not sure right now. Isn't this your problem too? |
It was my fault. Because I used docker network and there was another compose stack with redis, Authentik and Worker were trying to connect to that other stack. I just renamed the host name of Authentik redis and problem is solved :) |
Describe the bug
Authentik worker become "unhealthy" and never recover after restarting reddis docker container
To Reproduce
Steps to reproduce the behavior:
Actual Result = Expected Result
Actual Result:
Worker lost reddis connectivity, the only option to fix is to restart the authentik worker
Expected behavior
Please investigate if we can detect such cases and automatically recover. As for now the only option is to restart 'authentik worker'
Version and Deployment (please complete the following information):
The text was updated successfully, but these errors were encountered: