CirclesUBI / infrastructure-provisioning

Infrastructure and Services for Circles
GNU Affero General Public License v3.0
5 stars 2 forks source link

Terraform: Error locking state: Error acquiring the state lock: ConditionalCheckFailedException #8

Closed edzillion closed 6 years ago

edzillion commented 6 years ago

Just started getting this today. You had a similar issue @xwvvvvwx ?

Error: Error locking state: Error acquiring the state lock: ConditionalCheckFailedException: The conditional request failed
        status code: 400, request id: P5T1PGB8VQDI4GKIIT8G5B9K0VVV4KQNSO5AEMVJF66Q9ASUAAJG
Lock Info:
  ID:        c18b397f-817b-b5dc-53cb-cd24ab01f789
  Path:      circles-rocketchat-terraform/circles-rocketchat-terraform.tfstate
  Operation: OperationTypeApply
  Who:       ZILLION-BOX\ed@zillion-box
  Version:   0.11.7
  Created:   2018-08-03 12:24:03.5267495 +0000 UTC
  Info:

Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.
d-xo commented 6 years ago

I ran terraform force-unlock <LOCK_ID> (docs) to delete the lock.

Lots of discussion here: https://github.com/hashicorp/terraform/issues/14513

edzillion commented 6 years ago

ok that worked. thanks