You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Note: This is a local build of argocd (hence the different git commit hash) but it is one temporary commit ahead of the official v2.0.1 build: team-rhino@d1d9a54 (this issue is resolved in a new mainline commit, I just haven't had a chance to update to it yet).
Logs
time="2021-05-26T21:15:19Z" level=warning msg="Failed to resync revoked tokens. retrying again in 1 minute: dial tcp: lookup argocd-redis on 10.179.0.10:53: no such host"
The text was updated successfully, but these errors were encountered:
Since we pass the hostname to the redis golang client, it implies that the redis golang client does not recover from DNS changes. Sure enough, there is a go-redis issue for this: redis/go-redis#1127
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
argocd-server does not try to reconnect to redis on DNS error. I don't know if it retries after other errors.
To Reproduce
This is going to be somewhat circuitous.
kubectl get svc argocd-redis -o yaml > tmp
kubectl delete svc argocd-redis
kubectl delete pod -l app.kubernetes.io/name=argocd-server
kubectl logs -l app.kubernetes.io/name=argocd-server -f
kubectl create -f tmp
Edited to add: This also affects argocd-application-controller.
Expected behavior
I expected argocd-server to try to reconnect to redis after a DNS failure.
Workaround
If you see this error, restart the argocd-server pod after you're sure the argocd-redis svc is created.
Version
argocd@argocd-server-755cf78c88-5d8ln:~$ argocd version argocd: v2.0.1+d1d9a54 BuildDate: 2021-05-05T18:03:36Z GitCommit: d1d9a542894a158c5f30daf1720318669a996c05 GitTreeState: clean GoVersion: go1.16 Compiler: gc Platform: linux/amd64
Note: This is a local build of argocd (hence the different git commit hash) but it is one temporary commit ahead of the official v2.0.1 build: team-rhino@d1d9a54 (this issue is resolved in a new mainline commit, I just haven't had a chance to update to it yet).
Logs
The text was updated successfully, but these errors were encountered: