terraform-provider-google: The terraform-provider-google_v4.43.0_x5 plugin crashed!

Community Note

  • Please vote on this issue by adding a πŸ‘ reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

terraform { required_version = β€œ>= 0.13” required_providers {

google = {
  source  = "hashicorp/google"
  version = "~> 4.43.0"
}

} }

Affected Resource(s)

Cloud Run Spanner DB Cloud Functions

** google_v4.43.0_x5**

Terraform Configuration Files

# Copy-paste your Terraform configurations here.
#
# For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file.
# For security, you can also encrypt the files using our GPG public key:
#    https://www.hashicorp.com/security
#
# If reproducing the bug involves modifying the config file (e.g., apply a config,
# change a value, apply the config again, see the bug), then please include both:
# * the version of the config before the change, and
# * the version of the config after the change.

Debug Output

can be fixed. The output above should help diagnose the issue. helpful if you could report the crash with the plugin’s maintainers so that it This is always indicative of a bug within the plugin. It would be immensely

Error: The terraform-provider-google_v4.43.0_x5 plugin crashed!

google.golang.org/grpc@v1.50.1/server.go:963 +0x28a"

created by google.golang.org/grpc.(*Server).serveStreams.func1 google.golang.org/grpc@v1.50.1/server.go:965 +0x98" google.golang.org/grpc.(*Server).serveStreams.func1.2() google.golang.org/grpc@v1.50.1/server.go:1713 +0xa1b" google.golang.org/grpc.(*Server).handleStream(0xc0000001e0, {0x323c888, 0xc00087cea0}, 0xc000f3a7e0, 0x0) google.golang.org/grpc@v1.50.1/server.go:1340 +0xd13" google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000001e0, {0x323c888, 0xc00087cea0}, 0xc000f3a7e0, 0xc000868f00, 0x438de60, 0x0) github.com/hashicorp/terraform-plugin-go@v0.10.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170" github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x2c63920?, 0xc0004ea500}, {0x32374a0, 0xc000a841e0}, 0xc00029b260, 0x0) github.com/hashicorp/terraform-plugin-go@v0.10.0/tfprotov5/tf5server/server.go:813 +0x4fc" github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0004ea500, {0x32374a0?, 0xc000a841e0?}, 0xc00029b2d0) github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/helper/schema/grpc_provider.go:1021 +0xe3c" github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0008783c0, {0x32374a0?, 0xc000a84750?}, 0xc0014cc550) github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/helper/schema/resource.go:837 +0xa7a" github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000705180, {0x32374a0, 0xc000a84810}, 0xc00057fe10, 0xc000cc3f80, {0x2cd0e80, 0xc0008e9000}) github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/helper/schema/resource.go:695 +0x178" github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x32374a0?, {0x32374a0?, 0xc000a84810?}, 0xd?, {0x2cd0e80?, 0xc0008e9000?}) github.com/hashicorp/terraform-provider-google/google/resource_spanner_database.go:342 +0x1fb9" github.com/hashicorp/terraform-provider-google/google.resourceSpannerDatabaseCreate(0xc000f72100, {0x2cd0e80?, 0xc0008e9000?}) goroutine 927 [running]:

panic: interface conversion: interface {} is nil, not string

Stack trace from the terraform-provider-google_v4.43.0_x5 plugin:

goroutine 927 [running]:

panic: interface conversion: interface {} is nil, not string

Stack trace from the terraform-provider-google_v4.43.0_x5 plugin:

Panic Output

panic: interface conversion: interface {} is nil, not string

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • b/261188358

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 11
  • Comments: 16 (4 by maintainers)

Most upvoted comments

I’m observing this same error when using the sample provider configuration:

provider "google" {
  project     = "my-project-id"
  region      = "us-central1"
}

resource "google_service_account" "my_service_account" {
  account_id   = "${var.service_account_name}"
  display_name = "My VM Service Account"
}

error:

β”‚ Error: Plugin did not respond
β”‚
β”‚   with provider["registry.terraform.io/hashicorp/google"],
β”‚   on main.tf line 3, in provider "google":
β”‚    3: provider "google" {
β”‚
β”‚ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ConfigureProvider call. The plugin logs may contain more details.
β•΅

Stack trace from the terraform-provider-google_v4.43.0_x5 plugin:

panic: interface conversion: interface {} is nil, not string