Skip to content

Instantly share code, notes, and snippets.

@kirk-marple
Last active May 31, 2020 02:47
Show Gist options
  • Save kirk-marple/12c844ec9e436f4763c8eff788880bd1 to your computer and use it in GitHub Desktop.
Save kirk-marple/12c844ec9e436f4763c8eff788880bd1 to your computer and use it in GitHub Desktop.
Terraform Event Grid Subscription failure
2020-05-31T02:42:09.9584016Z ##[section]Starting: terraform apply
2020-05-31T02:42:09.9605435Z ==============================================================================
2020-05-31T02:42:09.9606085Z Task : Terraform CLI
2020-05-31T02:42:09.9606609Z Description : Execute terraform cli commands
2020-05-31T02:42:09.9607137Z Version : 0.5.12
2020-05-31T02:42:09.9607584Z Author : Charles Zipp
2020-05-31T02:42:09.9608021Z Help :
2020-05-31T02:42:09.9608572Z ==============================================================================
2020-05-31T02:42:10.3669325Z [command]/opt/hostedtoolcache/terraform/0.12.26/x64/terraform version
2020-05-31T02:42:10.4850753Z Terraform v0.12.26
2020-05-31T02:42:10.9852008Z + provider.azurerm v2.12.0
2020-05-31T02:42:10.9855813Z + provider.random v2.2.1
2020-05-31T02:42:10.9867219Z
2020-05-31T02:42:10.9984182Z [command]/opt/hostedtoolcache/terraform/0.12.26/x64/terraform apply -auto-approve -var environment_name=development
2020-05-31T02:42:11.7570248Z Acquiring state lock. This may take a few moments...
2020-05-31T02:42:13.5085367Z module.functions_key.random_uuid.random: Refreshing state... [id=059fe98c-2f35-49d2-0685-b200ad5e599b]
2020-05-31T02:42:15.5605232Z azurerm_eventgrid_domain_topic.topic: Refreshing state... [id=/redacted/providers/Microsoft.EventGrid/domains/redacted/topics/actions]
2020-05-31T02:42:15.5692555Z module.functions_key.azurerm_template_deployment.function_keys: Refreshing state... [id=/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.Resources/deployments/function-keys-059fe98c-2f35-49d2-0685-b200ad5e599b]
2020-05-31T02:42:16.0583006Z module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription: Refreshing state... [id=/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.EventGrid/domains/redacted/topics/actions/providers/Microsoft.EventGrid/eventSubscriptions/redacted-subscription-NotifyIntegrations]
2020-05-31T02:42:22.0613038Z module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription: Modifying... [id=/subscriptions/redacted/resourceGroups/redacted/providers/Microsoft.EventGrid/domains/redacted/topics/actions/providers/Microsoft.EventGrid/eventSubscriptions/redacted-subscription-NotifyIntegrations]
2020-05-31T02:42:22.0674520Z 
2020-05-31T02:42:22.0675628Z Error: rpc error: code = Unavailable desc = transport is closing
2020-05-31T02:42:22.0676215Z
2020-05-31T02:42:22.0691010Z 
2020-05-31T02:42:22.3376660Z panic: interface conversion: interface {} is nil, not map[string]interface {}
2020-05-31T02:42:22.3378229Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5:
2020-05-31T02:42:22.3379213Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: goroutine 82 [running]:
2020-05-31T02:42:22.3381336Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/eventgrid.expandEventGridEventSubscriptionFilter(0xc0008157a0, 0x4ab99e0)
2020-05-31T02:42:22.3383518Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/eventgrid/eventgrid_event_subscription_resource.go:616 +0x39a
2020-05-31T02:42:22.3385321Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/eventgrid.resourceArmEventGridEventSubscriptionCreateUpdate(0xc0008157a0, 0x3ca0460, 0xc0007ea000, 0x0, 0x0)
2020-05-31T02:42:22.3387483Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/eventgrid/eventgrid_event_subscription_resource.go:309 +0x1d5
2020-05-31T02:42:22.3389553Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc0003e8100, 0xc000c4a6e0, 0xc000dc55c0, 0x3ca0460, 0xc0007ea000, 0x3cc5901, 0xc000ce5760, 0xc000978e40)
2020-05-31T02:42:22.3391578Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:311 +0x263
2020-05-31T02:42:22.3393353Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000a96880, 0xc000ce58e0, 0xc000c4a6e0, 0xc000dc55c0, 0xc000dfc3e8, 0xc00000f430, 0x3cc7c00)
2020-05-31T02:42:22.3395282Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/provider.go:294 +0x99
2020-05-31T02:42:22.3398743Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc0000c5288, 0x4a7fe20, 0xc0009346f0, 0xc000d054a0, 0xc0000c5288, 0xc0009346f0, 0xc000d0da48)
2020-05-31T02:42:22.3400754Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin/grpc_provider.go:885 +0x882
2020-05-31T02:42:22.3406078Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x4063520, 0xc0000c5288, 0x4a7fe20, 0xc0009346f0, 0xc000d05440, 0x0, 0x4a7fe20, 0xc0009346f0, 0xc000db4000, 0xf3c)
2020-05-31T02:42:22.3408158Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5/tfplugin5.pb.go:3189 +0x217
2020-05-31T02:42:22.3409910Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003dc2c0, 0x4abad00, 0xc001140480, 0xc00010e800, 0xc0006ab110, 0x76af760, 0x0, 0x0, 0x0)
2020-05-31T02:42:22.3411684Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:995 +0x460
2020-05-31T02:42:22.3413255Z 2020-05-31T02:42:22.064Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: google.golang.org/grpc.(*Server).handleStream(0xc0003dc2c0, 0x4abad00, 0xc001140480, 0xc00010e800, 0x0)
2020-05-31T02:42:22.3416241Z 2020/05/31 02:42:22 [DEBUG] module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2020-05-31T02:42:22.3417222Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalMaybeTainted
2020-05-31T02:42:22.3417765Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalWriteState
2020-05-31T02:42:22.3418508Z 2020/05/31 02:42:22 [TRACE] EvalWriteState: recording 2 dependencies for module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription
2020-05-31T02:42:22.3419226Z 2020/05/31 02:42:22 [TRACE] EvalWriteState: writing current state object for module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription
2020-05-31T02:42:22.3419956Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalApplyProvisioners
2020-05-31T02:42:22.3420923Z 2020/05/31 02:42:22 [TRACE] EvalApplyProvisioners: azurerm_eventgrid_event_subscription.event_grid_subscription is not freshly-created, so no provisioning is required
2020-05-31T02:42:22.3454851Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalMaybeTainted
2020-05-31T02:42:22.3455491Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalWriteState
2020-05-31T02:42:22.3456172Z 2020/05/31 02:42:22 [TRACE] EvalWriteState: recording 2 dependencies for module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription
2020-05-31T02:42:22.3457018Z 2020/05/31 02:42:22 [TRACE] EvalWriteState: writing current state object for module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription
2020-05-31T02:42:22.3457633Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalIf
2020-05-31T02:42:22.3458148Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalIf
2020-05-31T02:42:22.3458665Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalWriteDiff
2020-05-31T02:42:22.3459190Z 2020/05/31 02:42:22 [TRACE] module.function_event_grid_subscription: eval: *terraform.EvalApplyPost
2020-05-31T02:42:22.3460075Z 2020/05/31 02:42:22 [ERROR] module.function_event_grid_subscription: eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2020-05-31T02:42:22.3460827Z 2020/05/31 02:42:22 [ERROR] module.function_event_grid_subscription: eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2020-05-31T02:42:22.3461542Z 2020/05/31 02:42:22 [TRACE] [walkApply] Exiting eval tree: module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription
2020-05-31T02:42:22.3462255Z 2020/05/31 02:42:22 [TRACE] vertex "module.function_event_grid_subscription.azurerm_eventgrid_event_subscription.event_grid_subscription": visit complete
2020-05-31T02:42:22.3462869Z 2020/05/31 02:42:22 [TRACE] dag/walk: upstream of "provider.azurerm (close)" errored, so skipping
2020-05-31T02:42:22.3464176Z 2020-05-31T02:42:22.066Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:1275 +0xd3d
2020-05-31T02:42:22.3465407Z 2020-05-31T02:42:22.066Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0005e2030, 0xc0003dc2c0, 0x4abad00, 0xc001140480, 0xc00010e800)
2020-05-31T02:42:22.3466630Z 2020-05-31T02:42:22.066Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:710 +0xa1
2020-05-31T02:42:22.3467857Z 2020-05-31T02:42:22.066Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: created by google.golang.org/grpc.(*Server).serveStreams.func1
2020-05-31T02:42:22.3468993Z 2020-05-31T02:42:22.066Z [DEBUG] plugin.terraform-provider-azurerm_v2.12.0_x5: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:708 +0xa1
2020-05-31T02:42:22.3469941Z 2020/05/31 02:42:22 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2020-05-31T02:42:22.3470476Z 2020/05/31 02:42:22 [TRACE] dag/walk: upstream of "root" errored, so skipping
2020-05-31T02:42:22.3471445Z 2020-05-31T02:42:22.067Z [DEBUG] plugin: plugin process exited: path=/home/vsts/work/1/s/terraform/post-deployment/.terraform/plugins/linux_amd64/terraform-provider-azurerm_v2.12.0_x5 pid=3653 error="exit status 2"
2020-05-31T02:42:22.3472239Z 2020-05-31T02:42:22.335Z [DEBUG] plugin: plugin exited
2020-05-31T02:42:22.3472459Z
2020-05-31T02:42:22.3472677Z
2020-05-31T02:42:22.3472783Z
2020-05-31T02:42:22.3473051Z !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020-05-31T02:42:22.3473270Z
2020-05-31T02:42:22.3473542Z Terraform crashed! This is always indicative of a bug within Terraform.
2020-05-31T02:42:22.3473921Z A crash log has been placed at "crash.log" relative to your current
2020-05-31T02:42:22.3474466Z working directory. It would be immensely helpful if you could please
2020-05-31T02:42:22.3474830Z report the crash with Terraform[1] so that we can fix this.
2020-05-31T02:42:22.3475179Z
2020-05-31T02:42:22.3475423Z When reporting bugs, please include your terraform version. That
2020-05-31T02:42:22.3475791Z information is available on the first line of crash.log. You can also
2020-05-31T02:42:22.3476335Z get it by running 'terraform --version' on the command line.
2020-05-31T02:42:22.3476539Z
2020-05-31T02:42:22.3476813Z SECURITY WARNING: the "crash.log" file that was created may contain
2020-05-31T02:42:22.3477200Z sensitive information that must be redacted before it is safe to share
2020-05-31T02:42:22.3477682Z on the issue tracker.
2020-05-31T02:42:22.3477831Z
2020-05-31T02:42:22.3478083Z [1]: https://github.com/hashicorp/terraform/issues
2020-05-31T02:42:22.3478551Z
2020-05-31T02:42:22.3478863Z !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020-05-31T02:42:22.3507024Z
2020-05-31T02:42:22.3603002Z ##[error]Terraform command 'apply' failed with exit code '1'.: rpc error: code = Unavailable desc = transport is closing
2020-05-31T02:42:23.0687032Z ##[section]Finishing: terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment