-
Notifications
You must be signed in to change notification settings - Fork 420
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
Terraform Snowflake Error: Plugin did not respond #2489
Comments
When I am using below terraform script then it is throwing an error . resource "snowflake_role" "testbus_usage_accessRole" { |
Hey @sumitbourne. Thanks for reaching out to us. It seems, that your provider's config is incorrect. Can you share the |
terraform { required_providers {
} } provider "snowflake" { role = "test_terraform_transform_dev" account = "******.eu-west-1" user = "test.terraform.transform.dev" private_key = data.aws_ssm_parameter.snowflake_private_key.value } |
@sfc-gh-asawicki pls find the provider block provider "snowflake" { role = "test_terraform_transform_dev" account = "******.eu-west-1" user = "test.terraform.transform.dev" private_key = data.aws_ssm_parameter.snowflake_private_key.value } |
@sumitbourne, this seems to be the same as issue #2317; please check it for details. I suggest doing two things:
|
@sumitbourne were you able to verify the suggestions? |
Yes I was able to resolve the issue. |
@sumitbourne ran into this issue today - mind sharing how you solved it or what the issue was? 🙏🏼 |
Share me your provider code, will try to debug it. |
Terraform CLI and Provider Versions
Terraform v1.7.3
on windows_386
Terraform Configuration
Expected Behavior
Actual Behavior
Error: Plugin did not respond
│
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ConfigureProvider call. The
│ plugin logs may contain more details.
╵
Stack trace from the terraform-provider-snowflake_v0.85.0.exe plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x1a064ce]
goroutine 70 [running]:
crypto/rsa.(*PrivateKey).Public(...)
crypto/rsa/rsa.go:122
github.com/snowflakedb/gosnowflake.prepareJWTToken(0xcdd0480)
github.com/snowflakedb/gosnowflake@v1.7.1/auth.go:462 +0x2e
github.com/snowflakedb/gosnowflake.createRequestBody(0xcbf3080, 0xcd66480, {{0xcf13259, 0x1c}, {0x23c8e4d, 0x7}, {0xcbdab20, 0x6}, {0x23d31f6, 0x9}}, ...)
github.com/snowflakedb/gosnowflake@v1.7.1/auth.go:425 +0x357
github.com/snowflakedb/gosnowflake.authenticate.func1()
github.com/snowflakedb/gosnowflake@v1.7.1/auth.go:336 +0x77
github.com/snowflakedb/gosnowflake.(*retryHTTP).execute(0xcc62d40)
github.com/snowflakedb/gosnowflake@v1.7.1/retry.go:313 +0x23b
github.com/snowflakedb/gosnowflake.postAuthRestful({0x2743b28, 0x3579b80}, 0xcd66300, 0xcbe4af0, 0xcd663a0, 0xcbe4aa0, 0x45d964b800, 0x7)
github.com/snowflakedb/gosnowflake@v1.7.1/restful.go:198 +0xde
github.com/snowflakedb/gosnowflake.postAuth({0x2743b28, 0x3579b80}, 0xcd8d260, 0xcd66300, 0xcdeeb88, 0xcd663a0, 0xcbe4aa0, 0x45d964b800)
github.com/snowflakedb/gosnowflake@v1.7.1/auth.go:229 +0x365
github.com/snowflakedb/gosnowflake.authenticate({0x2743b28, 0x3579b80}, 0xcbf3080, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0})
github.com/snowflakedb/gosnowflake@v1.7.1/auth.go:356 +0xead
github.com/snowflakedb/gosnowflake.authenticateWithConfig(0xcbf3080)
github.com/snowflakedb/gosnowflake@v1.7.1/auth.go:547 +0x508
github.com/snowflakedb/gosnowflake.SnowflakeDriver.OpenWithConfig({}, {0x2743b28, 0x3579b80}, {{0xcf13220, 0x7}, {0xcf13200, 0x1e}, {0xcf13200, 0x0}, {0x0, ...}, ...})
github.com/snowflakedb/gosnowflake@v1.7.1/driver.go:43 +0x121
github.com/snowflakedb/gosnowflake.SnowflakeDriver.Open({}, {0xcf13200, 0xf7})
github.com/snowflakedb/gosnowflake@v1.7.1/driver.go:26 +0xfb
github.com/luna-duclos/instrumentedsql.dsnConnector.Connect(...)
github.com/luna-duclos/instrumentedsql@v1.1.3/connector.go:53
github.com/luna-duclos/instrumentedsql.wrappedConnector.Connect({{{0x2735574, 0x24c227c}, {0x27381a4, 0x3579b80}, 0x0, 0x0}, {0x273e5a8, 0xcdb63d0}, 0xcd66080}, {0x2743b28, ...})
github.com/luna-duclos/instrumentedsql@v1.1.3/connector.go:33 +0x1d0
database/sql.(*DB).conn(0xcdb0f30, {0x2743b28, 0x3579b80}, 0x1)
database/sql/sql.go:1387 +0x755
database/sql.(*DB).PingContext.func1(0x1)
database/sql/sql.go:850 +0x47
database/sql.(*DB).retry(0xcdb0f30, 0xcc63610)
database/sql/sql.go:1538 +0x5d
database/sql.(*DB).PingContext(0xcdb0f30, {0x2743b28, 0x3579b80})
database/sql/sql.go:849 +0x7c
database/sql.(*DB).Ping(...)
database/sql/sql.go:867
github.com/jmoiron/sqlx.Connect({0x2403e35, 0x16}, {0xcf13200, 0xf7})
github.com/jmoiron/sqlx@v1.3.5/sqlx.go:642 +0x6d
github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk.NewClient(0xcdd0120)
github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/client.go:148 +0x139
github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider.ConfigureProvider(0xcbe4820)
github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/provider.go:745 +0x1b6f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Provider).Configure(0xcee51a0, {0x2743b48, 0xcda3038}, 0xce09380)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.31.0/helper/schema/provider.go:296 +0x19e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ConfigureProvider(0xcec7970, {0x2743b48, 0xcda2f00}, 0xcdb3d80)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.31.0/helper/schema/grpc_provider.go:607 +0x404
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ConfigureProvider({{0x274d588, 0xcec7970}}, {0x2743b48, 0xcda2f00}, 0xcdb3d50)
github.com/hashicorp/terraform-plugin-mux@v0.13.0/tf5to6server/tf5to6server.go:80 +0x109
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ConfigureProvider(0xc9df7c0, {0x2743b48, 0xcda2e28},
0xcdb3d50)
github.com/hashicorp/terraform-plugin-mux@v0.13.0/tf6muxserver/mux_server_ConfigureProvider.go:28 +0x15d
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ConfigureProvider(0xc9de1e0, {0x2743b48, 0xcda2be8}, 0xce14f80)
github.com/hashicorp/terraform-plugin-go@v0.20.0/tfprotov6/tf6server/server.go:568 +0x2e1
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ConfigureProvider_Handler({0x237b3e0, 0xc github.com/hashicorp/terraform-plugin-go@v0.20.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:449 +0x176
google.golang.org/grpc.(*Server).processUnaryRPC(0xc94adc0, {0x2743b48, 0xcda2bb8}, {0x274c074, 0xccb9400}, 0xcf595e0, 0xceae1b0, 0x3548f28, 0x0)
google.golang.org/grpc@v1.60.0/server.go:1372 +0xf6a
google.golang.org/grpc.(*Server).handleStream(0xc94adc0, {0x274c074, 0xccb9400}, 0xcf595e0)
google.golang.org/grpc@v1.60.0/server.go:1783 +0x10d0
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.60.0/server.go:1016 +0x6f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 68
google.golang.org/grpc@v1.60.0/server.go:1027 +0x123
Error: The terraform-provider-snowflake_v0.85.0.exe 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.
Steps to Reproduce
terraform init
terraform plan
Steps to Reproduce
Steps to Reproduce
terraform init
terraform plan
How much impact is this issue causing?
High
Logs
No response
Additional Information
I am using Snowflake Lab version 0.85 and latest Terraform version is 1.7.3
Can you please fix the issue.
The text was updated successfully, but these errors were encountered: