Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created September 1, 2021 16:00
Show Gist options
  • Save MatthewJDavis/5f17aeeead6b4ea81ef2949c7498e324 to your computer and use it in GitHub Desktop.
Save MatthewJDavis/5f17aeeead6b4ea81ef2949c7498e324 to your computer and use it in GitHub Desktop.
Okta terraform provider import SAML crash
Error: Plugin did not respond
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.
Stack trace from the terraform-provider-okta_v3.13.8 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xad46f5]
goroutine 41 [running]:
github.com/okta/terraform-provider-okta/okta.appRead(0xbffaa0, {0xc000130840, 0xc000118180}, {0xc00011d890, 0x6}, {0xc00011d8b0, 0x8}, {0xc00003eb40, 0x13}, 0xc0005b52f0, ...)
github.com/okta/terraform-provider-okta/okta/app.go:203 +0x1f5
github.com/okta/terraform-provider-okta/okta.resourceAppSamlRead({0xe619e8, 0xc00014a720}, 0xc0005c8c80, {0xc276c0, 0xc0004516c0})
github.com/okta/terraform-provider-okta/okta/resource_okta_app_saml.go:467 +0xd05
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000297180, {0xe61978, 0xc0001e6340}, 0x24, {0xc276c0, 0xc0004516c0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:347 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000297180, {0xe61978, 0xc0001e6340}, 0xc0003bc230, {0xc276c0, 0xc0004516c0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/resource.go:624 +0x35b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000428a80, {0xe61978, 0xc0001e6340}, 0xc0001e6380)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.7.0/helper/schema/grpc_provider.go:575 +0x4bd
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ReadResource(0xc000476800, {0xe61a20, 0xc000538510}, 0xc00014a2a0)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/server/server.go:298 +0x1fb
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler({0xcefae0, 0xc000476800}, {0xe61a20, 0xc000538510}, 0xc00014a240, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:344 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002aca80, {0xe70b50, 0xc000184480}, 0xc000126100, 0xc0004929f0, 0x13bad10, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1194 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc0002aca80, {0xe70b50, 0xc000184480}, 0xc000126100, 0x0)
google.golang.org/grpc@v1.32.0/server.go:1517 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/grpc@v1.32.0/server.go:859 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.32.0/server.go:857 +0x294
Error: The terraform-provider-okta_v3.13.8 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