-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unexpected end of JSON input" error locking s3 backend #32690
Comments
This looks like a simple race condition in the locking code: In
In
Here |
I am also facing the same. Is there any update on this issue? |
same problem |
╷ |
Getting exactly the same issue. Any update ? |
anyone have how to remove the same issue, seems to not have any |
How to reset the lock? Open to any concurrency related risks - as we can manually coordinate it in a small team. |
The issue is usually a lock left in DynamoDB from
and one with
due to failed or interrupted plan (
to remove the lock. Otherwise, the error
is probably a result of someone manually tampering with the lock in the DynamoDB table and putting the state file's MD5 sum in the
or vice-versa resulting in wrong (or in this case an empty) |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/petur/b66b6c7fce877ddb1bf3cc7629101de0
Expected Behavior
When terraform is run with
-lock-timeout
, it should either acquire the lock, or retry until the timeout expires.Actual Behavior
Terraform fails with the error:
Steps to Reproduce
terraform init
while TF_LOG=trace terraform plan -lock-timeout=60s; do : ; done
in both folders (needs two shells).(This is an artificial way to reproduce the issue. It was found in CI where multiple people push changes and plans get run in parallel.)
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: