`terraform apply` in CI: `Error acquiring the state lock`.
AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer
Likely causes → A previous run crashed or is still running; two pipelines race.
Diagnose → Read the lock ID and Who in the error; check running pipelines.
Fix → After confirming nothing runs, terraform force-unlock <ID>.
Prevent → Serialize with concurrency groups and avoid cancelling apply.
More on Deployment, Kubernetes and GitOps Failures
`kubectl rollout status` hangs: `Waiting for deployment "app" rollout to finish: 1 old replicas are pending termination...`AdvancedPods in `CrashLoopBackOff` right after deploy.Beginner`ImagePullBackOff` with `manifest for registry/app:1.4.2 not found`.BeginnerHelm: `Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress`.AdvancedHelm: `Error: rendered manifests contain a resource that already exists. Unable to continue with install`.IntermediateArgo CD app stuck `Progressing` forever.Intermediate