The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).UpgradeResourceState call. #2834
Labels
triage/duplicate
Indicates an issue is a duplicate of other open issue.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.0.11
on linux_amd64
provider registry.terraform.io/cloudflare/cloudflare v4.16.0
provider registry.terraform.io/hashicorp/azurerm v3.75.0
Affected resource(s)
resource "cloudflare_ruleset" "cache_everything"
Terraform configuration files
Link to debug output
Added debug output in zip file as https://gist.github.com/ is not able to create a gist url/unresponsive for longer times.
Panic output
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9996c0]
goroutine 10746 [running]:
github.com/cloudflare/terraform-provider-cloudflare/internal/framework/service/rulesets.toRulesetResourceModel({0x130ada0, 0xc0021e5c80}, {0x80?, {0xc000946b80?, 0xc000946ac0?}}, {0x20?, {0x0?, 0x0?}}, {{0xc0005d951b, 0x20}, ...})
github.com/cloudflare/terraform-provider-cloudflare/internal/framework/service/rulesets/resource.go:614 +0x3aa0
github.com/cloudflare/terraform-provider-cloudflare/internal/framework/service/rulesets.(*RulesetResource).Read(0xc0004bc090, {0x130ada0, 0xc0021e5c80}, {{{{0x130f8a8, 0xc002028510}, {0xfcbf60, 0xc0011cd1a0}}, {0x13110e0, 0xc000a40e60}}, 0xc000632018, ...}, ...)
github.com/cloudflare/terraform-provider-cloudflare/internal/framework/service/rulesets/resource.go:208 +0x57b
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc00050e420, {0x130ada0, 0xc0021e5c80}, 0xc0021e5d10, 0xc001d35520)
github.com/hashicorp/[email protected]/internal/fwserver/server_readresource.go:101 +0x677
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc00050e420, {0x130ada0?, 0xc0021e5b30?}, 0xc002bd7f40)
github.com/hashicorp/[email protected]/internal/proto6server/server_readresource.go:55 +0x41a
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.muxServer.ReadResource({0xc0003402d0, 0xc000a1bbd0, 0xc000340300, 0xc000340330, {0xc0000abf40, 0x2,
0x2}}, {0x130ada0?, 0xc0021e5800?}, 0xc002bd7f40)
github.com/hashicorp/[email protected]/tf6muxserver/mux_server_ReadResource.go:29 +0x139
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc0003314a0, {0x130ada0?, 0xc0021e5050?}, 0xc000ba75c0)
github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:749 +0x4b1
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x10e53e0?, 0xc0003314a0}, {0x130ada0, 0xc0021e5050}, 0xc0002a4d90, 0x0)
github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:386 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000363c0, {0x130fbf8, 0xc000583ba0}, 0xc0021da6c0, 0xc0006ba150, 0x1997590, 0x0)
google.golang.org/[email protected]/server.go:1337 +0xdf3
google.golang.org/grpc.(*Server).handleStream(0xc0000363c0, {0x130fbf8, 0xc000583ba0}, 0xc0021da6c0, 0x0)
google.golang.org/[email protected]/server.go:1714 +0xa36
google.golang.org/grpc.(*Server).serveStreams.func1.1()
google.golang.org/[email protected]/server.go:959 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:957 +0x18c
Error: The terraform-provider-cloudflare_v4.13.0 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
2023-10-02T10:40:50.535+0100 [DEBUG] Azure Backend Response for https://mabgotfstateprodst001.blob.core.windows.net/mab-go-eun-prod-terraform-state/cloudflare-cdn.tfstate?comp=lease:
HTTP/1.1 200 OK
Content-Length: 0
Date: Mon, 02 Oct 2023 09:40:52 GMT
Etag: "0x8DBC32BAAE9CC73"
Last-Modified: Mon, 02 Oct 2023 09:40:52 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Request-Id: 34ad54a0-701e-009b-2514-f54da7000000
X-Ms-Version: 2018-11-09
2023-10-02T10:40:50.535+0100 [DEBUG] provider: plugin exited
Expected output
cloudflare_ruleset.cache_everything[""]: Refreshing state... [id=]
cloudflare_ruleset.cache_everything[""]: Refreshing state... [id=]
Actual output
╷
│ Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).UpgradeResourceState call. The plugin logs may contain more
│ details.
╵
╷
│ Error: Request cancelled
│
│ The plugin6.(*GRPCProvider).UpgradeResourceState request was cancelled.
Steps to reproduce
We are getting issues while doing Terraform plan itself and even in Debug, couldn’t find helpful information.
Additional factoids
we compared the current terraform state file to existing terraform configuration where I didn't find any mismatch.
Also we tried with the latest version v4.15.0 and still it didn't works.
References
No response
The text was updated successfully, but these errors were encountered: