Skip to content

Instantly share code, notes, and snippets.

@arcotek-ltd
Created May 1, 2020 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcotek-ltd/17351e8df9148b177c1db6210618dfcb to your computer and use it in GitHub Desktop.
Save arcotek-ltd/17351e8df9148b177c1db6210618dfcb to your computer and use it in GitHub Desktop.
TF crash
2020/05/01 00:58:09 [INFO] Terraform version: 0.12.24
2020/05/01 00:58:09 [INFO] Go runtime version: go1.12.13
2020/05/01 00:58:09 [INFO] CLI args: []string{"C:\\Terraform\\0.12.24\\amd64\\terraform.exe", "plan", "-var-file=C:\\Temp\\Terraform\\staging\\<product>\\<product>.tfvars"}
2020/05/01 00:58:09 [DEBUG] Attempting to open CLI config file: C:\Users\adrian\AppData\Roaming\terraform.rc
2020/05/01 00:58:09 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/05/01 00:58:09 [INFO] CLI command args: []string{"plan", "-var-file=C:\\Temp\\Terraform\\staging\\<product>\\<product>.tfvars"}
2020/05/01 00:58:09 [TRACE] Meta.Backend: built configuration for "azurerm" backend with hash value 1983920158
2020/05/01 00:58:09 [TRACE] Preserving existing state lineage "680efbb3-312d-2a56-e0b9-7e8e325ba3a1"
2020/05/01 00:58:09 [TRACE] Preserving existing state lineage "680efbb3-312d-2a56-e0b9-7e8e325ba3a1"
2020/05/01 00:58:09 [TRACE] Meta.Backend: working directory was previously initialized for "azurerm" backend
2020/05/01 00:58:09 [TRACE] Meta.Backend: using already-initialized, unchanged "azurerm" backend configuration
2020/05/01 00:58:09 [DEBUG] Loading Environment "public"
2020/05/01 00:58:09 Testing if Service Principal / Client Certificate is applicable for Authentication..
2020/05/01 00:58:09 Testing if Multi Tenant Service Principal / Client Secret is applicable for Authentication..
2020/05/01 00:58:09 Testing if Service Principal / Client Secret is applicable for Authentication..
2020/05/01 00:58:09 Using Service Principal / Client Secret for Authentication
2020/05/01 00:58:09 Getting OAuth config for endpoint https://login.microsoftonline.com/ with tenant c8e0cf72-fa22-3d3a-e22b-105f112aad21
2020/05/01 00:58:09 [TRACE] Meta.Backend: instantiated backend of type *azure.Backend
2020/05/01 00:58:09 [DEBUG] checking for provider in "."
2020/05/01 00:58:09 [DEBUG] checking for provider in "C:\\Terraform\\0.12.24\\amd64"
2020/05/01 00:58:09 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64"
2020/05/01 00:58:09 [DEBUG] found provider "terraform-provider-azuread_v0.8.0_x4.exe"
2020/05/01 00:58:09 [DEBUG] found provider "terraform-provider-azurerm_v2.6.0_x5.exe"
2020/05/01 00:58:09 [DEBUG] found valid plugin: "azuread", "0.8.0", "C:\\Temp\\Terraform\\staging\\<product>\\.terraform\\plugins\\windows_amd64\\terraform-provider-azuread_v0.8.0_x4.exe"
2020/05/01 00:58:09 [DEBUG] found valid plugin: "azurerm", "2.6.0", "C:\\Temp\\Terraform\\staging\\<product>\\.terraform\\plugins\\windows_amd64\\terraform-provider-azurerm_v2.6.0_x5.exe"
2020/05/01 00:58:09 [DEBUG] checking for provisioner in "."
2020/05/01 00:58:09 [DEBUG] checking for provisioner in "C:\\Terraform\\0.12.24\\amd64"
2020/05/01 00:58:09 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64"
2020/05/01 00:58:09 [TRACE] Meta.Backend: backend *azure.Backend does not support operations, so wrapping it in a local backend
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/hashicorp/hcl/v2/json.(*peeker).Read(...)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/peeker.go:20
github.com/hashicorp/hcl/v2/json.parseObject.func1(0x0, 0xc0000813e3, 0x1, 0x364, 0xc000468c00, 0x1f, 0x2b, 0x12, 0x3e3, 0x2b, ...)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:127 +0xb0
github.com/hashicorp/hcl/v2/json.parseObject(0xc00023d200, 0xc000555020, 0x1d2ce40, 0x1, 0x30001, 0xa0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:157 +0x16e2
github.com/hashicorp/hcl/v2/json.parseValue(0xc00023d200, 0x356c258, 0x0, 0x2, 0x2, 0x1)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:45 +0x712
github.com/hashicorp/hcl/v2/json.parseArray(0xc00023d200, 0xc000554f60, 0xc00042d5e0, 0x1, 0x30001, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:288 +0x24a
github.com/hashicorp/hcl/v2/json.parseValue(0xc00023d200, 0xc000554f00, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:47 +0x4e1
github.com/hashicorp/hcl/v2/json.parseObject(0xc00023d200, 0xc000554360, 0xc000497ea0, 0x1, 0x30001, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:188 +0x443
github.com/hashicorp/hcl/v2/json.parseValue(0xc00023d200, 0x356c258, 0x0, 0x0, 0x1, 0xc0005520c0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:45 +0x712
github.com/hashicorp/hcl/v2/json.parseArray(0xc00023d200, 0xc0005542a0, 0xc00042d360, 0x1, 0x30001, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:288 +0x24a
github.com/hashicorp/hcl/v2/json.parseValue(0xc00023d200, 0xc000554240, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:47 +0x4e1
github.com/hashicorp/hcl/v2/json.parseObject(0xc00023d200, 0xc0005540c0, 0xc00042d310, 0x1, 0x30001, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:188 +0x443
github.com/hashicorp/hcl/v2/json.parseValue(0xc00023d200, 0xc000554060, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:45 +0x712
github.com/hashicorp/hcl/v2/json.parseObject(0xc00023d200, 0xc000540fc0, 0xc000468c00, 0x1f, 0x30000, 0xc)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:188 +0x443
github.com/hashicorp/hcl/v2/json.parseValue(0xc00023d200, 0xc00023d200, 0x364, 0xc000468c00, 0x1f, 0x2b)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:45 +0x712
github.com/hashicorp/hcl/v2/json.parseFileContent(0xc000081000, 0x547, 0x747, 0xc000468c00, 0x1f, 0x0, 0x0, 0x43f550, 0x2030001, 0x2030001)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/parser.go:21 +0x15c
github.com/hashicorp/hcl/v2/json.Parse(0xc000081000, 0x547, 0x747, 0xc000468c00, 0x1f, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/hashicorp/hcl/v2@v2.3.0/json/public.go:21 +0x7e
github.com/hashicorp/terraform/command.(*Meta).addVarsFromFile(0xc000571520, 0xc000468c00, 0x1f, 0xc000000046, 0xc00036dd70, 0x1, 0x0, 0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/meta_vars.go:158 +0x58f
github.com/hashicorp/terraform/command.(*Meta).collectVariableValues(0xc000571520, 0xc000476730, 0x0, 0x0, 0xc00012ab60)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/meta_vars.go:80 +0x93b
github.com/hashicorp/terraform/command.(*PlanCommand).Run(0xc000571520, 0xc00006e120, 0x1, 0x2, 0xc00051d450)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/command/plan.go:111 +0xc96
github.com/mitchellh/cli.(*CLI).Run(0xc00007f7c0, 0xc00007f7c0, 0xc0004fbd90, 0x1)
/opt/teamcity-agent/work/9e329aa031982669/pkg/mod/github.com/mitchellh/cli@v1.0.0/cli.go:255 +0x1f8
main.wrappedMain(0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:239 +0xc3a
main.realMain(0x0)
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:103 +0xbb
main.main()
/opt/teamcity-agent/work/9e329aa031982669/src/github.com/hashicorp/terraform/main.go:39 +0x42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment