Skip to content

Instantly share code, notes, and snippets.

@mauriziod
Created July 2, 2018 16:41
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 mauriziod/e8c0c87a01ddc033a7b0845dfef3740f to your computer and use it in GitHub Desktop.
Save mauriziod/e8c0c87a01ddc033a7b0845dfef3740f to your computer and use it in GitHub Desktop.
rm -rf .terraform ./modules tfplan
terraform get .
2018/07/02 17:40:11 [INFO] Terraform version: 0.10.7 5f9bf20ba6aaa174600109a95cc77f7788d4959b+CHANGES
2018/07/02 17:40:11 [INFO] Go runtime version: go1.9
2018/07/02 17:40:11 [INFO] CLI args: []string{"/usr/local/bin/terraform", "get", "."}
2018/07/02 17:40:11 [DEBUG] Attempting to open CLI config file: /Users/redacted/.terraformrc
2018/07/02 17:40:11 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/07/02 17:40:11 [DEBUG] CLI Config is main.Config{Providers:map[string]string{}, Provisioners:map[string]string{}, DisableCheckpoint:false, DisableCheckpointSignature:false, PluginCacheDir:""}
2018/07/02 17:40:11 [INFO] CLI command args: []string{"get", "."}
2018/07/02 17:40:11 [DEBUG] plugin: waiting for all plugin processes to complete...
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast.(*ObjectItem).Pos(...)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast/ast.go:112
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast.(*ObjectList).Pos(0xc4203a1a60, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast/ast.go:112 +0x1c3
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decodeString(0xc4201cf288, 0xc420258ee0, 0x9, 0x43d9b60, 0xc4203a1a60, 0x27d4a40, 0xc42039cf00, 0x198, 0x60020390000, 0x8)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:536 +0x8e
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decode(0xc4201cf288, 0xc420258ee0, 0x9, 0x43d9b60, 0xc4203a1a60, 0x27d4a40, 0xc42039cf00, 0x198, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:106 +0x83b
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decodeStruct(0xc4201cf288, 0x2f029f2, 0x4, 0x43d9b60, 0xc420349440, 0x2cb50a0, 0xc42039cf00, 0x199, 0xc42025a920, 0xc420258720)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:697 +0x17b0
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decode(0xc4201cf288, 0x2f029f2, 0x4, 0x43d9ba0, 0xc420349440, 0x2cb50a0, 0xc42039cf00, 0x199, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:108 +0x79f
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.DecodeObject(0x2746a60, 0xc42039cf00, 0x43d9ba0, 0xc420349440, 0x3, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:60 +0x125
github.com/hashicorp/terraform/config.loadVariablesHcl(0xc42025af00, 0xc4201cf7d8, 0x1, 0x1, 0xc42025aea0, 0xc42025ae60)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader_hcl.go:593 +0x51c
github.com/hashicorp/terraform/config.(*hclConfigurable).Config(0xc42025ae60, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader_hcl.go:70 +0x100b
github.com/hashicorp/terraform/config.(*importTree).ConfigTree(0xc420256340, 0xa, 0xc420256340, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/import_tree.go:87 +0x49
github.com/hashicorp/terraform/config.LoadFile(0xc4202583e0, 0xa, 0xc420389520, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader.go:56 +0x5f
github.com/hashicorp/terraform/config.LoadDir(0x7ffeefbff8b5, 0x1, 0x10, 0x10, 0xc4202540c0)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader.go:101 +0x22e
github.com/hashicorp/terraform/config/module.NewTreeModule(0x0, 0x0, 0x7ffeefbff8b5, 0x1, 0x14911c0, 0xc420348240, 0xc4201cfa68)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:58 +0x39
github.com/hashicorp/terraform/command.getModules(0xc42036ea80, 0x7ffeefbff8b5, 0x1, 0x7ffeefbff801, 0x1, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/get.go:79 +0x4e
github.com/hashicorp/terraform/command.(*GetCommand).Run(0xc42036ea80, 0xc42000e0e0, 0x1, 0x1, 0xc4202752e0)
/opt/gopath/src/github.com/hashicorp/terraform/command/get.go:43 +0x213
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4202b7b80, 0xc4202b7b80, 0xc4201cfcc0, 0x1)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:217 +0xc50
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:96 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:32 +0x38
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast.(*ObjectItem).Pos(...)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast/ast.go:112
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast.(*ObjectList).Pos(0xc4203a1a60, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast/ast.go:112 +0x1c3
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decodeString(0xc4201cf288, 0xc420258ee0, 0x9, 0x43d9b60, 0xc4203a1a60, 0x27d4a40, 0xc42039cf00, 0x198, 0x60020390000, 0x8)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:536 +0x8e
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decode(0xc4201cf288, 0xc420258ee0, 0x9, 0x43d9b60, 0xc4203a1a60, 0x27d4a40, 0xc42039cf00, 0x198, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:106 +0x83b
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decodeStruct(0xc4201cf288, 0x2f029f2, 0x4, 0x43d9b60, 0xc420349440, 0x2cb50a0, 0xc42039cf00, 0x199, 0xc42025a920, 0xc420258720)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:697 +0x17b0
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decode(0xc4201cf288, 0x2f029f2, 0x4, 0x43d9ba0, 0xc420349440, 0x2cb50a0, 0xc42039cf00, 0x199, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:108 +0x79f
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.DecodeObject(0x2746a60, 0xc42039cf00, 0x43d9ba0, 0xc420349440, 0x3, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:60 +0x125
github.com/hashicorp/terraform/config.loadVariablesHcl(0xc42025af00, 0xc4201cf7d8, 0x1, 0x1, 0xc42025aea0, 0xc42025ae60)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader_hcl.go:593 +0x51c
github.com/hashicorp/terraform/config.(*hclConfigurable).Config(0xc42025ae60, 0x0, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader_hcl.go:70 +0x100b
github.com/hashicorp/terraform/config.(*importTree).ConfigTree(0xc420256340, 0xa, 0xc420256340, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/import_tree.go:87 +0x49
github.com/hashicorp/terraform/config.LoadFile(0xc4202583e0, 0xa, 0xc420389520, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader.go:56 +0x5f
github.com/hashicorp/terraform/config.LoadDir(0x7ffeefbff8b5, 0x1, 0x10, 0x10, 0xc4202540c0)
/opt/gopath/src/github.com/hashicorp/terraform/config/loader.go:101 +0x22e
github.com/hashicorp/terraform/config/module.NewTreeModule(0x0, 0x0, 0x7ffeefbff8b5, 0x1, 0x14911c0, 0xc420348240, 0xc4201cfa68)
/opt/gopath/src/github.com/hashicorp/terraform/config/module/tree.go:58 +0x39
github.com/hashicorp/terraform/command.getModules(0xc42036ea80, 0x7ffeefbff8b5, 0x1, 0x7ffeefbff801, 0x1, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/command/get.go:79 +0x4e
github.com/hashicorp/terraform/command.(*GetCommand).Run(0xc42036ea80, 0xc42000e0e0, 0x1, 0x1, 0xc4202752e0)
/opt/gopath/src/github.com/hashicorp/terraform/command/get.go:43 +0x213
github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4202b7b80, 0xc4202b7b80, 0xc4201cfcc0, 0x1)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.wrappedMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:217 +0xc50
main.realMain(0x0)
/opt/gopath/src/github.com/hashicorp/terraform/main.go:96 +0xbb
main.main()
/opt/gopath/src/github.com/hashicorp/terraform/main.go:32 +0x38
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
make: *** [init] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment