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

[Bug]: Plugin Error Azure DevOps Pipeline #3248

Open
1 task
nate-lema-trinity opened this issue Dec 4, 2024 · 1 comment
Open
1 task

[Bug]: Plugin Error Azure DevOps Pipeline #3248

nate-lema-trinity opened this issue Dec 4, 2024 · 1 comment
Labels
bug Used to mark issues with provider's incorrect behavior

Comments

@nate-lema-trinity
Copy link

Terraform CLI Version

1.0.0

Terraform Provider Version

0.99.0

Company Name

No response

Terraform Configuration

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "3.116.0"
    }
    snowflake = {
      source  = "Snowflake-Labs/snowflake"
      version = "0.99.0"
    }
  }

  backend "azurerm" {
    subscription_id      = ""
    resource_group_name  = ""
    storage_account_name = ""
    container_name       = ""
    key                  = "state.tfstate"
  }
}

provider "azurerm" {
  skip_provider_registration = true
  features {}
}

provider "snowflake" {
  account       = var.SNOWFLAKE_ACCOUNT
  role          = var.SNOWFLAKE_ROLE
  authenticator = var.SNOWFLAKE_AUTHENTICATOR
}

Category

category:other

Object type(s)

No response

Expected Behavior

Expected a terraform plan to run

Actual Behavior

github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/provider.go:296 +0x1b8

github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ConfigureProvider(0xc000701da0, {0x24b1158?, 0xc000aae570?}, 0xc0009fec60)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:611 +0x3a9
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ConfigureProvider({{0x24c7ea0?, 0xc000701da0?}}, {0x24b1158?, 0xc000aae570?}, 0xc0009fec00?)
github.com/hashicorp/[email protected]/tf5to6server/tf5to6server.go:86 +0x182
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ConfigureProvider(0xc000a60af0, {0x24b1158?, 0xc000aae270?}, 0xc000aae240?)
github.com/hashicorp/[email protected]/tf6muxserver/mux_server_ConfigureProvider.go:28 +0x14f
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ConfigureProvider(0xc0001ff720, {0x24b1158?, 0xc000a83a40?}, 0xc000a3d400)
github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:558 +0x2db
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ConfigureProvider_Handler({0x20639e0?, 0xc0001ff720}, {0x24b1158, 0xc000a83a40}, 0xc000600280, 0x0)
github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:464 +0x169
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000a24000, {0x24b1158, 0xc000a839b0}, {0x24c30c0, 0xc000136780}, 0xc000a81440, 0xc000880540, 0x348acf0, 0x0)
google.golang.org/[email protected]/server.go:1369 +0xe23
google.golang.org/grpc.(*Server).handleStream(0xc000a24000, {0x24c30c0, 0xc000136780}, 0xc000a81440)
google.golang.org/[email protected]/server.go:1780 +0x1016
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 34
google.golang.org/[email protected]/server.go:1030 +0x135

Error: The terraform-provider-snowflake_v0.94.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.

##[error]Error: Terraform Plan failed with exit code: 1

Steps to Reproduce

Run terraform plan with "TerraformTaskV4@4" in azure devops

How much impact is this issue causing?

High

Logs

No response

Additional Information

No response

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@nate-lema-trinity nate-lema-trinity added the bug Used to mark issues with provider's incorrect behavior label Dec 4, 2024
@sfc-gh-asawicki
Copy link
Collaborator

Hey @nate-lema-trinity. Thanks for reaching out to us.

You claim to be using v0.99.0; however, from your logs, I can see v0.94.0 plugin crashed!. So which one is it?

Also, Terraform CLI should be bumped at least to at least 1.1.5 (check https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/CREATING_ISSUES.md#old-terraform-cli-version).

Also, the logs seem redacted because I can't see the origin in our provider's code. Please provide full execution logs with the TF_LOG=DEBUG flag enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to mark issues with provider's incorrect behavior
Projects
None yet
Development

No branches or pull requests

2 participants