Skip to content
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 while running "plan" from Visual Studio Studio Code #26097

Closed
broderick-roelf opened this issue Sep 2, 2020 · 3 comments
Closed

Comments

@broderick-roelf
Copy link

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform1 so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

SECURITY WARNING: the "crash.log" file that was created may contain
sensitive information that must be redacted before it is safe to share
on the issue tracker.

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform version: 0.13.1
crash.log

@para0056
Copy link

para0056 commented Sep 2, 2020

Also experiencing crash.
Tried running it from Azure CloudShell, Ubuntu 18.04, and VSCode on Ubuntu 18.04.

The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.azurerm_resource_group.main: Refreshing state...

------------------------------------------------------------------------
panic: not a collection type

goroutine 32 [running]:
github.com/zclconf/go-cty/cty.Type.ElementType(0x2ce50a0, 0xc000519190, 0xc0006bb268, 0x8)
	/home/circleci/project/project/vendor/github.com/zclconf/go-cty/cty/collection.go:25 +0xba
github.com/hashicorp/terraform/terraform.createEmptyBlocks(0xc000f6c720, 0x2ce50a0, 0xc0005191a0, 0x2300040, 0xc00157ac30, 0x2ce50a0, 0xc000519278, 0x2300040, 0xc001547050)
	/home/circleci/project/project/terraform/eval_read_data_plan.go:242 +0x202
github.com/hashicorp/terraform/terraform.dataObjectHasChanges(0xc000f6c720, 0x2ce50a0, 0xc0005191a0, 0x2300040, 0xc00157ac30, 0x2ce50a0, 0xc000519278, 0x2300040, 0xc001547050, 0x0, ...)
	/home/circleci/project/project/terraform/eval_read_data_plan.go:211 +0x19e
github.com/hashicorp/terraform/terraform.(*evalReadDataPlan).Eval(0xc0016fa000, 0x2d26860, 0xc00167dee0, 0x1, 0x1, 0x0, 0x0)
	/home/circleci/project/project/terraform/eval_read_data_plan.go:107 +0x1238
github.com/hashicorp/terraform/terraform.EvalRaw(0x2c7d420, 0xc0016fa000, 0x2d26860, 0xc00167dee0, 0x0, 0x0, 0x0, 0x0)
	/home/circleci/project/project/terraform/eval.go:49 +0xc7
github.com/hashicorp/terraform/terraform.(*EvalSequence).Eval(0xc0013416a0, 0x2d26860, 0xc00167dee0, 0x1, 0x1, 0x6, 0xc00034e650)
	/home/circleci/project/project/terraform/eval_sequence.go:20 +0xfd
github.com/hashicorp/terraform/terraform.EvalRaw(0x2c7ce80, 0xc0013416a0, 0x2d26860, 0xc00167dee0, 0x22b4bc0, 0x3fa2622, 0x2214980, 0xc000e2c8b0)
	/home/circleci/project/project/terraform/eval.go:49 +0xc7
github.com/hashicorp/terraform/terraform.Eval(0x2c7ce80, 0xc0013416a0, 0x2d26860, 0xc00167dee0, 0xc0013416a0, 0x2c7ce80, 0xc0013416a0, 0x0)
	/home/circleci/project/project/terraform/eval.go:35 +0x4d
github.com/hashicorp/terraform/terraform.(*Graph).walk.func1(0x2645300, 0xc000e2c330, 0x0, 0x0, 0x0)
	/home/circleci/project/project/terraform/graph.go:73 +0xc77
github.com/hashicorp/terraform/dag.(*Walker).walkVertex(0xc00034e540, 0x2645300, 0xc000e2c330, 0xc000122cc0)
	/home/circleci/project/project/dag/walk.go:387 +0x357
created by github.com/hashicorp/terraform/dag.(*Walker).Update
	/home/circleci/project/project/dag/walk.go:309 +0x11d7

user@host:~/scratchpad/new_provider$ terraform -v
Terraform v0.13.1
+ provider registry.terraform.io/hashicorp/azurerm v2.25.0```

@jbardin
Copy link
Member

jbardin commented Sep 2, 2020

Duplicate of #26011

@jbardin jbardin marked this as a duplicate of #26011 Sep 2, 2020
@jbardin jbardin closed this as completed Sep 2, 2020
@ghost
Copy link

ghost commented Oct 13, 2020

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.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants