Skip to main content

ArgoCD-related issues and solutions

argocd-connection-timeout

A quick reference for ArgoCD problems I have hit and the fix that worked.

SymptomCauseFix
kubectl port-forward drops or breaks after a few minutesIdle connection timeoutKeep the tunnel alive with a looped nc probe
failed to replace object: Service "argocd-server"Helm chart is forcing an immutable service updateRemove force_update = true from the Helm release
server.secretkey is missingArgoCD server secret was reset or not initializedkubectl rollout restart deploy/argocd-server -n argocd
error getting cached app resource tree: cache: key is missingApplication controller cache is stalekubectl rollout restart statefulset -n argocd argocd-application-controller

Keeping a port-forward alive​

kubectl port-forward can drop when the connection goes idle. Open a second terminal and keep probing the local port:

while true; do nc -vz 127.0.0.1 8080; sleep 10; done

Replace 8080 with the port you forwarded.

Completion criterion​

The ArgoCD issue is resolved when:

  1. The UI or CLI is reachable and stays reachable.
  2. The application resource tree loads without cache errors.
  3. Any service-related error is gone after removing force_update = true.

Comments