Use this when Argo CD or Flux cannot sync, render or reach the repository.
GitOps Troubleshooting
Troubleshoot GitOps by checking the controller's sync status and events, the rendered manifests, repository access, Helm or Kustomize errors, and resources changed outside Git.
1. Failures: repo access, rendering errors (Helm/Kustomize), invalid manifests, RBAC, CRDs missing, health checks.
2. Read controller logs.
3. Render locally.
4. Check sync waves.
5. Fix in git.
git → fetch → render → apply → health
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git status --short --branchPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good means the controller reports the intended commit/revision, desired and live state converge for managed fields, health checks pass, and a subsequent reconciliation does not reintroduce the problem. Confirm an unauthorized manual change is detected/reverted or flagged per policy. A merged PR shows source-of-truth change, not successful deployment or runtime health.
Step 2 Command read-back and what it shows Verify boundary
Known-good is the intended commit is the controller's observed revision, reconciliation reports successful/synced state and the original workload reaches its expected healthy behavior; broken state is controller revision lags Git, reconciliation reports drift/error, or resources are synced while the workload remains degraded or unavailable. Local git status shows author-side repository state only; it cannot show controller reconciliation, target admission or workload health.
Step 3 Common mistakes Narrow the fault
- Debugging the cluster without checking the controller's sync status.
Step 4 Native failure isolation and next-check logic Narrow the fault
Anchor on repository, branch/path and commit SHA. Confirm the controller observed that revision, rendered/validated it successfully, and attempted reconciliation against the intended cluster/environment. Compare desired/rendered/live diff and inspect health/sync conditions plus controller events. If rollback is needed, prefer a new/reverted declarative commit rather than manual live edits that create more drift, unless emergency procedure explicitly calls for it. Distinguish secret/reference resolution failure from resource apply failure.
Step 5 Observation-driven branch and next-check logic Narrow the fault
If local Git state is not the intended revision, fix source control first; if Git is correct but controller revision/sync is stale, inspect repository fetch and reconciliation; if controller reports applied/synced but workload fails, move to target resource events, health and service dependencies.
- Check controller status and events first.
- Render errors come from Helm or Kustomize.
- Repository access problems stop sync.
argocd app get <app> --show-operation— sync errorsflux logs --level=error— Flux errorskubectl describe <resource>— resource events
ReferenceHow it works2 sections · depth on demand
How it works
GitOps separates declared state in Git, controller-observed desired revision, reconciliation/rendering and live target state. A merged commit can be valid Git yet never become desired state because the controller watches another branch/path, rejects rendering, lacks credentials or is paused. Drift can be external mutation, failed reconciliation or intentionally ignored fields.
How it works
GitOps Troubleshooting is governed by Git desired state, controller reconciliation state and live-cluster/resource state. GitOps controllers read a specific repository revision, render or apply desired objects, compare them with live state and repeatedly reconcile drift; the repository owns intent while the controller and target platform own convergence/runtime state. Repository access, controller credentials, render dependencies, admission policy and target APIs are distinct boundaries. The important state separation is that a clean local repository does not mean the controller has fetched the same revision, and a synced resource does not necessarily mean the application behind it is healthy.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
GitOps troubleshooting compares what Git says, what the reconciler thinks, and what is actually running.
1. Confirm the commit: is the change on the tracked branch and path?
2. Check the reconciler's sync status: argocd app get web or flux get kustomizations.
3. Read sync errors: invalid manifests, missing CRDs, RBAC denials.
4. Check health: pods running, rollout complete.
5. Look for drift caused by manual changes or other controllers.
flux reconcile kustomization apps --with-source
argocd app diff web
| Symptom | Likely cause |
|---|---|
| OutOfSync forever | Field mutated by another controller; ignore differences |
| Sync failed | Manifest error or missing permission |
| Change not picked up | Wrong branch/path or polling interval |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in GitOps > GitOps Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://opengitops.dev/ · confidence 94%