Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrafrom Crashed when creating AzureRM web app #12613

Closed
tazfu42 opened this issue Jul 15, 2021 · 3 comments
Closed

Terrafrom Crashed when creating AzureRM web app #12613

tazfu42 opened this issue Jul 15, 2021 · 3 comments

Comments

@tazfu42
Copy link

tazfu42 commented Jul 15, 2021

Code and trace below. This code has previously run, so I do not think it a persistent problem. At a guess a problem with azure state.

It has happened 3 times now on CI (azure devops) but not running locally.

Terraform v0.13.2

  • provider registry.terraform.io/hashicorp/azurerm v2.63.0

Configure the Microsoft Azure Provider
provider "azurerm" {
features {}
}

#Create Azure Resource Group
resource "azurerm_resource_group" "AutoConference-RG" {
for_each = local.conferences
name = each.key
location = "West Europe"
tags = {
tier = each.value.tier
size = each.value.size
}
}

#Create Azure App Service Plan
resource "azurerm_app_service_plan" "AutoConference-ASP" {
for_each = azurerm_resource_group.AutoConference-RG
name = each.value.name
location = "West Europe"
resource_group_name = each.value.name
kind = "Windows"

sku {
tier = each.value.tags.tier
size = each.value.tags.size
}
}

#Create Azure App Service
resource "azurerm_app_service" "AutoConference-AS" {
for_each = azurerm_app_service_plan.AutoConference-ASP
depends_on = [azurerm_app_service_plan.AutoConference-ASP]

name = each.value.name
location = each.value.location
resource_group_name = each.value.name
app_service_plan_id = each.value.id
tags = {
"Acceptance" = "Test"
}

site_config {
dotnet_framework_version = "v5.0"
always_on = false
use_32_bit_worker_process = false
default_documents = []
}

app_settings = {
manual_integration = true
}

connection_string {
name = "AsecConn"
type = "SQLServer"
value = "Server=${each.value.name}.database.windows.net,1433; Database=Asec;User ID=xxxxxxxx;Password=xxxxxxxxxx;Trusted_Connection=False;Encrypt=True;"
}

connection_string {
name = "GrvRmsConn"
type = "SQLServer"
value = "Server=${each.value.name}.database.windows.net,1433; Database=GrvRms;User ID=xxxxxxx;Password=xxxxxxxxxxx;Trusted_Connection=False;Encrypt=True;"
}
}

#Create Azure SQL Server
resource "azurerm_sql_server" "test" {
for_each = azurerm_resource_group.AutoConference-RG
name = each.value.name
resource_group_name = each.value.name
location = each.value.location
version = "12.0"
administrator_login = "xxxxxxxx"
administrator_login_password = "xxxxxxx"
}

#Create Azure SQL Database
resource "azurerm_sql_database" "Asec" {
for_each = azurerm_sql_server.test
name = "Asec"
resource_group_name = each.value.name
location = each.value.location
server_name = each.value.name
requested_service_objective_name = "S0"

tags = {
environment = "production"
}
}

#Create Azure SQL Database
resource "azurerm_sql_database" "GrvRms" {
for_each = azurerm_sql_server.test
name = "GrvRms"
resource_group_name = each.value.name
location = each.value.location
server_name = each.value.name
requested_service_objective_name = "S0"

tags = {
environment = "production"
}
}

resource "azurerm_app_service_custom_hostname_binding" "appsvc" {
for_each = azurerm_app_service.AutoConference-AS
hostname = "${each.value.name}.jort.co.uk"
app_service_name = each.value.name
resource_group_name = each.value.name
#ssl_state = "SniEnabled"
#thumbprint = azurerm_app_service_certificate.foo.thumbprint
}

2021-07-15T19:44:57.1769044Z �[0m�[1mazurerm_resource_group.AutoConference-RG["jortytestyb"]: Creating...�[0m�[0m
2021-07-15T19:44:57.1771076Z �[0m�[1mazurerm_resource_group.AutoConference-RG["jortytestya"]: Creating...�[0m�[0m
2021-07-15T19:44:57.5392440Z �[0m�[1mazurerm_resource_group.AutoConference-RG["jortytestyb"]: Creation complete after 1s [id=/subscriptions/be4455db-bf41-4de0-9b0c-5703f7bbe8f0/resourceGroups/jortytestyb]�[0m�[0m
2021-07-15T19:44:57.5438170Z �[0m�[1mazurerm_resource_group.AutoConference-RG["jortytestya"]: Creation complete after 1s [id=/subscriptions/be4455db-bf41-4de0-9b0c-5703f7bbe8f0/resourceGroups/jortytestya]�[0m�[0m
2021-07-15T19:44:57.5862888Z �[0m�[1mazurerm_sql_database.Asec["jortytestyb"]: Creating...�[0m�[0m
2021-07-15T19:44:57.5864061Z �[0m�[1mazurerm_sql_database.GrvRms["jortytestya"]: Creating...�[0m�[0m
2021-07-15T19:44:57.5910498Z �[0m�[1mazurerm_sql_database.GrvRms["jortytestyb"]: Creating...�[0m�[0m
2021-07-15T19:44:57.5911112Z �[0m�[1mazurerm_app_service.AutoConference-AS["jortytestyb"]: Creating...�[0m�[0m
2021-07-15T19:44:57.5955839Z �[0m�[1mazurerm_sql_database.Asec["jortytestya"]: Creating...�[0m�[0m
2021-07-15T19:44:57.5956739Z �[0m�[1mazurerm_app_service.AutoConference-AS["jortytestya"]: Creating...�[0m�[0m
2021-07-15T19:44:57.8201183Z �[31m
2021-07-15T19:44:57.8201861Z �[1m�[31mError: �[0m�[0m�[1mrpc error: code = Unavailable desc = transport is closing�[0m
2021-07-15T19:44:57.8203234Z
2021-07-15T19:44:57.8203624Z �[0m�[0m�[0m
2021-07-15T19:44:57.8206556Z �[31m
2021-07-15T19:44:57.8207100Z �[1m�[31mError: �[0m�[0m�[1mrpc error: code = Unavailable desc = transport is closing�[0m
2021-07-15T19:44:57.8207488Z
2021-07-15T19:44:57.8207871Z �[0m�[0m�[0m
2021-07-15T19:44:57.8208161Z �[31m
2021-07-15T19:44:57.8208579Z �[1m�[31mError: �[0m�[0m�[1mrpc error: code = Unavailable desc = transport is closing�[0m
2021-07-15T19:44:57.8208875Z
2021-07-15T19:44:57.8210530Z �[0m�[0m�[0m
2021-07-15T19:44:57.8210908Z �[31m
2021-07-15T19:44:57.8211556Z �[1m�[31mError: �[0m�[0m�[1mrpc error: code = Unavailable desc = transport is closing�[0m
2021-07-15T19:44:57.8211912Z
2021-07-15T19:44:57.8212272Z �[0m�[0m�[0m
2021-07-15T19:44:57.8212642Z �[31m
2021-07-15T19:44:57.8213633Z �[1m�[31mError: �[0m�[0m�[1mrpc error: code = Unavailable desc = transport is closing�[0m
2021-07-15T19:44:57.8214546Z
2021-07-15T19:44:57.8230656Z �[0m�[0m�[0m
2021-07-15T19:44:57.8231161Z �[31m
2021-07-15T19:44:57.8231521Z �[1m�[31mError: �[0m�[0m�[1mrpc error: code = Unavailable desc = transport is closing�[0m
2021-07-15T19:44:57.8231745Z
2021-07-15T19:44:57.8232000Z �[0m�[0m�[0m
2021-07-15T19:44:57.8382267Z panic: runtime error: invalid memory address or nil pointer dereference
2021-07-15T19:44:57.8382870Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: [signal 0xc0000005 code=0x0 addr=0x20 pc=0x5c6e12f]
2021-07-15T19:44:57.8383486Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe:
2021-07-15T19:44:57.8384037Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: goroutine 189 [running]:
2021-07-15T19:44:57.8384832Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.resourceAppServiceCreate(0xc0021f1180, 0x603da40, 0xc000ac6e00, 0x0, 0x0)
2021-07-15T19:44:57.8386248Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web/app_service_resource.go:242 +0x60f
2021-07-15T19:44:57.8387732Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000a7c5a0, 0xc00230f130, 0xc002330d00, 0x603da40, 0xc000ac6e00, 0x606ae01, 0xc002594e18, 0xc0025a8690)
2021-07-15T19:44:57.8389386Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource.go:320 +0x395
2021-07-15T19:44:57.8390575Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc0001c2c80, 0xc001a27a38, 0xc00230f130, 0xc002330d00, 0xc002595380, 0xc002586350, 0x606d3e0)
2021-07-15T19:44:57.8391593Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /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 +0xa5
2021-07-15T19:44:57.8393181Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc000006430, 0x6f38750, 0xc002332990, 0xc0021f0cb0, 0xc000006430, 0xc002332990, 0xc001a1bba0)
2021-07-15T19:44:57.8394389Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /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:895 +0x8c5
2021-07-15T19:44:57.8395661Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x6524300, 0xc000006430, 0x6f38750, 0xc002332990, 0xc000ac0c00, 0x0, 0x6f38750, 0xc002332990, 0xc002348000, 0xd30)
2021-07-15T19:44:57.8397071Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /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:3305 +0x222
2021-07-15T19:44:57.8398401Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: google.golang.org/grpc.(*Server).processUnaryRPC(0xc0005368c0, 0x6f80338, 0xc000159c80, 0xc000097a00, 0xc000acc960, 0xa392960, 0x0, 0x0, 0x0)
2021-07-15T19:44:57.8399330Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:1194 +0x52b
2021-07-15T19:44:57.8400210Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: google.golang.org/grpc.(*Server).handleStream(0xc0005368c0, 0x6f80338, 0xc000159c80, 0xc000097a00, 0x0)
2021-07-15T19:44:57.8401088Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:1517 +0xd0c
2021-07-15T19:44:57.8401969Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0010b12c0, 0xc0005368c0, 0x6f80338, 0xc000159c80, 0xc000097a00)
2021-07-15T19:44:57.8402864Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:859 +0xb2
2021-07-15T19:44:57.8403676Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: created by google.golang.org/grpc.(*Server).serveStreams.func1
2021-07-15T19:44:57.8404663Z 2021-07-15T19:44:57.806Z [DEBUG] plugin.terraform-provider-azurerm_v2.63.0_x5.exe: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/google.golang.org/grpc/server.go:857 +0x1fd
2021-07-15T19:44:57.8405661Z 2021/07/15 19:44:57 [DEBUG] azurerm_sql_database.GrvRms["jortytestya"]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8406362Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8406934Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.GrvRms["jortytestya"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8407521Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8408115Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.GrvRms["jortytestya"]
2021-07-15T19:44:57.8408601Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyProvisioners
2021-07-15T19:44:57.8409147Z 2021/07/15 19:44:57 [TRACE] EvalApplyProvisioners: azurerm_sql_database.GrvRms["jortytestya"] has no state, so skipping provisioners
2021-07-15T19:44:57.8409752Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8410300Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.GrvRms["jortytestya"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8411977Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8412575Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.GrvRms["jortytestya"]
2021-07-15T19:44:57.8413094Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8413532Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8413989Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteDiff
2021-07-15T19:44:57.8414424Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyPost
2021-07-15T19:44:57.8415013Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8416075Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8416693Z 2021/07/15 19:44:57 [TRACE] [walkApply] Exiting eval tree: azurerm_sql_database.GrvRms["jortytestya"]
2021-07-15T19:44:57.8417500Z 2021/07/15 19:44:57 [TRACE] vertex "azurerm_sql_database.GrvRms["jortytestya"]": visit complete
2021-07-15T19:44:57.8418241Z 2021/07/15 19:44:57 [DEBUG] azurerm_sql_database.GrvRms["jortytestyb"]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8418930Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8419483Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.GrvRms["jortytestyb"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8420011Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8420498Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.GrvRms["jortytestyb"]
2021-07-15T19:44:57.8421199Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyProvisioners
2021-07-15T19:44:57.8421727Z 2021/07/15 19:44:57 [TRACE] EvalApplyProvisioners: azurerm_sql_database.GrvRms["jortytestyb"] has no state, so skipping provisioners
2021-07-15T19:44:57.8422274Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8422827Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.GrvRms["jortytestyb"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8423394Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8423892Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.GrvRms["jortytestyb"]
2021-07-15T19:44:57.8424357Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8424752Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8425153Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteDiff
2021-07-15T19:44:57.8425541Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyPost
2021-07-15T19:44:57.8426067Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8426679Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8427404Z 2021/07/15 19:44:57 [TRACE] [walkApply] Exiting eval tree: azurerm_sql_database.GrvRms["jortytestyb"]
2021-07-15T19:44:57.8428114Z 2021/07/15 19:44:57 [TRACE] vertex "azurerm_sql_database.GrvRms["jortytestyb"]": visit complete
2021-07-15T19:44:57.8428899Z 2021/07/15 19:44:57 [DEBUG] azurerm_app_service.AutoConference-AS["jortytestyb"]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8429691Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8430281Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_app_service.AutoConference-AS["jortytestyb"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8430839Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8431355Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_app_service.AutoConference-AS["jortytestyb"]
2021-07-15T19:44:57.8431882Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyProvisioners
2021-07-15T19:44:57.8432428Z 2021/07/15 19:44:57 [TRACE] EvalApplyProvisioners: azurerm_app_service.AutoConference-AS["jortytestyb"] has no state, so skipping provisioners
2021-07-15T19:44:57.8433143Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8433716Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_app_service.AutoConference-AS["jortytestyb"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8434254Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8434753Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_app_service.AutoConference-AS["jortytestyb"]
2021-07-15T19:44:57.8435451Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8435848Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8436254Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteDiff
2021-07-15T19:44:57.8436643Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyPost
2021-07-15T19:44:57.8437371Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8438015Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8438590Z 2021/07/15 19:44:57 [TRACE] [walkApply] Exiting eval tree: azurerm_app_service.AutoConference-AS["jortytestyb"]
2021-07-15T19:44:57.8439176Z 2021/07/15 19:44:57 [TRACE] vertex "azurerm_app_service.AutoConference-AS["jortytestyb"]": visit complete
2021-07-15T19:44:57.8439802Z 2021-07-15T19:44:57.808Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-07-15T19:44:57.8440634Z 2021/07/15 19:44:57 [DEBUG] azurerm_sql_database.Asec["jortytestyb"]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8441318Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8441848Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.Asec["jortytestyb"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8442396Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8442884Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.Asec["jortytestyb"]
2021-07-15T19:44:57.8443494Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyProvisioners
2021-07-15T19:44:57.8444033Z 2021/07/15 19:44:57 [TRACE] EvalApplyProvisioners: azurerm_sql_database.Asec["jortytestyb"] has no state, so skipping provisioners
2021-07-15T19:44:57.8444549Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8445080Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.Asec["jortytestyb"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8446252Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8446751Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.Asec["jortytestyb"]
2021-07-15T19:44:57.8447494Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8447909Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8448275Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteDiff
2021-07-15T19:44:57.8448676Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyPost
2021-07-15T19:44:57.8449188Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8449780Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8450359Z 2021/07/15 19:44:57 [TRACE] [walkApply] Exiting eval tree: azurerm_sql_database.Asec["jortytestyb"]
2021-07-15T19:44:57.8451078Z 2021/07/15 19:44:57 [TRACE] vertex "azurerm_sql_database.Asec["jortytestyb"]": visit complete
2021-07-15T19:44:57.8451788Z 2021/07/15 19:44:57 [DEBUG] azurerm_sql_database.Asec["jortytestya"]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8452450Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8452984Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.Asec["jortytestya"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8453486Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8454402Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.Asec["jortytestya"]
2021-07-15T19:44:57.8454887Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyProvisioners
2021-07-15T19:44:57.8455438Z 2021/07/15 19:44:57 [TRACE] EvalApplyProvisioners: azurerm_sql_database.Asec["jortytestya"] has no state, so skipping provisioners
2021-07-15T19:44:57.8456166Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8456940Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_sql_database.Asec["jortytestya"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8458031Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8458515Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_sql_database.Asec["jortytestya"]
2021-07-15T19:44:57.8459120Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8459660Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8460020Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteDiff
2021-07-15T19:44:57.8460419Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyPost
2021-07-15T19:44:57.8461086Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8461658Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8462218Z 2021/07/15 19:44:57 [TRACE] [walkApply] Exiting eval tree: azurerm_sql_database.Asec["jortytestya"]
2021-07-15T19:44:57.8462742Z 2021/07/15 19:44:57 [TRACE] vertex "azurerm_sql_database.Asec["jortytestya"]": visit complete
2021-07-15T19:44:57.8463666Z 2021/07/15 19:44:57 [DEBUG] azurerm_app_service.AutoConference-AS["jortytestya"]: apply errored, but we're indicating that via the Error pointer rather than returning it: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8464699Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8465268Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_app_service.AutoConference-AS["jortytestya"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8465888Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8466521Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_app_service.AutoConference-AS["jortytestya"]
2021-07-15T19:44:57.8467234Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyProvisioners
2021-07-15T19:44:57.8467767Z 2021/07/15 19:44:57 [TRACE] EvalApplyProvisioners: azurerm_app_service.AutoConference-AS["jortytestya"] has no state, so skipping provisioners
2021-07-15T19:44:57.8468521Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalMaybeTainted
2021-07-15T19:44:57.8469374Z 2021/07/15 19:44:57 [TRACE] EvalMaybeTainted: azurerm_app_service.AutoConference-AS["jortytestya"] encountered an error during creation, so it is now marked as tainted
2021-07-15T19:44:57.8470297Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteState
2021-07-15T19:44:57.8471095Z 2021/07/15 19:44:57 [TRACE] EvalWriteState: removing state object for azurerm_app_service.AutoConference-AS["jortytestya"]
2021-07-15T19:44:57.8472065Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8472653Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalIf
2021-07-15T19:44:57.8473673Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalWriteDiff
2021-07-15T19:44:57.8474631Z 2021/07/15 19:44:57 [TRACE] eval: *terraform.EvalApplyPost
2021-07-15T19:44:57.8475473Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalApplyPost, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8476377Z 2021/07/15 19:44:57 [ERROR] eval: *terraform.EvalSequence, err: rpc error: code = Unavailable desc = transport is closing
2021-07-15T19:44:57.8477332Z 2021/07/15 19:44:57 [TRACE] [walkApply] Exiting eval tree: azurerm_app_service.AutoConference-AS["jortytestya"]
2021-07-15T19:44:57.8478711Z 2021/07/15 19:44:57 [TRACE] vertex "azurerm_app_service.AutoConference-AS["jortytestya"]": visit complete
2021-07-15T19:44:57.8479614Z 2021/07/15 19:44:57 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2021-07-15T19:44:57.8480496Z 2021/07/15 19:44:57 [TRACE] dag/walk: upstream of "provider["registry.terraform.io/hashicorp/azurerm"] (close)" errored, so skipping
2021-07-15T19:44:57.8481413Z 2021/07/15 19:44:57 [TRACE] dag/walk: upstream of "root" errored, so skipping
2021-07-15T19:44:57.8482257Z 2021/07/15 19:44:57 [TRACE] statemgr.Filesystem: have already backed up original terraform.tfstate to terraform.tfstate.backup on a previous write
2021-07-15T19:44:57.8483242Z 2021/07/15 19:44:57 [TRACE] statemgr.Filesystem: state has changed since last snapshot, so incrementing serial to 131
2021-07-15T19:44:57.8484146Z 2021/07/15 19:44:57 [TRACE] statemgr.Filesystem: writing snapshot at terraform.tfstate
2021-07-15T19:44:57.8485003Z 2021/07/15 19:44:57 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2021-07-15T19:44:57.8485652Z 2021/07/15 19:44:57 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate
2021-07-15T19:44:57.8486385Z 2021-07-15T19:44:57.823Z [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/azurerm/2.63.0/windows_amd64/terraform-provider-azurerm_v2.63.0_x5.exe pid=1412 error="exit status 2"
2021-07-15T19:44:57.8487095Z 2021-07-15T19:44:57.823Z [DEBUG] plugin: plugin exited
2021-07-15T19:44:57.8487303Z
2021-07-15T19:44:57.8487421Z
2021-07-15T19:44:57.8488056Z
2021-07-15T19:44:57.8488492Z !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
2021-07-15T19:44:57.8488683Z
2021-07-15T19:44:57.8489030Z Terraform crashed! This is always indicative of a bug within Terraform.
2021-07-15T19:44:57.8489583Z A crash log has been placed at "crash.log" relative to your current
2021-07-15T19:44:57.8506145Z working directory. It would be immensely helpful if you could please
2021-07-15T19:44:57.8506972Z report the crash with Terraform[1] so that we can fix this.
2021-07-15T19:44:57.8508270Z
2021-07-15T19:44:57.8508880Z When reporting bugs, please include your terraform version. That
2021-07-15T19:44:57.8509691Z information is available on the first line of crash.log. You can also
2021-07-15T19:44:57.8510188Z get it by running 'terraform --version' on the command line.
2021-07-15T19:44:57.8511079Z
2021-07-15T19:44:57.8511515Z SECURITY WARNING: the "crash.log" file that was created may contain
2021-07-15T19:44:57.8513159Z sensitive information that must be redacted before it is safe to share
2021-07-15T19:44:57.8531610Z on the issue tracker.
2021-07-15T19:44:57.8531952Z
2021-07-15T19:44:57.8532720Z [1]: https://github.com/hashicorp/terraform/issues
2021-07-15T19:44:57.8532995Z
2021-07-15T19:44:57.8533739Z !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

@tazfu42
Copy link
Author

tazfu42 commented Jul 17, 2021

Hey everyone. This error went away when I upgraded everything (including devops task) to terraform 1.0.2.

@tombuildsstuff
Copy link
Contributor

Fixed via #12518

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants