-
Couldn't load subscription status.
- Fork 1.2k
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
Version: 0.35.1
When using ATLANTIS_GH_ALLOW_MERGEABLE_BYPASS_APPLY=true and setting the atlantis/apply check as required in the repository, I'm getting this message when running atlantis apply.
Apply Error
the default workspace at path terraform is currently locked by another command that is running for this pull request.
Wait until the previous command is complete and try again
When checking the Atlantis container, there are no terraform processes running, just the atlantis server, so I'm sure there's no terraform command running for the pull request.
We were running atlantis apply only after making sure that the plan had finished and that there was no terraform process running inside of the container.
Once we removed the required check and set the variable to false, everything started working as usual.
Reproduction Steps
- Set the variable ATLANTIS_GH_ALLOW_MERGEABLE_BYPASS_APPLY=true.
- Set the required check in the Terraform repository.
- Open a pull request.
- Wait until the automatic plan finishes.
- Run
atlantis apply - Get the error from the overview
Please let me know if there are any specific atlantis.yaml configurations that are of interest to be able to understand this behavior. I don't see any extra configuration that could be linked to this.