Skip to content

Instantly share code, notes, and snippets.

@Nighthawk14
Created November 4, 2019 14:18
Show Gist options
  • Save Nighthawk14/400c2dbdffc722e53c2fd03bf37707b3 to your computer and use it in GitHub Desktop.
Save Nighthawk14/400c2dbdffc722e53c2fd03bf37707b3 to your computer and use it in GitHub Desktop.
Crash log
Failed running command "cd /terraform/qa; envdir /env terraform show -json /terraform/terraform.tfplan" (exit 2)
Output:
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 Terraform[1] 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.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
panic: can't use ElementIterator on null value
goroutine 1 [running]:
github.com/zclconf/go-cty/cty.Value.ElementIterator(0x231d120, 0xc00044d6d8, 0x0, 0x0, 0x1cb5380, 0x1)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/value_ops.go:922 +0xd5
github.com/hashicorp/terraform/command/jsonstate.marshalAttributeValues(0x231d120, 0xc00044d6d8, 0x0, 0x0, 0xc000b6bc10, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/jsonstate/state.go:109 +0xc4
github.com/hashicorp/terraform/command/jsonstate.marshalResources(0xc001a69dd0, 0xc000692af0, 0x0, 0x0, 0xc001a47338, 0xc0015e14f8, 0x4135f5)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/jsonstate/state.go:325 +0x24e
github.com/hashicorp/terraform/command/jsonstate.marshalRootModule(0xc000b74be0, 0xc000692af0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/jsonstate/state.go:193 +0x107
github.com/hashicorp/terraform/command/jsonstate.(*state).marshalStateValues(0xc0018a89c0, 0xc000b74be0, 0xc000692af0, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/jsonstate/state.go:159 +0x139
github.com/hashicorp/terraform/command/jsonstate.Marshal(0xc001a69ce0, 0xc000692af0, 0x0, 0x0, 0x0, 0x2e, 0x5c21)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/jsonstate/state.go:139 +0x9e
github.com/hashicorp/terraform/command/jsonplan.Marshal(0xc0007c0c30, 0xc000279880, 0xc001a69ce0, 0xc000692af0, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/jsonplan/plan.go:123 +0x75d
github.com/hashicorp/terraform/command.(*ShowCommand).Run(0xc000544680, 0xc00003a0a0, 0x2, 0x2, 0xc00044a200)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/show.go:146 +0x915
github.com/mitchellh/cli.(*CLI).Run(0xc0004cc280, 0xc0004cc280, 0xc00022fd90, 0x1)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/mitchellh/cli@v1.0.0/cli.go:255 +0x1f1
main.wrappedMain(0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:238 +0xc34
main.realMain(0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:102 +0xb4
main.main()
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:38 +0x3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment