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

Using snyk provider in Terraform Cloud error #65

Open
Justin-DynamicD opened this issue Apr 3, 2023 · 0 comments
Open

Using snyk provider in Terraform Cloud error #65

Justin-DynamicD opened this issue Apr 3, 2023 · 0 comments

Comments

@Justin-DynamicD
Copy link

Using 0.7.1, I get the occasional crash when running this provider in Terraform Cloud. Due to the remote nature, it's hard to provide better crash logs than this, but thought I would attempt to bring it to your attention. If it will help, I can attempt to provide some resource context.

Stack trace from the terraform-provider-snyk_v0.7.1 plugin:

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

goroutine 13 [running]:
github.com/pavel-snyk/terraform-provider-snyk/internal/provider.(*organizationResource).Read(0xc000310158, {0xc7f360, 0xc000283d10}, {{{{0xc82e30, 0xc000116cf0}, {0xa9a620, 0xc000116ab0}}, {0xc000582120, 0x0, 0x0, ...}}, ...}, ...)
github.com/pavel-snyk/terraform-provider-snyk/internal/provider/resource_organization.go:133 +0x43a
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc000327080, {0xc7f360, 0xc000283d10}, 0xc000283e00, 0xc0001ff610)
github.com/hashicorp/[email protected]/internal/fwserver/server_readresource.go:97 +0x6ae
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc000327080, {0xc7f360?, 0xc000283bc0?}, 0xc000598f40)
github.com/hashicorp/[email protected]/internal/proto6server/server_readresource.go:52 +0x27b
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc000323040, {0xc7f360?, 0xc000283230?}, 0xc000586600)
github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:746 +0x4b1
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0xb40f00?, 0xc000323040}, {0xc7f360, 0xc000283230}, 0xc00042a850, 0x0)
github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:349 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003981e0, {0xc83118, 0xc0003aba00}, 0xc0000dac60, 0xc00045fe00, 0x10abfb0, 0x0)
google.golang.org/[email protected]/server.go:1340 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc0003981e0, {0xc83118, 0xc0003aba00}, 0xc0000dac60, 0x0)
google.golang.org/[email protected]/server.go:1713 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:963 +0x28a

Error: The terraform-provider-snyk_v0.7.1 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant