You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Every time a create a PR, or run atlantis plan, I receive an error in github comments:
The default workspace is currently locked by another command that is running for this pull request.
However, plan and apply works as expected, but the error messages create confusion and are also sended as emails
Reproduction Steps
I have configured atlantis server using helm chart, and following the official documentation
I am using google gcs as terraform state provider
I am using a clone of atlantis-test repository to test
Logs
Logs
{"level":"debug","ts":"2022-01-13T17:16:22.428Z","caller":"server/middleware.go:35","msg":"GET /healthz – from 192.168.130.190:52308","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:22.428Z","caller":"server/middleware.go:35","msg":"GET /healthz – from 192.168.130.190:52306","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:22.428Z","caller":"server/middleware.go:37","msg":"GET /healthz – respond HTTP 200","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:22.428Z","caller":"server/middleware.go:37","msg":"GET /healthz – respond HTTP 200","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.171Z","caller":"server/middleware.go:35","msg":"POST /events – from 10.1.128.220:43486","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.171Z","caller":"events/events_controller.go:96","msg":"handling GitHub post","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.172Z","caller":"events/events_controller.go:146","msg":"request valid","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.173Z","caller":"events/events_controller.go:155","msg":"handling as pull request event","json":{}}
{"level":"info","ts":"2022-01-13T17:16:25.173Z","caller":"events/events_controller.go:318","msg":"identified event as type \"opened\"","json":{}}
{"level":"info","ts":"2022-01-13T17:16:25.173Z","caller":"events/events_controller.go:346","msg":"executing autoplan","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.173Z","caller":"server/middleware.go:37","msg":"POST /events – respond HTTP 200","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.174Z","caller":"vcs/github_client.go:126","msg":"GET /repos/<REDACTED>/atlantis-test/pulls/28/files","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.194Z","caller":"server/middleware.go:35","msg":"POST /events – from 10.1.128.220:43488","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.194Z","caller":"events/events_controller.go:96","msg":"handling GitHub post","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.195Z","caller":"events/events_controller.go:146","msg":"request valid","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.196Z","caller":"events/events_controller.go:155","msg":"handling as pull request event","json":{}}
{"level":"info","ts":"2022-01-13T17:16:25.196Z","caller":"events/events_controller.go:318","msg":"identified event as type \"opened\"","json":{}}
{"level":"info","ts":"2022-01-13T17:16:25.196Z","caller":"events/events_controller.go:346","msg":"executing autoplan","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.196Z","caller":"server/middleware.go:37","msg":"POST /events – respond HTTP 200","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.196Z","caller":"vcs/github_client.go:126","msg":"GET /repos/<REDACTED>/atlantis-test/pulls/28/files","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:25.381Z","caller":"events/project_command_builder.go:178","msg":"2 files were modified in this pull request","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"}}
{"level":"debug","ts":"2022-01-13T17:16:25.381Z","caller":"events/project_command_builder.go:215","msg":"got workspace lock","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"}}
{"level":"info","ts":"2022-01-13T17:16:25.381Z","caller":"events/github_app_working_dir.go:26","msg":"Refreshing git tokens for Github App","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"}}
{"level":"debug","ts":"2022-01-13T17:16:25.381Z","caller":"events/git_cred_writer.go:36","msg":"git credentials file has expected contents, not modifying","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"}}
{"level":"info","ts":"2022-01-13T17:16:25.381Z","caller":"events/working_dir.go:202","msg":"creating dir \"/atlantis-data/repos/<REDACTED>/atlantis-test/28/default\"","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"}}
{"level":"debug","ts":"2022-01-13T17:16:25.430Z","caller":"events/project_command_builder.go:178","msg":"2 files were modified in this pull request","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"}}
{"level":"warn","ts":"2022-01-13T17:16:25.430Z","caller":"events/project_command_builder.go:212","msg":"workspace was locked","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"},"stacktrace":"github.com/runatlantis/atlantis/server/events.(*DefaultProjectCommandBuilder).buildPlanAllCommands\n\tgithub.com/runatlantis/atlantis/server/events/project_command_builder.go:212\ngithub.com/runatlantis/atlantis/server/events.(*DefaultProjectCommandBuilder).BuildAutoplanCommands\n\tgithub.com/runatlantis/atlantis/server/events/project_command_builder.go:125\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).runAutoplan\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:72\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:221\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunAutoplanCommand\n\tgithub.com/runatlantis/atlantis/server/events/command_runner.go:163"}
{"level":"error","ts":"2022-01-13T17:16:25.791Z","caller":"events/pull_updater.go:14","msg":"The default workspace is currently locked by another command that is running for this pull request.\nWait until the previous command is complete and try again.","json":{"repo":"<REDACTED>/atlantis-test","pull":"28"},"stacktrace":"github.com/runatlantis/atlantis/server/events.(*PullUpdater).updatePull\n\tgithub.com/runatlantis/atlantis/server/events/pull_updater.go:14\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).runAutoplan\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:77\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:221\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunAutoplanCommand\n\tgithub.com/runatlantis/atlantis/server/events/command_runner.go:163"}
{"level":"debug","ts":"2022-01-13T17:16:25.791Z","caller":"vcs/github_client.go:167","msg":"POST /repos/<REDACTED>/atlantis-test/issues/28/comments","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:26.884Z","caller":"server/middleware.go:35","msg":"POST /events – from 10.1.128.220:43500","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:26.884Z","caller":"events/events_controller.go:96","msg":"handling GitHub post","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:26.884Z","caller":"events/events_controller.go:146","msg":"request valid","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:26.885Z","caller":"events/events_controller.go:152","msg":"handling as comment event","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:26.885Z","caller":"logging/simple_logger.go:155","msg":"Ignoring non-command comment: \"**Plan Error**\\n```\\nThe default workspace...\"","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:26.885Z","caller":"server/middleware.go:37","msg":"POST /events – respond HTTP 200","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:27.067Z","caller":"server/middleware.go:35","msg":"POST /events – from 10.1.128.220:43488","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:27.067Z","caller":"events/events_controller.go:96","msg":"handling GitHub post","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:27.067Z","caller":"events/events_controller.go:146","msg":"request valid","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:27.068Z","caller":"events/events_controller.go:152","msg":"handling as comment event","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:27.130Z","caller":"logging/simple_logger.go:155","msg":"Ignoring non-command comment: \"**Plan Error**\\n```\\nThe default workspace...\"","json":{}}
{"level":"debug","ts":"2022-01-13T17:16:27.130Z","caller":"server/middleware.go:37","msg":"POST /events – respond HTTP 200","json":{}}
Environment details
If not already included, please provide the following:
Atlantis version: 1.8.1
Atlantis flags: default
Additional Context
The text was updated successfully, but these errors were encountered:
Community Note
Overview of the Issue
Every time a create a PR, or run atlantis plan, I receive an error in github comments:
The default workspace is currently locked by another command that is running for this pull request.
However, plan and apply works as expected, but the error messages create confusion and are also sended as emails
Reproduction Steps
I have configured atlantis server using helm chart, and following the official documentation
I am using google gcs as terraform state provider
I am using a clone of atlantis-test repository to test
Logs
Logs
Environment details
If not already included, please provide the following:
Additional Context
The text was updated successfully, but these errors were encountered: