Error: Error locking state: Error acquiring the state lock: HTTP remote state already locked: ID=450e834d-dc84-2a87-9bbd-751c127b10aa
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.
Am able to retrieve contents of state file using following command:
I strongly suggest to not post your private token online, and to rotate it immediately. It gives access to all your groups and projects, and an actor in bad faith can impersonate you.
@martin.hacker I was worried you might not see the above message for a while, so I went ahead and redacted your private token from your original post. GitLab forum moderators will still be able to see that information in order to help troubleshoot, but the rest of the community will no longer be privy to it.
I agree with @rpadovani, since your private token was exposed for almost 12 hours, you might want to consider rotating in just in case. Thanks!
Many thanks to @rpadovani for noticing this and to @linds for redacting. Schoolboy error after spending hours trying to find a fix. Token has now been changed.
Hi @hemantpro no not missing anything - no responses apart from above. However, I have an open ticket with GitLab support who are still trying to resolve. I suspect that the access token may have insufficient permissions to unlock the state file, although api permissions should in theory be sufficient.