Argo CD Troubleshooting: Fix Sync, Health and Access Issues

a diagnostic laptop beside a miniature server with one amber warning light and a magnifying lens, investigating deployment issues

Most Argo CD troubleshooting comes down to a short list of recurring problems: applications that never settle on Synced, health checks that stay Progressing or Unknown, deletions that hang, and logins that suddenly stop working. Each has a recognizable symptom and a known fix. This guide starts with a fast triage routine, then works through sync, health, deletion, access and performance issues with the commands you need at each step.

Start with a three-minute triage

Before changing anything, collect the facts. Argo CD records almost everything you need on the Application object itself.

# status, conditions, last operation and per-resource state
argocd app get my-app

# what exactly differs between Git and the cluster
argocd app diff my-app

# force the repo server to re-render instead of using its cache
argocd app get my-app --hard-refresh

# the raw object, including status.conditions and operationState
kubectl -n argocd get application my-app -o yaml

Then check the component that owns the problem. Each Argo CD component has a narrow job, so the error almost always shows up in one place:

kubectl -n argocd logs deploy/argocd-repo-server --tail=200
kubectl -n argocd logs statefulset/argocd-application-controller --tail=200
kubectl -n argocd logs deploy/argocd-server --tail=200
kubectl -n argocd logs deploy/argocd-dex-server --tail=200
SymptomLikely causeWhere to look
OutOfSync right after every syncField mutated by a controller or webhookargocd app diff, then ignoreDifferences
ComparisonError / Unknown sync statusRepo auth, bad path or render failureApp conditions, repo server logs
Sync fails with annotation "Too long"Large CRD with client-side applySync result message
Health stuck Progressing or UnknownRollout not finishing, or no health check for a CRDPod events, resource.customizations
Application stuck deletingFinalizer waiting on resourcesmetadata.finalizers
Cannot log inChanged or deleted admin secret, TLS or gRPC issuesServer and Dex logs
Pushes take minutes to appearWebhook missing or rejectedProvider delivery log, server logs

Sync problems

OutOfSync loops after every sync

You sync, the app turns green, and a moment later it is OutOfSync again. Something in the cluster is changing a field that Git also sets. Typical culprits are a HorizontalPodAutoscaler adjusting spec.replicas, a mutating admission webhook injecting sidecars or defaults, or an operator writing to caBundle fields on webhook configurations.

Run argocd app diff my-app to see the exact field, then tell Argo CD to ignore it:

spec:
  ignoreDifferences:
    - group: apps
      kind: Deployment
      jsonPointers:
        - /spec/replicas
    - group: admissionregistration.k8s.io
      kind: MutatingWebhookConfiguration
      jqPathExpressions:
        - '.webhooks[]?.clientConfig.caBundle'
  syncPolicy:
    syncOptions:
      - RespectIgnoreDifferences=true

ignoreDifferences only affects the comparison. Adding the RespectIgnoreDifferences=true sync option also stops Argo CD from overwriting those fields during a sync. A cleaner fix for the HPA case is simply to remove replicas from the Deployment manifest in Git.

ComparisonError and repository errors

A ComparisonError means Argo CD could not produce the desired state at all, so it cannot compare. Read the condition message; it nearly always names the cause:

  • Authentication required or repository not found: credentials expired or the registered URL differs from the Application's repoURL (for example .git suffix or SSH versus HTTPS). Run argocd repo list and re-add the repository if it is not Successful. Token setup for each provider is covered in the GitHub and GitLab guide.
  • Path does not exist: the path or targetRevision is wrong, or the branch was renamed.
  • Helm or Kustomize render errors: missing chart dependencies, a values file path that does not exist, or a Kustomize version mismatch. Reproduce locally with helm template or kustomize build against the same commit.

CRD too large for client-side apply

Some CRDs exceed the 262144-byte limit on the last-applied-configuration annotation that client-side apply writes, so the sync fails with a "Too long" error. Switch the application, or just that resource, to server-side apply:

spec:
  syncPolicy:
    syncOptions:
      - ServerSideApply=true

The same root cause is why recent installation docs suggest kubectl apply --server-side --force-conflicts for Argo CD's own manifests.

A sync that never finishes

An operation can hang on a hook Job that never completes or a sync wave waiting for a resource that never becomes healthy. Find the blocking resource in argocd app get, fix it, or cancel the operation:

argocd app terminate-op my-app

Health problems

Health status is separate from sync status. An app can be Synced and Degraded at the same time: Git matches the cluster, but the workload is failing.

Degraded or stuck Progressing

For Deployments and StatefulSets, Progressing means the rollout has not finished; Degraded usually means it exceeded its progress deadline. This is a workload problem, not an Argo CD problem. Look at the pods:

kubectl -n my-namespace get pods
kubectl -n my-namespace describe pod my-app-6c9f7d8b4-abcde
kubectl -n my-namespace logs my-app-6c9f7d8b4-abcde --previous

Image pull errors, failing readiness probes, missing Secrets and insufficient resources account for most cases. An Ingress or Service of type LoadBalancer can also stay Progressing until the cloud provider assigns an address.

Unknown health on custom resources

Argo CD ships health checks for many common CRDs, but not all. When it does not know how to judge a resource, you can teach it with a Lua script in argocd-cm, keyed by group_Kind:

data:
  resource.customizations.health.example.com_Widget: |
    hs = {}
    if obj.status ~= nil and obj.status.conditions ~= nil then
      for i, condition in ipairs(obj.status.conditions) do
        if condition.type == "Ready" and condition.status == "True" then
          hs.status = "Healthy"
          hs.message = condition.message
          return hs
        end
        if condition.type == "Ready" and condition.status == "False" then
          hs.status = "Degraded"
          hs.message = condition.message
          return hs
        end
      end
    end
    hs.status = "Progressing"
    hs.message = "Waiting for Ready condition"
    return hs

Applications stuck deleting

When an Application carries the resources-finalizer.argocd.argoproj.io finalizer, Argo CD deletes every managed resource before removing the Application. If one of those resources cannot be deleted (its own finalizer is stuck, the namespace is gone, or the destination cluster is unreachable), the Application waits forever.

First find and fix the resource that will not delete. If you decide to abandon cleanup, remove the finalizer:

kubectl -n argocd patch application my-app --type merge \
  -p '{"metadata":{"finalizers":null}}'

Removing the finalizer orphans whatever the application created. Workloads keep running and nothing in Argo CD tracks them anymore, so check the destination namespace afterwards and clean up by hand.

Login and access problems

Lost or changed admin password

The argocd-initial-admin-secret only holds the first generated password. Once you change the password or delete that secret, the real value lives as a bcrypt hash under admin.password in argocd-secret. To reset it, clear the stored hash and restart the API server so a new initial password is generated:

kubectl -n argocd patch secret argocd-secret \
  -p '{"data":{"admin.password":null,"admin.passwordMtime":null}}'
kubectl -n argocd rollout restart deploy/argocd-server
argocd admin initial-password -n argocd

Alternatively, generate a hash with argocd account bcrypt --password 'new-password' and write it to admin.password directly. Change the password and delete the initial secret again afterwards, as described in the login guide.

CLI errors behind an ingress or load balancer

The CLI speaks gRPC. Many ingress controllers and L7 load balancers do not pass gRPC through cleanly, which shows up as connection resets or unexpected content-type errors. Try:

argocd login argocd.example.com --grpc-web
# self-signed certificate or port-forward only
argocd login localhost:8080 --insecure

If the browser loops on redirects behind an ingress that terminates TLS, run the server in insecure mode (server.insecure: "true" in argocd-cmd-params-cm) and let the ingress handle HTTPS.

SSO login fails or users have no permissions

Check that url in argocd-cm matches the address in the browser, and that the OAuth callback is https://<host>/api/dex/callback. If users log in but see nothing, the problem is RBAC: their group names do not match the subjects in argocd-rbac-cm. You can test a policy offline with argocd admin settings rbac can.

Webhooks and slow change detection

Without a working webhook, Argo CD falls back to polling, roughly every three minutes. If pushes are slow to appear, open the webhook's delivery log in GitHub or GitLab. A 4xx response usually means a secret mismatch with webhook.github.secret or webhook.gitlab.secret in argocd-secret; a timeout means the endpoint is not reachable from the internet.

Performance and resource limits

As the number of applications grows, the application controller and repo server do the heavy lifting. Signs of strain include OOMKilled pods, slow reconciliation and repo server timeouts on large Helm charts or monorepos.

  • Raise memory limits on argocd-application-controller and argocd-repo-server before anything else.
  • Scale the repo server horizontally; it is stateless.
  • Shard the application controller across replicas when you manage many clusters.
  • Use the HA manifests for production, and watch the built-in Prometheus metrics for reconciliation time and queue depth.

Frequently asked questions

What is the difference between Refresh and Hard Refresh in Argo CD?

A normal refresh compares the live cluster with the latest manifests, reusing cached rendered output where possible. A hard refresh also invalidates the manifest cache so the repo server fetches and renders everything again. Use a hard refresh when you suspect stale Helm dependencies or cached output.

Why does my application show Synced but Degraded?

Sync status and health status measure different things. Synced means the cluster matches Git; Degraded means a resource is failing at runtime, for example a crashing pod or a failed rollout. Fix the workload itself, usually by checking pod events and logs, rather than syncing again.

Is it safe to remove the Argo CD resources finalizer?

Removing it unblocks deletion of the Application object, but Argo CD will no longer clean up the resources that application created. Check what is still running in the destination namespace and delete it yourself if it should be gone.

Which Argo CD logs should I check first?

Check the repo server for manifest generation and Git errors, the application controller for sync and health problems, and the API server for login, SSO, RBAC and webhook issues. The Dex server logs are useful when SSO fails before reaching Argo CD.

Next steps

If your problem started during setup, re-check the steps in the installation guide or the installation steps on the homepage. Helm-based installs have their own upgrade pitfalls, covered in the Argo CD Helm chart guide. For quick answers to common questions, see the FAQ, and for anything not covered here, the official Argo CD documentation and GitHub issues are the best places to search.