Skip to content

Instantly share code, notes, and snippets.

@xsaamiir
Last active June 5, 2020 11:14
Show Gist options
  • Save xsaamiir/b3db1dd702518f2ad7d067b1a469f3f8 to your computer and use it in GitHub Desktop.
Save xsaamiir/b3db1dd702518f2ad7d067b1a469f3f8 to your computer and use it in GitHub Desktop.
terraform validate crash outpout
$ TF_LOG=trace terraform validate (base) 13:02:24 2020-06-05
2020/06/05 13:02:29 [INFO] Terraform version: 0.13.0 beta1
2020/06/05 13:02:29 [INFO] Go runtime version: go1.14.2
2020/06/05 13:02:29 [INFO] CLI args: []string{"/usr/local/bin/terraform", "validate"}
2020/06/05 13:02:29 [DEBUG] Attempting to open CLI config file: /Users/samir/.terraformrc
2020/06/05 13:02:29 Loading CLI configuration from /Users/samir/.terraformrc
2020/06/05 13:02:29 Loading CLI configuration from /Users/samir/.terraform.d/credentials.tfrc.json
2020/06/05 13:02:29 [DEBUG] checking for credentials in "/Users/samir/.terraform.d/plugins"
2020/06/05 13:02:29 [DEBUG] checking for credentials in "/Users/samir/.terraform.d/plugins/darwin_amd64"
2020/06/05 13:02:29 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/06/05 13:02:29 [DEBUG] ignoring non-existing provider search directory /Users/samir/Library/Application Support/io.terraform/plugins
2020/06/05 13:02:29 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2020/06/05 13:02:29 [INFO] CLI command args: []string{"validate"}
panic: runtime error: index out of range [117] with length 117
goroutine 1 [running]:
github.com/hashicorp/terraform/configs.looksLikeSentences(0xc000130280, 0x76, 0x0)
/home/circleci/project/project/configs/named_values.go:402 +0x194
github.com/hashicorp/terraform/configs.decodeVariableValidationBlock(0xc0004184b0, 0xd, 0xc000397ee0, 0xc00020ce00, 0x2f7b060, 0xc000040430, 0x2f7b060, 0xc000040430)
/home/circleci/project/project/configs/named_values.go:362 +0x8d2
github.com/hashicorp/terraform/configs.decodeVariableBlock(0xc0003971e0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/circleci/project/project/configs/named_values.go:128 +0x4a8
github.com/hashicorp/terraform/configs.(*Parser).loadConfigFile(0xc00008cb00, 0xc000418409, 0x7, 0x0, 0x0, 0x0, 0x0, 0x1)
/home/circleci/project/project/configs/parser_config.go:112 +0xdc2
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigFile(...)
/home/circleci/project/project/configs/parser_config.go:22
github.com/hashicorp/terraform/configs.(*Parser).loadFiles(0xc00008cb00, 0xc00020cd60, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/home/circleci/project/project/configs/parser_config_dir.go:77 +0x342
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigDir(0xc00008cb00, 0x2a59785, 0x1, 0x12, 0xc00063f830, 0x24d6265, 0xc00063f7f8)
/home/circleci/project/project/configs/parser_config_dir.go:37 +0x121
github.com/hashicorp/terraform/configs/configload.(*Loader).LoadConfig(0xc00007cc30, 0x2a59785, 0x1, 0x0, 0x1, 0xc000000000, 0xffffffffffffffff)
/home/circleci/project/project/configs/configload/loader_load.go:22 +0x5d
github.com/hashicorp/terraform/command.(*Meta).loadConfig(0xc0000bb880, 0x2a59785, 0x1, 0x0, 0xc000000000, 0x0, 0x2f378e0)
/home/circleci/project/project/command/meta_config.go:66 +0x132
github.com/hashicorp/terraform/command.(*ValidateCommand).validate(0xc0000bb880, 0xc000046140, 0x41, 0x0, 0x0, 0x0)
/home/circleci/project/project/command/validate.go:88 +0x5f
github.com/hashicorp/terraform/command.(*ValidateCommand).Run(0xc0000bb880, 0xc00000c0b0, 0x0, 0x0, 0xc00020c530)
/home/circleci/project/project/command/validate.go:79 +0x666
github.com/mitchellh/cli.(*CLI).Run(0xc00013c640, 0xc00013c640, 0xc00063fd48, 0x1)
/home/circleci/project/project/vendor/github.com/mitchellh/cli/cli.go:255 +0x1da
main.wrappedMain(0x0)
/home/circleci/project/project/main.go:275 +0xc90
main.realMain(0x0)
/home/circleci/project/project/main.go:106 +0xde
main.main()
/home/circleci/project/project/main.go:42 +0x3a
panic: runtime error: index out of range [117] with length 117
goroutine 1 [running]:
github.com/hashicorp/terraform/configs.looksLikeSentences(0xc000130280, 0x76, 0x0)
/home/circleci/project/project/configs/named_values.go:402 +0x194
github.com/hashicorp/terraform/configs.decodeVariableValidationBlock(0xc0004184b0, 0xd, 0xc000397ee0, 0xc00020ce00, 0x2f7b060, 0xc000040430, 0x2f7b060, 0xc000040430)
/home/circleci/project/project/configs/named_values.go:362 +0x8d2
github.com/hashicorp/terraform/configs.decodeVariableBlock(0xc0003971e0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/circleci/project/project/configs/named_values.go:128 +0x4a8
github.com/hashicorp/terraform/configs.(*Parser).loadConfigFile(0xc00008cb00, 0xc000418409, 0x7, 0x0, 0x0, 0x0, 0x0, 0x1)
/home/circleci/project/project/configs/parser_config.go:112 +0xdc2
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigFile(...)
/home/circleci/project/project/configs/parser_config.go:22
github.com/hashicorp/terraform/configs.(*Parser).loadFiles(0xc00008cb00, 0xc00020cd60, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/home/circleci/project/project/configs/parser_config_dir.go:77 +0x342
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigDir(0xc00008cb00, 0x2a59785, 0x1, 0x12, 0xc00063f830, 0x24d6265, 0xc00063f7f8)
/home/circleci/project/project/configs/parser_config_dir.go:37 +0x121
github.com/hashicorp/terraform/configs/configload.(*Loader).LoadConfig(0xc00007cc30, 0x2a59785, 0x1, 0x0, 0x1, 0xc000000000, 0xffffffffffffffff)
/home/circleci/project/project/configs/configload/loader_load.go:22 +0x5d
github.com/hashicorp/terraform/command.(*Meta).loadConfig(0xc0000bb880, 0x2a59785, 0x1, 0x0, 0xc000000000, 0x0, 0x2f378e0)
/home/circleci/project/project/command/meta_config.go:66 +0x132
github.com/hashicorp/terraform/command.(*ValidateCommand).validate(0xc0000bb880, 0xc000046140, 0x41, 0x0, 0x0, 0x0)
/home/circleci/project/project/command/validate.go:88 +0x5f
github.com/hashicorp/terraform/command.(*ValidateCommand).Run(0xc0000bb880, 0xc00000c0b0, 0x0, 0x0, 0xc00020c530)
/home/circleci/project/project/command/validate.go:79 +0x666
github.com/mitchellh/cli.(*CLI).Run(0xc00013c640, 0xc00013c640, 0xc00063fd48, 0x1)
/home/circleci/project/project/vendor/github.com/mitchellh/cli/cli.go:255 +0x1da
main.wrappedMain(0x0)
/home/circleci/project/project/main.go:275 +0xc90
main.realMain(0x0)
/home/circleci/project/project/main.go:106 +0xde
main.main()
/home/circleci/project/project/main.go:42 +0x3a
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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.
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.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020/06/05 13:02:29 [INFO] Terraform version: 0.13.0 beta1
2020/06/05 13:02:29 [INFO] Go runtime version: go1.14.2
2020/06/05 13:02:29 [INFO] CLI args: []string{"/usr/local/bin/terraform", "validate"}
2020/06/05 13:02:29 [DEBUG] Attempting to open CLI config file: /Users/samir/.terraformrc
2020/06/05 13:02:29 Loading CLI configuration from /Users/samir/.terraformrc
2020/06/05 13:02:29 Loading CLI configuration from /Users/samir/.terraform.d/credentials.tfrc.json
2020/06/05 13:02:29 [DEBUG] checking for credentials in "/Users/samir/.terraform.d/plugins"
2020/06/05 13:02:29 [DEBUG] checking for credentials in "/Users/samir/.terraform.d/plugins/darwin_amd64"
2020/06/05 13:02:29 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/06/05 13:02:29 [DEBUG] ignoring non-existing provider search directory /Users/samir/Library/Application Support/io.terraform/plugins
2020/06/05 13:02:29 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2020/06/05 13:02:29 [INFO] CLI command args: []string{"validate"}
panic: runtime error: index out of range [117] with length 117
goroutine 1 [running]:
github.com/hashicorp/terraform/configs.looksLikeSentences(0xc000130280, 0x76, 0x0)
/home/circleci/project/project/configs/named_values.go:402 +0x194
github.com/hashicorp/terraform/configs.decodeVariableValidationBlock(0xc0004184b0, 0xd, 0xc000397ee0, 0xc00020ce00, 0x2f7b060, 0xc000040430, 0x2f7b060, 0xc000040430)
/home/circleci/project/project/configs/named_values.go:362 +0x8d2
github.com/hashicorp/terraform/configs.decodeVariableBlock(0xc0003971e0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/circleci/project/project/configs/named_values.go:128 +0x4a8
github.com/hashicorp/terraform/configs.(*Parser).loadConfigFile(0xc00008cb00, 0xc000418409, 0x7, 0x0, 0x0, 0x0, 0x0, 0x1)
/home/circleci/project/project/configs/parser_config.go:112 +0xdc2
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigFile(...)
/home/circleci/project/project/configs/parser_config.go:22
github.com/hashicorp/terraform/configs.(*Parser).loadFiles(0xc00008cb00, 0xc00020cd60, 0x1, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/home/circleci/project/project/configs/parser_config_dir.go:77 +0x342
github.com/hashicorp/terraform/configs.(*Parser).LoadConfigDir(0xc00008cb00, 0x2a59785, 0x1, 0x12, 0xc00063f830, 0x24d6265, 0xc00063f7f8)
/home/circleci/project/project/configs/parser_config_dir.go:37 +0x121
github.com/hashicorp/terraform/configs/configload.(*Loader).LoadConfig(0xc00007cc30, 0x2a59785, 0x1, 0x0, 0x1, 0xc000000000, 0xffffffffffffffff)
/home/circleci/project/project/configs/configload/loader_load.go:22 +0x5d
github.com/hashicorp/terraform/command.(*Meta).loadConfig(0xc0000bb880, 0x2a59785, 0x1, 0x0, 0xc000000000, 0x0, 0x2f378e0)
/home/circleci/project/project/command/meta_config.go:66 +0x132
github.com/hashicorp/terraform/command.(*ValidateCommand).validate(0xc0000bb880, 0xc000046140, 0x41, 0x0, 0x0, 0x0)
/home/circleci/project/project/command/validate.go:88 +0x5f
github.com/hashicorp/terraform/command.(*ValidateCommand).Run(0xc0000bb880, 0xc00000c0b0, 0x0, 0x0, 0xc00020c530)
/home/circleci/project/project/command/validate.go:79 +0x666
github.com/mitchellh/cli.(*CLI).Run(0xc00013c640, 0xc00013c640, 0xc00063fd48, 0x1)
/home/circleci/project/project/vendor/github.com/mitchellh/cli/cli.go:255 +0x1da
main.wrappedMain(0x0)
/home/circleci/project/project/main.go:275 +0xc90
main.realMain(0x0)
/home/circleci/project/project/main.go:106 +0xde
main.main()
/home/circleci/project/project/main.go:42 +0x3a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment