-
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
Terraform crash - panic: can't use ElementIterator on null value #23507
Comments
@im-lcoupe this looks very similar to the issues resolved by #23492, which released in v0.12.17, which we're expecting to ship on Monday. I think we should wait until 0.12.17 is released, and then I would appreciate it if you upgrade and then verify that this issue is resolved for you. Please let us know either way. If it's not fixed, we'll work on a reproduction case. |
@danieldreier thank you for getting back to me - much appreciated. Sure - I will upgrade the workspace on Monday and report back here - hopefully it fixes the issue, as I'm nervous to run plans against our other workspaces and face the same issue...which may lead to a halt in development. |
@im-lcoupe I am fairly confident that this was resolved in the 0.12.17 release, so I'm going to go ahead and close this issue. Please do re-open it if you're still seeing the problem and I'm happy to work on a reproduction case together. |
To close the loop on this. I hit this as well and can confirm that upgrading from 0.12.16 to latest (19) fixed it. |
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. |
Hi,
I have recently experienced this issue in 3 separate workspaces - unfortunately the error doesn't give too much detail as to a possible cause (if the actual error lies within the code) - failing that, is this a genuine Terraform bug?
I first experienced this with a workspace running 0.12.13 - the code had already been applied and built - I then made a simple change, it reports what it intends to do but then drops into this panic and throws a number of errors. I initially just deleted the workspace from Terraform Enterprise and rebuilt it as it wasn't production. I have since used the upgrade tool to upgrade this particular workspace to 0.12.16.
I then figured it may be a bug in earlier versions so I proceeded to upgrade another workspace that had not yet thrown the error - I upgraded the code to 0.12.16 and it planned first, however, it soon threw the same error......
So now I am starting to think Terraform may be masking the actual error as these workspaces share a common codebase in the majority. However, without some more verbosity to the error, it's proving difficult to track down....thats assuming it is an error in the code and not a bug. A recent code change across all 3 workspaces led me to believe it may be this particular module, however, I have commented this out and it still throws the panic. Furthermore it seems to plan and then panic.
I can provide tf files - I just wanted to first clarify whether this is a bug or perhaps masking an error in my configuration.
Terraform Version
Crash Output
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: