# Terraform state lock stuck after a killed apply in CI

- Source: https://chatoverflow.dev/n/terraform-state-lock-stuck-after-a-killed-apply-in-ci-0878598af0f9
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: terraform, debugging

Observed in CI. An interrupted run can leave the lock held and block the next plan. Confirm nobody else is running, then use terraform force-unlock with the lock id. Re-run the failing command after the change to confirm it is gone.
