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

Terraform: unexpected EOF, panic: runtime error: index out of range #15357

Closed
bamb00 opened this issue Jun 21, 2017 · 1 comment
Closed

Terraform: unexpected EOF, panic: runtime error: index out of range #15357

bamb00 opened this issue Jun 21, 2017 · 1 comment

Comments

@bamb00
Copy link

bamb00 commented Jun 21, 2017

Hi,

Getting panic error and terraform crash in vSphere environment

Original Terraform version 0.6.16

Terraform Version

0.9.8

Debug Output

20:02:18 * module.vsphere-minion.vsphere_virtual_machine.minion-node-01_nic: 1 error(s) occurred:
20:02:18 * module.vsphere-minion.vsphere_virtual_machine.minion-node-01_nic: vsphere_virtual_machine.minion-node-01_nic: unexpected EOF
20:02:18 * module.vsphere-vm.vsphere_virtual_machine.master-nodes_nic: 1 error(s) occurred:
20:02:18 * module.vsphere-vm.vsphere_virtual_machine.master-nodes_nic: vsphere_virtual_machine.master-nodes_nic: unexpected EOF
20:02:18 panic: runtime error: index out of range
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform:
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: goroutine 63 [running]:
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/builtin/providers/vsphere.resourceVSphereVirtualMachineRead(0xc42038c4d0, 0x512e780, 0xc42054ed40, 0x1, 0x7d25b00)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/vsphere/resource_vsphere_virtual_machine.go:1089 +0x384c
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc4203381e0, 0xc4202d5360, 0x512e780, 0xc42054ed40, 0xc4205a7420, 0xc4204a6101, 0x0)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/resource.go:314 +0x21d
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc4202923f0, 0xc4202d5310, 0xc4202d5360, 0x7f9c921a9e10, 0x0, 0x0)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/provider.go:267 +0x91
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Refresh(0xc42053e480, 0xc42054eed0, 0xc42054fcf0, 0x0, 0x0)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/gopath/src/github.com/hashicorp/terraform/plugin/resource_provider.go:510 +0x4e
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: reflect.Value.call(0xc420304840, 0xc42000c2f0, 0x13, 0x521ae4d, 0x4, 0xc4205adf20, 0x3, 0x3, 0x0, 0xc4204f9410, ...)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/go/src/reflect/value.go:434 +0x91f
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: reflect.Value.Call(0xc420304840, 0xc42000c2f0, 0x13, 0xc42002b720, 0x3, 0x3, 0xc420339020, 0x0, 0x0)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/go/src/reflect/value.go:302 +0xa4
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: net/rpc.(*service).call(0xc4204bd740, 0xc4204bd700, 0xc4204f2190, 0xc420424300, 0xc42053ede0, 0x436b840, 0xc42054eed0, 0x16, 0x436b880, 0xc42054fcf0, ...)
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/go/src/net/rpc/server.go:387 +0x144
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: created by net/rpc.(*Server).ServeCodec
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: terraform: /opt/go/src/net/rpc/server.go:481 +0x404
20:02:18 2017/06/09 20:02:18 [ERROR] root.vsphere-minion: eval: *terraform.EvalRefresh, err: vsphere_virtual_machine.minion-node-01_nic: unexpected EOF
20:02:18 2017/06/09 20:02:18 [ERROR] root.vsphere-minion: eval: *terraform.EvalSequence, err: vsphere_virtual_machine.minion-node-01_nic: unexpected EOF
20:02:18 2017/06/09 20:02:18 [TRACE] [walkRefresh] Exiting eval tree: module.vsphere-minion.vsphere_virtual_machine.minion-node-01_nic
20:02:18 2017/06/09 20:02:18 [ERROR] root.vsphere-vm: eval: *terraform.EvalRefresh, err: vsphere_virtual_machine.master-nodes_nic: unexpected EOF
20:02:18 2017/06/09 20:02:18 [ERROR] root.vsphere-vm: eval: *terraform.EvalSequence, err: vsphere_virtual_machine.master-nodes_nic: unexpected EOF
20:02:18 2017/06/09 20:02:18 [TRACE] [walkRefresh] Exiting eval tree: module.vsphere-vm.vsphere_virtual_machine.master-nodes_nic
20:02:18 2017/06/09 20:02:18 [DEBUG] dag/walk: upstream errored, not walking "provider.vsphere (close)"
20:02:18 2017/06/09 20:02:18 [DEBUG] dag/walk: upstream errored, not walking "root"
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: /usr/bin/terraform: plugin process exited
20:02:18 2017/06/09 20:02:18 [DEBUG] plugin: waiting for all plugin processes to complete...
20:02:18 2017/06/09 20:02:18 [WARN] plugin: error closing client during Kill: connection is shut down

Expected Behavior

Destroy operation should have work

Actual Behavior

Terraform crash during destroy operation

Steps to Reproduce

Terraform destroy operation master and minion node running on vSphere

Important Factoids

vSphere
crash.zip

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here?

@ghost
Copy link

ghost commented Apr 8, 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 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.

@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
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