-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
timeout while waiting for state to become [something]
errors in Terraform 0.6.12
#5537
Comments
All of these RetryErrors were meant to fail right away, but instead caused retry looping because the typecheck in the implementation of `resource.Retry()` only catches the value type, and not the pointer type. Refs #5537
Hey @jen20, over at #5534 I reported that ASG creation always timed out for me. Discovered that specifying the supposedly optional (By chance I happened upon an issue to update documentation regarding the optional |
This is a pretty big deal in my opinion. I just spent three full days (as in 24 hours) trying to debug this (and a whole string of problems in our build tooling that made that difficult, like terraform being run via wrappers that crashed when TF_LOG was set to DEBUG or higher...). I have a configuration that otherwise works, except for
After three days and at my wits end, I took the
That's a pretty important, and easily-corrected, error to be hidden. It's also an error that likely isn't going to go away with any sane number of retries. |
Hey folks, sorry for the lack of update on this issue and for the trouble that these confusing error messages have caused! Terraform v0.6.13 did include several core improvements that prevented timeout errors from masking other error messages in the majority of configs. I'm fairly certain that on the latest Terraform (v0.6.14) you should see access denied and validation type error messages displayed right away rather than being retried and masked in a timeout error. Please do report back if you're still seeing any trouble on the latest version, and I'll be sure to follow up. 👍 |
I am still seeing timeouts with 0.6.14 while waiting for a Redshift cluster state to become available:
When I check the cluster state it is in "creating" and it is eventually created successfully. |
v0.6.16 here and I'm seeing the same issue but with RDS clusters.
|
I'm still seeing this as of 0.7.3. Trying to spin up an EC2 instance, my run fails with
|
I just got the same behaviour as jantman -- a timeout, but in CloudTrail logs showing that there's no capacity for the instance size we wanted. |
The same on 0.7.13 when trying to run the first example from documentation (https://www.terraform.io/intro/getting-started/build.html). I was trying different AMIs and instance types and still no luck:( |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
There are a number of reports of errors of the form "timeout while waiting for state to become [some state name]" when using Terraform 0.6.12 which likely have the same root cause. This is a meta-issue to group them all together along with the work to fix them.
Issue
When fixing data races in Terraform as part of #4700, a bug was either introduced or exposed which causes genuine errors in the
resource.Retry
mechanism to be elided, and in some cases potentially successful operations returned the same error. A more complete description is in #5460, which introduces one potential fix.Release
More work is currently being done by @phinze to understand the root cause of this bug and the extent of the impact. A fix will be in the next release of Terraform.
The text was updated successfully, but these errors were encountered: