Open patoarvizu opened 5 years ago
I got what I think is the same error.
panic: runtime error: invalid memory address or nil pointer dereference
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xc6a3b4]
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos:
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: goroutine 75 [running]:
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: main.getOrderStatus(0xc000629020, 0xc000246260, 0xb, 0xc00003a7e0, 0xe, 0xc00017f3e0, 0xe7050b, 0x2, 0xc00003a7e0)
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: /home/nmckinley/go/src/github.com/ndmckinley/terraform-provider-dominos/resource_order.go:188 +0xd4
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: main.resourceOrderRead(0xc000204930, 0xcd8ba0, 0xc000416c80, 0xc, 0xc000143558)
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: /home/nmckinley/go/src/github.com/ndmckinley/terraform-provider-dominos/resource_order.go:255 +0x9a
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: main.resourceOrderCreate(0xc000204930, 0xcd8ba0, 0xc000416c80, 0xc000204930, 0x0)
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: /home/nmckinley/go/src/github.com/ndmckinley/terraform-provider-dominos/resource_order.go:182 +0x230a
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc000416080, 0xc0002ee6e0, 0xc00017f380, 0xcd8ba0, 0xc000416c80, 0x40d501, 0xc000426b80, 0x4bd85c)
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: /home/nmckinley/go/src/github.com/hashicorp/terraform/helper/schema/resource.go:286 +0x363
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc000380150, 0xc0002ee640, 0xc0002ee6e0, 0xc00017f380, 0xc00006a700, 0x18, 0x7f1aba9306c0)
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: /home/nmckinley/go/src/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0x9c
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc000256020, 0xc00017eee0, 0xc0002839c0, 0x0, 0x0)
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: /home/nmckinley/go/src/github.com/hashicorp/terraform/plugin/resource_provider.go:530 +0x57
2020-04-25T15:53:55.677-0700 [DEBUG] plugin.terraform-provider-dominos: reflect.Value.call(0xc0000c3440, 0xc0000c0008, 0x13, 0xe70ce0, 0x4, 0xc000426f18, 0x3, 0x3, 0xc000364140, 0x2000100000000, ...)
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: /usr/local/go/src/reflect/value.go:447 +0x454
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: reflect.Value.Call(0xc0000c3440, 0xc0000c0008, 0x13, 0xc0003d0718, 0x3, 0x3, 0x2, 0x0, 0x0)
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: /usr/local/go/src/reflect/value.go:308 +0xa4
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: net/rpc.(*service).call(0xc0000c4000, 0xc0000d07d0, 0xc000246028, 0xc000246050, 0xc000416400, 0xc000256740, 0xccfd20, 0xc00017eee0, 0x16, 0xccfd60, ...)
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: /usr/local/go/src/net/rpc/server.go:384 +0x14e
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: created by net/rpc.(*Server).ServeCodec
2020-04-25T15:53:55.678-0700 [DEBUG] plugin.terraform-provider-dominos: /usr/local/go/src/net/rpc/server.go:481 +0x47e
2020/04/25 15:53:55 [TRACE] root: eval: *terraform.EvalWriteState
2020/04/25 15:53:55 [TRACE] root: eval: *terraform.EvalApplyProvisioners
2020/04/25 15:53:55 [TRACE] root: eval: *terraform.EvalIf
2020/04/25 15:53:55 [TRACE] root: eval: *terraform.EvalWriteState
2020/04/25 15:53:55 [TRACE] root: eval: *terraform.EvalWriteDiff
2020/04/25 15:53:55 [TRACE] root: eval: *terraform.EvalApplyPost
2020/04/25 15:53:55 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* dominos_order.order: unexpected EOF
2020/04/25 15:53:55 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* dominos_order.order: unexpected EOF
2020/04/25 15:53:55 [TRACE] [walkApply] Exiting eval tree: dominos_order.order
2020/04/25 15:53:55 [TRACE] dag/walk: upstream errored, not walking "provider.dominos (close)"
2020/04/25 15:53:55 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
2020/04/25 15:53:55 [TRACE] dag/walk: upstream errored, not walking "root"
2020-04-25T15:53:55.682-0700 [DEBUG] plugin: plugin process exited: path=/home/rowan/.terraform.d/plugins/terraform-provider-dominos
2020/04/25 15:53:55 [TRACE] Preserving existing state lineage "727443c1-8b2b-464d-a70c-d7ef263278da"
2020/04/25 15:53:55 [DEBUG] plugin: waiting for all plugin processes to complete...
2020-04-25T15:53:55.745-0700 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
However, judging by my credit card transactions, the API request went through successfully.
That looks like an unhandled response; unfortunately you'd need to log the response content as a full object before knowing what it exploded on
After running
terraform apply
, I got one of thoseTERRAFORM CRASH
errors (copied below). It seems like something is getting an EOF and it's not handled gracefully.One thing to note is that I noticed that as I was running
terraform plan
a couple of times in a row to build my order and make sure it was correct, the HTTP requests made by the provider would sometimes time out, but they would work again after some time. So it's possible that there is some throttling happening on their end. I don't know if this is the same thing, but it sounds to me like it could be related.I've only seen this once because I've only ordered once and it's obviously not easy to reproduce 🙂