Skip to content

Instantly share code, notes, and snippets.

@mrf
Created October 29, 2019 19:03
Show Gist options
  • Save mrf/6df57959699e294ec44b90e2a410f13c to your computer and use it in GitHub Desktop.
Save mrf/6df57959699e294ec44b90e2a410f13c to your computer and use it in GitHub Desktop.
aws_cloudfront_distribution.s3_distribution: Creating...
Error: rpc error: code = Unavailable desc = transport is closing
panic: interface conversion: interface {} is nil, not map[string]interface {}
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4:
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: goroutine 216 [running]:
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.expandRestrictions(...)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/cloudfront_distribution_configuration_structure.go:1027
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.expandDistributionConfig(0xc00027c230, 0x102cb41)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/cloudfront_distribution_configuration_structure.go:65 +0xc8a
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsCloudFrontDistributionCreate(0xc00027c230, 0x4861a60, 0xc0004cbb00, 0x2, 0x8a51ee0)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudfront_distribution.go:750 +0x6c
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc00021cd00, 0xc000aa94f0, 0xc0008019e0, 0x4861a60, 0xc0004cbb00, 0xc000ccac01, 0xc000cd4450, 0xc000ccac78)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/helper/schema/resource.go:305 +0x365
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc0006cf900, 0xc00079b918, 0xc000aa94f0, 0xc0008019e0, 0xc000cb73a8, 0xc0000aece0, 0x4da17a0)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/helper/schema/provider.go:294 +0x99
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc0000b4e38, 0x6092ca0, 0xc000ad3fb0, 0xc000cc3aa0, 0xc0000b4e38, 0xc000ad3fb0, 0xc00096ea80)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/internal/helper/plugin/grpc_provider.go:885 +0x882
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x56ec9c0, 0xc0000b4e38, 0x6092ca0, 0xc000ad3fb0, 0xc000cc3a40, 0x0, 0x6092ca0, 0xc000ad3fb0, 0xc000c64000, 0xa04)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/internal/tfplugin5/tfplugin5.pb.go:3189 +0x217
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000de000, 0x60b1f60, 0xc00053e900, 0xc000bba900, 0xc0006c7b60, 0x8a24780, 0x0, 0x0, 0x0)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:995 +0x460
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: google.golang.org/grpc.(*Server).handleStream(0xc0000de000, 0x60b1f60, 0xc00053e900, 0xc000bba900, 0x0)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:1275 +0xd97
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc00013e120, 0xc0000de000, 0x60b1f60, 0xc00053e900, 0xc000bba900)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:710 +0xbb
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: created by google.golang.org/grpc.(*Server).serveStreams.func1
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:708 +0xa1
2019-10-29T11:59:55.310-0700 [DEBUG] plugin: plugin process exited: path=/Users/mferree/Projects/scratch/cloudfront-bug-poc/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.33.0_x4 pid=88080 error="exit status 2"
2019/10/29 11:59:55 [DEBUG] aws_cloudfront_distribution.s3_distribution: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2019/10/29 11:59:55 [TRACE] EvalMaybeTainted: aws_cloudfront_distribution.s3_distribution encountered an error during creation, so it is now marked as tainted
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/10/29 11:59:55 [TRACE] EvalWriteState: removing state object for aws_cloudfront_distribution.s3_distribution
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalApplyProvisioners
2019/10/29 11:59:55 [TRACE] EvalApplyProvisioners: aws_cloudfront_distribution.s3_distribution has no state, so skipping provisioners
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2019/10/29 11:59:55 [TRACE] EvalMaybeTainted: aws_cloudfront_distribution.s3_distribution encountered an error during creation, so it is now marked as tainted
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/10/29 11:59:55 [TRACE] EvalWriteState: removing state object for aws_cloudfront_distribution.s3_distribution
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalIf
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalIf
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalWriteDiff
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalApplyPost
2019/10/29 11:59:55 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2019/10/29 11:59:55 [ERROR] <root>: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2019/10/29 11:59:55 [TRACE] [walkApply] Exiting eval tree: aws_cloudfront_distribution.s3_distribution
2019/10/29 11:59:55 [TRACE] vertex "aws_cloudfront_distribution.s3_distribution": visit complete
2019/10/29 11:59:55 [TRACE] dag/walk: upstream of "provider.aws (close)" errored, so skipping
2019/10/29 11:59:55 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2019/10/29 11:59:55 [TRACE] dag/walk: upstream of "root" errored, so skipping
2019/10/29 11:59:55 [TRACE] statemgr.Filesystem: have already backed up original terraform.tfstate to terraform.tfstate.backup on a previous write
2019/10/29 11:59:55 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 50
2019/10/29 11:59:55 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2019/10/29 11:59:55 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2019/10/29 11:59:55 [TRACE] statemgr.Filesystem: unlocking terraform.tfstate using fcntl flock
2019-10-29T11:59:55.321-0700 [DEBUG] plugin: plugin exited
panic: interface conversion: interface {} is nil, not map[string]interface {}
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4:
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: goroutine 216 [running]:
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.expandRestrictions(...)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/cloudfront_distribution_configuration_structure.go:1027
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.expandDistributionConfig(0xc00027c230, 0x102cb41)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/cloudfront_distribution_configuration_structure.go:65 +0xc8a
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsCloudFrontDistributionCreate(0xc00027c230, 0x4861a60, 0xc0004cbb00, 0x2, 0x8a51ee0)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_cloudfront_distribution.go:750 +0x6c
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc00021cd00, 0xc000aa94f0, 0xc0008019e0, 0x4861a60, 0xc0004cbb00, 0xc000ccac01, 0xc000cd4450, 0xc000ccac78)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/helper/schema/resource.go:305 +0x365
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc0006cf900, 0xc00079b918, 0xc000aa94f0, 0xc0008019e0, 0xc000cb73a8, 0xc0000aece0, 0x4da17a0)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/helper/schema/provider.go:294 +0x99
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc0000b4e38, 0x6092ca0, 0xc000ad3fb0, 0xc000cc3aa0, 0xc0000b4e38, 0xc000ad3fb0, 0xc00096ea80)
2019-10-29T11:59:55.304-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/internal/helper/plugin/grpc_provider.go:885 +0x882
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x56ec9c0, 0xc0000b4e38, 0x6092ca0, 0xc000ad3fb0, 0xc000cc3a40, 0x0, 0x6092ca0, 0xc000ad3fb0, 0xc000c64000, 0xa04)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.1.1/internal/tfplugin5/tfplugin5.pb.go:3189 +0x217
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000de000, 0x60b1f60, 0xc00053e900, 0xc000bba900, 0xc0006c7b60, 0x8a24780, 0x0, 0x0, 0x0)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:995 +0x460
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: google.golang.org/grpc.(*Server).handleStream(0xc0000de000, 0x60b1f60, 0xc00053e900, 0xc000bba900, 0x0)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:1275 +0xd97
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc00013e120, 0xc0000de000, 0x60b1f60, 0xc00053e900, 0xc000bba900)
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:710 +0xbb
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: created by google.golang.org/grpc.(*Server).serveStreams.func1
2019-10-29T11:59:55.305-0700 [DEBUG] plugin.terraform-provider-aws_v2.33.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.23.0/server.go:708 +0xa1
2019-10-29T11:59:55.310-0700 [DEBUG] plugin: plugin process exited: path=/Users/mferree/Projects/scratch/cloudfront-bug-poc/.terraform/plugins/darwin_amd64/terraform-provider-aws_v2.33.0_x4 pid=88080 error="exit status 2"
2019/10/29 11:59:55 [DEBUG] aws_cloudfront_distribution.s3_distribution: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2019/10/29 11:59:55 [TRACE] EvalMaybeTainted: aws_cloudfront_distribution.s3_distribution encountered an error during creation, so it is now marked as tainted
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/10/29 11:59:55 [TRACE] EvalWriteState: removing state object for aws_cloudfront_distribution.s3_distribution
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalApplyProvisioners
2019/10/29 11:59:55 [TRACE] EvalApplyProvisioners: aws_cloudfront_distribution.s3_distribution has no state, so skipping provisioners
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalMaybeTainted
2019/10/29 11:59:55 [TRACE] EvalMaybeTainted: aws_cloudfront_distribution.s3_distribution encountered an error during creation, so it is now marked as tainted
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/10/29 11:59:55 [TRACE] EvalWriteState: removing state object for aws_cloudfront_distribution.s3_distribution
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalIf
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalIf
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalWriteDiff
2019/10/29 11:59:55 [TRACE] <root>: eval: *terraform.EvalApplyPost
2019/10/29 11:59:55 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2019/10/29 11:59:55 [ERROR] <root>: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2019/10/29 11:59:55 [TRACE] [walkApply] Exiting eval tree: aws_cloudfront_distribution.s3_distribution
2019/10/29 11:59:55 [TRACE] vertex "aws_cloudfront_distribution.s3_distribution": visit complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment