Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

GitOps Troubleshooting

Direct answer

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.

When to use this

Use this when Argo CD or Flux cannot sync, render or reach the repository.

First 30 seconds

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.

Operational verification

git → fetch → render → apply → health

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
GitOps reconciliation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformGitOps reconciliation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior. · Git
Key commandgit status --short --branch
Scope / prerequisiteUse this when Argo CD or Flux cannot sync, render or reach the repository.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Key points
  • Check controller status and events first.
  • Render errors come from Helm or Kustomize.
  • Repository access problems stop sync.
Key checks
  • argocd app get <app> --show-operation — sync errors
  • flux logs --level=error — Flux errors
  • kubectl 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
SymptomLikely cause
OutOfSync foreverField mutated by another controller; ignore differences
Sync failedManifest error or missing permission
Change not picked upWrong branch/path or polling interval
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docGitOps reconciliation current

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%
Confirmation

Confirm action

Continue?