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

Unexpected EOF after azurerm providers upgrade #449

Closed
rchessa opened this issue Oct 22, 2017 · 4 comments · Fixed by #480
Closed

Unexpected EOF after azurerm providers upgrade #449

rchessa opened this issue Oct 22, 2017 · 4 comments · Fixed by #480

Comments

@rchessa
Copy link

rchessa commented Oct 22, 2017

Terraform Version

Terraform v0.10.7

AzureRM Provider Version

0.3.1

Affected Resource(s)

Please list the resources as a list:

  • azurerm_lb_rule

Terraform Configuration Files

resource "azurerm_lb_rule" "tr-coll-store-http" {
  resource_group_name            = "${data.azurerm_resource_group.tr.name}"
  loadbalancer_id                = "${azurerm_lb.tr-coll-store-lb.id}"
  name                           = "HTTPStoreRule"
  protocol                       = "Tcp"
  frontend_port                  = 80
  backend_port                   = 80
  frontend_ip_configuration_name = "tr-coll-lb-store-private"
  backend_address_pool_id        = "${azurerm_lb_backend_address_pool.tr-coll-store-bp.id}"
  probe_id                       = "${azurerm_lb_probe.tr-coll-store-lb-probe.id}"
}

Debug Output

azurerm_lb_rule.tr-coll-store-http: 1 error(s) occurred:
azurerm_lb_rule.tr-coll-store-http: azurerm_lb_rule.tr-coll-store-http: unexpected EOF

Actual Behavior

Terraform plan return an azurerm_lb_rule.tr-coll-store-http: azurerm_lb_rule.tr-coll-store-http: unexpected EOF

Steps to Reproduce

  1. terraform init -upgrade
  2. terraform plan
@paktek123
Copy link
Contributor

running into the same issue with exact same versions and same steps to reproduce and with azurerm_lb_rule resource

@rchessa
Copy link
Author

rchessa commented Oct 31, 2017

I've tried with last provider version (0.3.2) and this is the output:

data.azurerm_resource_group.tr: Refreshing state...
azurerm_public_ip.yyyyyyyyyyy-ip: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...ublicIPAddresses/xxxxxxxxxx-coll-llllllll)
azurerm_lb.yyyyyyyyyyy-lb: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...Network/loadBalancers/yyyyyyyyyyy-lb)
azurerm_lb_backend_address_pool.yyyyyyyyyyy-bp: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...ndAddressPools/BackEndAddressPoolllllllll)
azurerm_lb_probe.yyyyyyyyyyy-lb-probe: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...oll-llllllll-lb/probes/http-running-probe)
azurerm_lb_nat_pool.yyyyyyyyyyy-lb-nat-pool: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...-lb/inboundNatPools/yyyyyyyyyyy-pool)
azurerm_lb_rule.yyyyyyyyyyy-https: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...i-lb/loadBalancingRules/HTTPSllllllllRule)
azurerm_lb_rule.yyyyyyyyyyy-http: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-...gi-lb/loadBalancingRules/HTTPllllllllRule)
azurerm_virtual_machine_scale_set.yyyyyyyyyyy: Refreshing state... (ID: /subscriptions/xxxxxxxxxxxxxxxxxxx-....Compute/virtualMachineScaleSets/llllllll)
Error refreshing state: 3 error(s) occurred:

* azurerm_virtual_machine_scale_set.yyyyyyyyyyy: 1 error(s) occurred:

* azurerm_virtual_machine_scale_set.yyyyyyyyyyy: azurerm_virtual_machine_scale_set.yyyyyyyyyyy: unexpected EOF
* azurerm_lb_rule.yyyyyyyyyyy-http: 1 error(s) occurred:

* azurerm_lb_rule.yyyyyyyyyyy-http: azurerm_lb_rule.yyyyyyyyyyy-http: unexpected EOF
* azurerm_lb_rule.yyyyyyyyyyy-https: 1 error(s) occurred:

* azurerm_lb_rule.yyyyyyyyyyy-https: azurerm_lb_rule.yyyyyyyyyyy-https: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1ed879f]
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4:
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: goroutine 158 [running]:
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: github.com/terraform-providers/terraform-provider-azurerm/azurerm.flattenAzureRmVirtualMachineScaleSetNetworkProfile(0xc4202f4120, 0x220101a, 0x17, 0x1fbe440)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-azurerm/azurerm/resource_arm_virtual_machine_scale_set.go:903 +0x27f
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: github.com/terraform-providers/terraform-provider-azurerm/azurerm.resourceArmVirtualMachineScaleSetRead(0xc420210700, 0x21220c0, 0xc4205a8000, 0x0, 0x2bea4c0)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-azurerm/azurerm/resource_arm_virtual_machine_scale_set.go:733 +0xcc3
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc420516d20, 0xc42016a820, 0x21220c0, 0xc4205a8000, 0xc4202df8d0, 0x20c3f01, 0x80000000010)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:321 +0x199
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc4204a7c00, 0xc42016a7d0, 0xc42016a820, 0x30d8458, 0x0, 0x0)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:284 +0x9a
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc420141700, 0xc420342600, 0xc420342710, 0x0, 0x0)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-azurerm/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:510 +0x4e
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: reflect.Value.call(0xc420053260, 0xc42016d7b8, 0x13, 0x21ebca6, 0x4, 0xc42029ff20, 0x3, 0x3, 0x0, 0x0, ...)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/usr/local/go/src/reflect/value.go:434 +0x906
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: reflect.Value.Call(0xc420053260, 0xc42016d7b8, 0x13, 0xc42080cf20, 0x3, 0x3, 0x0, 0x0, 0x0)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/usr/local/go/src/reflect/value.go:302 +0xa4
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: net/rpc.(*service).call(0xc42020acc0, 0xc42016b040, 0xc4201712a8, 0xc4203bd280, 0xc420141fa0, 0x1f9f180, 0xc420342600, 0x16, 0x1f9f1c0, 0xc420342710, ...)
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/usr/local/go/src/net/rpc/server.go:381 +0x142
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: created by net/rpc.(*Server).ServeCodec
2017-10-31T10:04:58.319+0100 [DEBUG] plugin.terraform-provider-azurerm_v0.3.2_x4: 	/usr/local/go/src/net/rpc/server.go:475 +0x36b
2017/10/31 10:04:58 [ERROR] root: eval: *terraform.EvalRefresh, err: azurerm_lb_rule.yyyyyyyyyyy-http: unexpected EOF
2017/10/31 10:04:58 [ERROR] root: eval: *terraform.EvalRefresh, err: azurerm_virtual_machine_scale_set.yyyyyyyyyyy: unexpected EOF
2017/10/31 10:04:58 [ERROR] root: eval: *terraform.EvalSequence, err: azurerm_virtual_machine_scale_set.yyyyyyyyyyy: unexpected EOF
2017/10/31 10:04:58 [ERROR] root: eval: *terraform.EvalRefresh, err: azurerm_lb_rule.yyyyyyyyyyy-https: unexpected EOF
2017/10/31 10:04:58 [TRACE] [walkRefresh] Exiting eval tree: azurerm_virtual_machine_scale_set.yyyyyyyyyyy
2017/10/31 10:04:58 [ERROR] root: eval: *terraform.EvalSequence, err: azurerm_lb_rule.yyyyyyyyyyy-http: unexpected EOF
2017/10/31 10:04:58 [TRACE] [walkRefresh] Exiting eval tree: azurerm_lb_rule.yyyyyyyyyyy-http
2017/10/31 10:04:58 [ERROR] root: eval: *terraform.EvalSequence, err: azurerm_lb_rule.yyyyyyyyyyy-https: unexpected EOF
2017/10/31 10:04:58 [TRACE] [walkRefresh] Exiting eval tree: azurerm_lb_rule.yyyyyyyyyyy-https
2017/10/31 10:04:58 [TRACE] dag/walk: upstream errored, not walking "provider.azurerm (close)"
2017-10-31T10:04:58.324+0100 [DEBUG] plugin: plugin process exited: path="/Users/XXXXXX/lb-llllllll/.terraform/plugins/darwin_amd64/terraform-provider-azurerm_v0.3.2_x4"
2017/10/31 10:04:58 [DEBUG] plugin: waiting for all plugin processes to complete...
2017-10-31T10:04:58.564+0100 [WARN ] plugin: error closing client during Kill: err="connection is shut down"

@tombuildsstuff tombuildsstuff self-assigned this Nov 1, 2017
tombuildsstuff added a commit that referenced this issue Nov 1, 2017
This happens for a VMSS started before Accelerated Networking using an older API version. Fixes #449
@tombuildsstuff
Copy link
Contributor

Hey @rchessa @paktek123

Thanks for opening this issue and the stack trace. I've taken a look into this and have opened #480 which contains a fix for this issue :)

Thanks!

@ghost
Copy link

ghost commented Apr 1, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants