runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.82k stars 1.06k forks source link

Atlantis plan failures for running plans multiple times on a PR (Intermittently) #3785

Open ahotwanisos opened 1 year ago

ahotwanisos commented 1 year ago

Community Note


Overview of the Issue

May it be consequent pushes to auto generate a plan or manually run plans by atlantis plan it throws out following error intermittently: The default workspace at path <path to project> is currently locked by another command that is running for this pull request. Wait until the previous command is complete and try again. Not true for all projects, only specific projects show this behavior. But same default workflow is been used for all projects.

Reproduction Steps

Intermittent issue thus couldn't reproduce this behavior.

Logs

Environment details

Additional Context

jamengual commented 1 year ago

only one atlantis plan can be run at a time on the same repo using the same workspace on the same PR, you can't run 2 plans at the same time or one after another fast.

On Wed, Sep 20, 2023 at 8:21 AM Akash Hotwani @.***> wrote:

Community Note

  • Please vote on this issue by adding a 👍 reaction https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/ 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

May it be consequent pushes to auto generate a plan or manually run plans by atlantis plan it throws out following error intermittently: The default workspace at path is currently locked by another command that is running for this pull request. Wait until the previous command is complete and try again. Not true for all projects, only specific projects show this behavior. But same default workflow is been used for all projects. Reproduction Steps

Intermittent issue thus couldn't reproduce this behavior. Logs Environment details Additional Context

— Reply to this email directly, view it on GitHub https://github.com/runatlantis/atlantis/issues/3785, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ3ERCPGX4U2L3PXEWRMNDX3MCY7ANCNFSM6AAAAAA5ADPCF4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ashi009 commented 8 months ago

@ahotwanisos We are seeing the same issue, please see if your case is the caused by overrun workflow: https://github.com/runatlantis/atlantis/issues/4301