Terraform apply fails with "Error acquiring the state lock". What do you do?
IntermediateHands-onLive debugging tasks
Answer
terraform plan # shows the lock ID, who holds it and since when
# confirm no CI job or teammate is actually running an apply
terraform force-unlock <LOCK_ID>
Key trick → Only force-unlock after confirming the holder is dead (for example, a crashed CI runner). Unlocking during a live apply can corrupt state. CI concurrency groups prevent most of these.
More on Live debugging tasks
A pod is in CrashLoopBackOff. You have 10 minutes. Walk through your commands.BeginnerThe pod shows `OOMKilled`. Diagnose and fix it.BeginnerA pod is stuck in `ImagePullBackOff`. Fix it.BeginnerA pod is `Pending` forever. What do you check?AdvancedThe Service returns "connection refused" but pods are Running. Debug it.IntermediateA Docker container exits immediately after `docker run -d`. Find out why.Beginner