Skip to content

Error: Plugin did not respond │ The Plugin encountered an error, and failed to respond to the │ plugin6.(*GRPCProvider).ReadResource call #363

@mxthxngx

Description

@mxthxngx

I'm trying to import an index that was created manually in couchbase to terraform. I was able to import it but when I run the terraform plan command I get the following error.
My couchbasecloud/couchbase-capella version is 1.5.1, I have tried with 1.4.1 as well and get the same error. Could someone help me debug?


Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Plugin did not respond
│ 
│ The plugin encountered an error, and failed to respond to the
│ plugin6.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-couchbase-capella_v1.5.1 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x8e8fd5]

goroutine 302 [running]:
github.com/couchbasecloud/terraform-provider-couchbase-capella/internal/resources.(*GSI).Read(0xc000450308, {0xf689c8, 0xc0008ec2a0}, {{{{0xf6e0a8, 0xc000900720}, {0xcc6240, 0xc0009003c0}}, {0xf708b0, 0xc0003a3ea0}}, 0x0, ...}, ...)
        github.com/couchbasecloud/terraform-provider-couchbase-capella/internal/resources/gsi.go:341 +0x6f5
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc00019b408, {0xf689c8, 0xc0008ec2a0}, 0xc00066f770, 0xc00073d5d0)
        github.com/hashicorp/terraform-plugin-framework@v1.15.0/internal/fwserver/server_readresource.go:156 +0xbae
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc00019b408, {0xf689c8?, 0xc0008ec1b0?}, 0xc00066f6d0)
        github.com/hashicorp/terraform-plugin-framework@v1.15.0/internal/proto6server/server_readresource.go:71 +0x592
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc00023c960, {0xf689c8?, 0xc00083b9b0?}, 0xc000596bd0)
        github.com/hashicorp/terraform-plugin-go@v0.27.0/tfprotov6/tf6server/server.go:908 +0x2f3
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0xdd0e40, 0xc00023c960}, {0xf689c8, 0xc00083b9b0}, 0xc000760500, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.27.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:651 +0x1a9
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000238200, {0xf689c8, 0xc00083b920}, 0xc0000e76e0, 0xc000320780, 0x153fbd8, 0x0)
        google.golang.org/grpc@v1.72.1/server.go:1405 +0x103b
google.golang.org/grpc.(*Server).handleStream(0xc000238200, {0xf695c0, 0xc00049e000}, 0xc0000e76e0)
        google.golang.org/grpc@v1.72.1/server.go:1815 +0xbaa
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/grpc@v1.72.1/server.go:1035 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 23
        google.golang.org/grpc@v1.72.1/server.go:1046 +0x125

Error: The terraform-provider-couchbase-capella_v1.5.1 plugin crashed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions