hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.32k stars 1.72k forks source link

Error: The terraform-provider-google_v5.35.0_x5 plugin crashed! #19462

Closed justin-meisner closed 1 month ago

justin-meisner commented 1 month ago

Community Note

Terraform Version & Provider Version(s)

Terraform v1.3.9 on

Affected Resource(s)

I can't apply new changes to my Bigquery database.

I'm not totally tech savvy, is there something simple I can do to fix this or does this required re-tooling some more intricate things?

Terraform Configuration

tack trace from the terraform-provider-google_v5.35.0_x5 plugin:

panic: interface conversion: interface {} is []interface {}, not map[string]interface {}

goroutine 14931 [running]:
github.com/hashicorp/terraform-provider-google/google/services/bigquery.bigQueryTablecheckNameExists({0xc002161800?, 0x26, 0xc00231e920?})
    github.com/hashicorp/terraform-provider-google/google/services/bigquery/resource_bigquery_table.go:44 +0xd6
github.com/hashicorp/terraform-provider-google/google/services/bigquery.resourceBigQueryTableSchemaIsChangeable({0x35750e0?, 0xc002333530?}, {0x35750e0?, 0xc002333560?}, 0x0, 0x1)
    github.com/hashicorp/terraform-provider-google/google/services/bigquery/resource_bigquery_table.go:276 +0x525
github.com/hashicorp/terraform-provider-google/google/services/bigquery.resourceBigQueryTableSchemaCustomizeDiffFunc({0x45c5728, 0xc0022e1900})
    github.com/hashicorp/terraform-provider-google/google/services/bigquery/resource_bigquery_table.go:392 +0x2d6
github.com/hashicorp/terraform-provider-google/google/services/bigquery.resourceBigQueryTableSchemaCustomizeDiff({0x0?, 0x0?}, 0x0?, {0x3e1cd00?, 0xc0002fd500?})
    github.com/hashicorp/terraform-provider-google/google/services/bigquery/resource_bigquery_table.go:407 +0x1d
github.com/hashicorp/terraform-provider-google/google/services/bigquery.ResourceBigQueryTable.All.func3({0x45c0398, 0xc000e83050}, 0x3e5f6f3?, {0x3e1cd00, 0xc0002fd500})
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/customdiff/compose.go:52 +0xd2
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0xc000dd8f30, {0x45c0398, 0xc000e83050}, 0xc001e6d790, 0xc002291630, 0xc000423b00, {0x3e1cd00, 0xc0002fd500}, 0x0)
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/schema.go:698 +0x4b4
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0x45c0ad0?, {0x45c0398?, 0xc000e83050?}, 0xc001e6d790, 0x381e160?, {0x3e1cd00?, 0xc0002fd500?})
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/resource.go:962 +0xd5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).PlanResourceChange(0xc000d741b0, {0x45c0398?, 0xc000e82f30?}, 0xc002290230)
    github.com/hashicorp/terraform-plugin-sdk/v2@v2.33.0/helper/schema/grpc_provider.go:798 +0x9b6
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).PlanResourceChange(0xc0004a2c40, {0x45c0398?, 0xc000e82c30?}, 0xc002290230)
    github.com/hashicorp/terraform-plugin-mux@v0.15.0/tf5muxserver/mux_server_PlanResourceChange.go:73 +0x2ad
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).PlanResourceChange(0xc000528460, {0x45c0398?, 0xc000e82420?}, 0xc001188000)
    github.com/hashicorp/terraform-plugin-go@v0.22.1/tfprotov5/tf5server/server.go:811 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler({0x3dc46e0?, 0xc000528460}, {0x45c0398, 0xc000e82420}, 0xc0026c4080, 0x0)
    github.com/hashicorp/terraform-plugin-go@v0.22.1/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:500 +0x169
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001b7a00, {0x45c0398, 0xc000e82390}, {0x45cb330, 0xc000712180}, 0xc0014a0000, 0xc001122e40, 0x61920c0, 0x0)
    google.golang.org/grpc@v1.63.2/server.go:1369 +0xe23
google.golang.org/grpc.(*Server).handleStream(0xc0001b7a00, {0x45cb330, 0xc000712180}, 0xc0014a0000)
    google.golang.org/grpc@v1.63.2/server.go:1780 +0x1016
google.golang.org/grpc.(*Server).serveStreams.func2.1()
    google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 69
    google.golang.org/grpc@v1.63.2/server.go:1030 +0x135

Error: The terraform-provider-google_v5.35.0_x5 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.

Debug Output

No response

Expected Behavior

No response

Actual Behavior

No response

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

github-actions[bot] commented 3 days ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.