-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
We have recently started POCing the oktapam terraform provider, and got the above (and below) error when trying to create a Resource Group and Project.
I reverted the change, and our TFC workspace is now returning the error for every run, even when I have remove all the PAM resources from our repo.
Familiar with the Okta core provider. Any idea what's causing this error:
Stack trace from the terraform-provider-oktapam_v0.6.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xeaf1fc]
goroutine 25 [running]:
github.com/okta/terraform-provider-oktapam/oktapam.resourceResourceGroupRead({0x1328b90, 0xc0004c0f50}, 0xc0004b9980, {0xf40ea0?, 0xc00016e520?})
github.com/okta/terraform-provider-oktapam/oktapam/resource_resource_group.go:67 +0x15c
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc00019bea0, {0x1328ae8, 0xc0000c91a0}, 0xc0004b9980, {0xf40ea0, 0xc00016e520})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:823 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc00019bea0, {0x1328ae8, 0xc0000c91a0}, 0xc0003b4ea0, {0xf40ea0, 0xc00016e520})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1117 +0x525
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc00012d920, {0x1328ae8?, 0xc0000c9080?}, 0xc0000d6e00)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:708 +0x6a5
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ReadResource({{0x1333248?, 0xc00012d920?}}, {0x1328ae8?, 0xc0000c9080?}, 0xc0000d6d00?)
github.com/hashicorp/[email protected]/tf5to6server/tf5to6server.go:211 +0x2ab
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ReadResource(0xc0002c8680, {0x1328ae8?, 0xc0000c8db0?}, 0xc0000d6d00)
github.com/hashicorp/[email protected]/tf6muxserver/mux_server_ReadResource.go:35 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc0002bb0e0, {0x1328ae8?, 0xc000327dd0?}, 0xc0004c0930)
github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:784 +0x2f3
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x113b920, 0xc0002bb0e0}, {0x1328ae8, 0xc000327dd0}, 0xc0004b9200, 0x0)
github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:575 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001c6e00, {0x1328ae8, 0xc000327d40}, {0x132f760, 0xc0000fc000}, 0xc00064f680, 0xc0003cdb30, 0x1b0b848, 0x0)
google.golang.org/[email protected]/server.go:1394 +0xe2b
google.golang.org/grpc.(*Server).handleStream(0xc0001c6e00, {0x132f760, 0xc0000fc000}, 0xc00064f680)
google.golang.org/[email protected]/server.go:1805 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1029 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 11
google.golang.org/[email protected]/server.go:1040 +0x125
Error: The terraform-provider-oktapam_v0.6.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.
wrprice
Metadata
Metadata
Assignees
Labels
No labels