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 Crash when creating DigitalOcean droplets #5402

Closed
langston-barrett opened this issue Mar 1, 2016 · 3 comments · Fixed by #5748
Closed

Terraform Crash when creating DigitalOcean droplets #5402

langston-barrett opened this issue Mar 1, 2016 · 3 comments · Fixed by #5748

Comments

@langston-barrett
Copy link

Unfortunately, this happened during a Travis CI build, and so we don't have a ton of access to the logs. They are here, under the terraform destroy step. The Travis configuration is here, and the terraform file is here.

@langston-barrett
Copy link
Author

This bug is pretty reproducible, we've seen it a couple of times. Anything we can add to our CI build to get more debugging information?

@langston-barrett
Copy link
Author

I was able to reproduce this crash by attempting to terraform while not connected to the internet. I think it's related. This is on Terraform v0.6.12.

module.do-keypair.digitalocean_ssh_key.default: Refreshing state... (ID: 1725781)
Error refreshing state: 1 error(s) occurred:

* digitalocean_ssh_key.default: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: [signal 0xb code=0x1 addr=0x0 pc=0x46d5fe]
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: 
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: goroutine 37 [running]:
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: panic(0xa6a220, 0xc82000a110)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/go/src/runtime/panic.go:464 +0x3e6
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: github.com/hashicorp/terraform/builtin/providers/digitalocean.resourceDigitalOceanSSHKeyRead(0xc8201ed0e0, 0xaa2be0, 0xc82027ad80, 0x0, 0x0)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/gopath/src/github.com/hashicorp/terraform/builtin/providers/digitalocean/resource_digitalocean_ssh_key.go:77 +0x24e
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc82027ebc0, 0xc8201dbcb0, 0xaa2be0, 0xc82027ad80, 0xc8202823e8, 0x0, 0x0)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/resource.go:209 +0x43a
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: github.com/hashicorp/terraform/helper/schema.(*Provider).Refresh(0xc820225110, 0xc820191a80, 0xc8201dbcb0, 0x1, 0x0, 0x0)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/gopath/src/github.com/hashicorp/terraform/helper/schema/provider.go:187 +0x1da
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Refresh(0xc820251340, 0xc82018cba0, 0xc82018ce30, 0x0, 0x0)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/gopath/src/github.com/hashicorp/terraform/rpc/resource_provider.go:345 +0x6a
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: reflect.Value.call(0xa0eb80, 0xaf5298, 0x13, 0xb42050, 0x4, 0xc8201a7ee8, 0x3, 0x3, 0x0, 0x0, ...)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/go/src/reflect/value.go:435 +0x120d
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: reflect.Value.Call(0xa0eb80, 0xaf5298, 0x13, 0xc8201a7ee8, 0x3, 0x3, 0x0, 0x0, 0x0)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/go/src/reflect/value.go:303 +0xb1
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: net/rpc.(*service).call(0xc82027ec40, 0xc82027ec00, 0xc82027d0e0, 0xc82026e380, 0xc82028e900, 0x923b20, 0xc82018cba0, 0x16, 0x923b80, 0xc82018ce30, ...)
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/go/src/net/rpc/server.go:383 +0x1c2
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean: created by net/rpc.(*Server).ServeCodec
2016/03/02 15:09:00 [DEBUG] terraform-provider-digitalocean:    /opt/go/src/net/rpc/server.go:477 +0x49d
2016/03/02 15:09:00 [DEBUG] /usr/bin/terraform-provider-digitalocean: plugin process exited
2016/03/02 15:09:00 [ERROR] root.do-keypair: eval: *terraform.EvalRefresh, err: digitalocean_ssh_key.default: unexpected EOF
2016/03/02 15:09:00 [ERROR] root.do-keypair: eval: *terraform.EvalSequence, err: digitalocean_ssh_key.default: unexpected EOF
2016/03/02 15:09:00 [ERROR] root.do-keypair: eval: *terraform.EvalOpFilter, err: digitalocean_ssh_key.default: unexpected EOF
2016/03/02 15:09:00 [ERROR] root.do-keypair: eval: *terraform.EvalSequence, err: digitalocean_ssh_key.default: unexpected EOF
2016/03/02 15:09:00 [TRACE] [walkRefresh] Exiting eval tree: digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-keypair.output.keypair_id, got dep: module.do-keypair.digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.control, got dep: module.do-keypair.output.keypair_id
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.control, got dep: module.do-keypair.digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.control, got dep: module.do-hosts.var.region_name
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-keypair.digitalocean (close), got dep: module.do-keypair.digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-keypair.output.keypair_id
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-keypair.digitalocean (close), got dep: module.do-keypair.provider.digitalocean
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.var.ssh_key, got dep: module.do-keypair.output.keypair_id
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-hosts.digitalocean_droplet.edge (destroy)
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.var.ssh_key, got dep: module.do-keypair.digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-hosts.var.region_name
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-keypair.output.keypair_id
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-hosts.var.edge_size
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.control, got dep: module.do-hosts.var.ssh_key
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-keypair.digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-hosts.var.image_name
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-hosts.digitalocean (close), got dep: module.do-hosts.digitalocean_droplet.control
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.digitalocean_droplet.worker (destroy)
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.provider.digitalocean
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.output.control_ips, got dep: module.do-hosts.digitalocean_droplet.control
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.worker_size
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.short_name
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.output.control_ips
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.image_name
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.ssh_key
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.datacenter
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.region_name
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.worker, got dep: module.do-hosts.var.worker_count
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-hosts.digitalocean (close), got dep: module.do-hosts.digitalocean_droplet.worker
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-keypair.digitalocean_ssh_key.default
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-hosts.var.short_name
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.digitalocean_droplet.edge, got dep: module.do-hosts.var.ssh_key
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-hosts.digitalocean (close), got dep: module.do-hosts.digitalocean_droplet.edge
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-hosts.digitalocean (close), got dep: module.do-hosts.digitalocean_droplet.control (destroy)
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.output.edge_ips, got dep: module.do-hosts.digitalocean_droplet.edge
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-hosts.digitalocean (close), got dep: module.do-hosts.digitalocean_droplet.worker (destroy)
2016/03/02 15:09:00 [DEBUG] vertex module.do-hosts.output.worker_ips, got dep: module.do-hosts.digitalocean_droplet.worker
2016/03/02 15:09:00 [DEBUG] vertex provider.module.do-hosts.digitalocean (close), got dep: module.do-hosts.digitalocean_droplet.edge (destroy)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.output.worker_ips
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.digitalocean_droplet.worker
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: provider.module.do-hosts.digitalocean (close)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.aws-elb.output.zone_id (orphan)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.plan-destroy
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.traefik-elb.output.zone_id (orphan)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.traefik-elb.output.fqdn (orphan)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.digitalocean_droplet.edge
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: provider.module.do-keypair.digitalocean (close)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.aws-elb.output.fqdn (orphan)
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.output.edge_ips
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-hosts.digitalocean_droplet.control
2016/03/02 15:09:00 [DEBUG] vertex root, got dep: module.do-keypair.plan-destroy
2016/03/02 15:09:00 [DEBUG] waiting for all plugin processes to complete...



!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.

When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.

[1]: https://github.com/hashicorp/terraform/issues

!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

jen20 added a commit that referenced this issue Mar 21, 2016
This applies the same fix to `digitalocean_ssh_key` as #5588 applies to
droplets. Fixes #5402. The report there gives weight to my theory that
this occurs when there are transport issues.
@ghost
Copy link

ghost commented Apr 27, 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 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants