hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io/
Other
42.6k stars 9.54k forks source link

Terraform Crash #18301

Closed shuqichen closed 6 years ago

shuqichen commented 6 years ago

Terraform Version

C02VVAHYHTD6:prod chenshu$ terraform -v
Terraform v0.11.3
+ provider.archive v1.0.3
+ provider.aws v1.17.0
+ provider.template v1.0.0

Crash Output

aws_s3_bucket.tr_chef_config: Refreshing state... (ID: tr_chef_config_prod) aws_iam_role.tr_web_role: Refreshing state... (ID: tr_web_role) aws_security_group.tr_elb_sg: Refreshing state... (ID: sg-5049b52f) aws_alb_target_group.tr_tg_prod: Refreshing state... (ID: arn:aws:elasticloadbalancing:us-east-1:.../tr-tg-prd-bearhug305/92a2612b8d399fd4) aws_security_group.tr_web_sg: Refreshing state... (ID: sg-4949b536) aws_iam_instance_profile.tr_webIprofile: Refreshing state... (ID: tr_web_Iprofile) aws_alb_listener.http_listener: Refreshing state... (ID: arn:aws:elasticloadbalancing:us-east-1:...-alb/c7cdd068a98d727c/cb5f1ed883e4c4d7)

Error: Error refreshing state: 1 error(s) occurred:

panic: interface conversion: interface {} is nil, not s3.GetBucketCorsOutput 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: goroutine 129 [running]: 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsS3BucketRead(0xc4202483f0, 0x33dae40, 0xc4200b4000, 0xc4202483f0, 0x0) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go:693 +0x5c57 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(Resource).Refresh(0xc42089cd90, 0xc420608730, 0x33dae40, 0xc4200b4000, 0xc4202a1830, 0xc420318701, 0x80000000018) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:354 +0x17e 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema.(Provider).Refresh(0xc4208ff3b0, 0xc4206086e0, 0xc420608730, 0x655e1e8, 0x0, 0x18) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:308 +0x9a 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin.(ResourceProviderServer).Refresh(0xc4208e82a0, 0xc420908820, 0xc420908b20, 0x0, 0x0) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:549 +0x4e 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: reflect.Value.call(0xc420358de0, 0xc42000c420, 0x13, 0x382306c, 0x4, 0xc420351f20, 0x3, 0x3, 0x3, 0x38c74d8, ...) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /usr/local/go/src/reflect/value.go:434 +0x905 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: reflect.Value.Call(0xc420358de0, 0xc42000c420, 0x13, 0xc4208ccf20, 0x3, 0x3, 0x1, 0x1, 0x0) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /usr/local/go/src/reflect/value.go:302 +0xa4 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: net/rpc.(service).call(0xc420342600, 0xc42007a050, 0xc4208f4080, 0xc420386a80, 0xc4208e8820, 0x2ef1ca0, 0xc420908820, 0x16, 0x2ef1ce0, 0xc420908b20, ...) 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /usr/local/go/src/net/rpc/server.go:381 +0x142 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: created by net/rpc.(Server).ServeCodec 2018-06-21T14:49:47.539+0800 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: /usr/local/go/src/net/rpc/server.go:475 +0x36b 2018/06/21 14:49:47 [ERROR] root.s3: eval: terraform.EvalRefresh, err: aws_s3_bucket.tr_chef_config: unexpected EOF 2018/06/21 14:49:47 [ERROR] root.s3: eval: terraform.EvalSequence, err: aws_s3_bucket.tr_chef_config: unexpected EOF 2018/06/21 14:49:47 [TRACE] [walkRefresh] Exiting eval tree: module.s3.aws_s3_bucket.tr_chef_config 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.s3.output.chef_bucket_arn" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.s3.output.chef_bucket_name" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.var.chef_bucket_name" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.data.template_file.web-userdata" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "provider.template (close)" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.aws_launch_configuration.tr_lc_prod" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.output.tr_lc_prod" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.aws_autoscaling_group.tr_asg_prod" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.output.tr_asg_prod" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "module.web3-305.aws_autoscaling_attachment.asg_attachment_prod" 2018-06-21T14:49:47.543+0800 [DEBUG] plugin: plugin process exited: path=/Users/chenshu/Documents/GitHub/tr_service/translation-chef-data/provisioning-vpc/prod/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "provider.aws (close)" 2018/06/21 14:49:47 [TRACE] dag/walk: upstream errored, not walking "root" 2018/06/21 14:49:47 [DEBUG] plugin: waiting for all plugin processes to complete... 2018-06-21T14:49:47.543+0800 [WARN ] plugin: error closing client during Kill: err="connection is shut down" 2018-06-21T14:49:47.546+0800 [DEBUG] plugin: plugin process exited: path=/Users/chenshu/Documents/GitHub/tr_service/translation-chef-data/provisioning-vpc/prod/.terraform/plugins/darwin_amd64/terraform-provider-template_v1.0.0_x4

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

Expected Behavior

success

Actual Behavior

Terraform crash

Steps to Reproduce

  1. terraform init
  2. terraform plan
  3. terraform apply

Crash Output Log

crash.log

ghost commented 6 years ago

This issue has been automatically migrated to terraform-providers/terraform-provider-aws#4913 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-aws#4913.

ghost commented 4 years ago

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.