-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Atlantis server doesn't do anything after terraform init
#5593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Based on your description and logs, Atlantis successfully runs Here are some key points and troubleshooting steps:
Troubleshooting suggestions:
If the problem persists after these steps, please provide more details about your Atlantis version and any additional logs or error messages you see. To continue talking to Dosu, mention @dosu-bot. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Thanks for the suggestions. But I would like to know if it's true that simply running |
Running terraform init in a run step within an Atlantis custom workflow is supported and should work, as long as the command completes and all output file descriptors are properly handled. However, the Atlantis documentation notes that if a custom command's output is not redirected or handled, it can cause the workflow to hang. This is not specific to terraform init—any command in a run step can block if its output is not managed correctly. There is no general or documented bug that prevents terraform init from working in a run step. The most common cause for the behavior you describe (where the workflow hangs after terraform init) is improper output handling in the custom workflow step, not an inherent problem with terraform init itself. If output is not consumed or redirected, Atlantis may wait indefinitely for the process to finish, which matches the symptoms you are seeing. To summarize: simply running terraform init in a run step does work, but you must ensure that output is handled so the process can terminate cleanly. If you experience hanging, it is likely due to output handling rather than a fundamental issue with terraform init in a run step. You can find more details in the custom workflows documentation. To continue talking to Dosu, mention @dosu-bot. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Uh oh!
There was an error while loading. Please reload this page.
Community Note
Overview of the Issue
I have a custom workflow
Based on logs, the terraform server doesn't do anything after running the
terraform init
The github checks just hang there.
Reproduction Steps
Logs
Latest comment is ^^ and nothing gets printed after that.
Environment details
Additional Context
The text was updated successfully, but these errors were encountered: