Error: Error acquiring the state lock
Lock Info:
ID: 8a9b2c3d-4e5f-6789-0ab1-2c3d4e5f6789
Path: tfstate/genesys-routing/terraform.tfstate.lock.info
Operation: OperationTypePlan
Who: user@host
Version: 1.5.7
Created: 2023-10-27 14:30:00.000000 +0000 UTC
Info: timeout after 5m0s
Error message:
Querying the state lock failed. Please resolve the issue and try again.
Running terraform plan on our routing queue module. The state file exists locally. No other CI jobs are running. The lock seems stuck.
Here is the resource definition:
resource "genesyscloud_routing_queue" "sales_support" {
name = "Sales Support"
description = "Primary sales queue"
enabled = true
acd_skills {
id = 12345
}
}
I tried terraform force-unlock 8a9b2c3d-4e5f-6789-0ab1-2c3d4e5f6789. It returned success. But terraform plan still throws the same lock error immediately.
The lock file terraform.tfstate.lock.info is empty now. Is there a race condition with the Genesys provider when refreshing the queue state? Or am I missing a config flag for the backend?
Using Terraform 1.5.7 and genesys provider 1.2.3.