You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error releasing the state lock!
Error message: consul lock was lost
Terraform acquires a lock when accessing your state to prevent others
running Terraform to potentially modify the state at the same time. An
error occurred while releasing this lock. This could mean that the lock
did or did not release properly. If the lock didn't release properly,
Terraform may not be able to run future commands since it'll appear as if
the lock is held.
In this scenario, please call the "force-unlock" command to unlock the
state manually. This is a very dangerous operation since if it is done
erroneously it could result in two people modifying state at the same time.
Only call this command if you're certain that the unlock above failed and
that no one else is holding a lock.
I would like to execute the force-unlock but to do that I need a lock id, which in this scenario seems impossible to acquire.
The lock ID is now given when Terraform fails to acquire the lock. There is however an issue when running terraform force-unlock $ID that is tracked in #22174 and should be fixed by #25837.
I think we can close this issue as it is no longer relevant, feel free to open it again to give more information if you think I'm missing something.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Sep 13, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Actual Behavior
While running
terraform apply
I sometimes get:I would like to execute the force-unlock but to do that I need a lock id, which in this scenario seems impossible to acquire.
References
#14312
#17535
The text was updated successfully, but these errors were encountered: