-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 plan crashes: interface conversion: interface {} is string, not map[string]interface {} #9230
Terraform plan crashes: interface conversion: interface {} is string, not map[string]interface {} #9230
Comments
The issue is caused by the following TF file:
|
This is the relevant state entry:
|
From what I understand this bug is occurring when reading the state file for the associated resources. |
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. |
Community Note
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 tohashibot
, a community member has claimed the issue already.Terraform Version
15.4
Affected Resource(s)
All resources, plans and applies will not run
Terraform Configuration Files
Debug Output
Panic Output
│ Error: Request cancelled
│
│ with google_bigquery_table.US_Base_Data_Whse_Master_view,
│ on wrl_us_base_data_whse_master.tf line 78, in resource "google_bigquery_table" "US_Base_Data_Whse_Master_view":
│ 78: resource "google_bigquery_table" "US_Base_Data_Whse_Master_view" {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ with google_bigquery_table.US_Sams_Base_Data_Weekly_POS_view,
│ on wrl_us_sams_base_data_pos.tf line 62, in resource "google_bigquery_table" "US_Sams_Base_Data_Weekly_POS_view":
│ 62: resource "google_bigquery_table" "US_Sams_Base_Data_Weekly_POS_view" {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ with google_bigquery_table.USA_Samsclub_Base_Data_Product_Master_view,
│ on wrl_usa_samsclub_base_product_master_bq.tf line 427, in resource "google_bigquery_table" "USA_Samsclub_Base_Data_Product_Master_view":
│ 427: resource "google_bigquery_table" "USA_Samsclub_Base_Data_Product_Master_view" {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
Stack trace from the terraform-provider-google_v3.68.0_x5 plugin:
panic: interface conversion: interface {} is string, not map[string]interface {}
goroutine 21779 [running]:
github.com/hashicorp/terraform-provider-google/google.bigQueryTablecheckNameExists(0xc000ce4300, 0x1, 0x1, 0x418377, 0x8)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_bigquery_table.go:35 +0x16d
github.com/hashicorp/terraform-provider-google/google.jsonCompareWithMapKeyOverride(0x267c920, 0xc000ce2948, 0x267c920, 0xc000ce2990, 0x2e341c0, 0xc000ff4d01, 0x26b4620, 0xc000d9f270)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_bigquery_table.go:56 +0x668
github.com/hashicorp/terraform-provider-google/google.jsonCompareWithMapKeyOverride(0x288fb80, 0xc000f225d0, 0x288fb80, 0xc000f22cc0, 0x2e341c0, 0x1, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_bigquery_table.go:96 +0x3f6
github.com/hashicorp/terraform-provider-google/google.jsonCompareWithMapKeyOverride(0x288fb80, 0xc000f225a0, 0x288fb80, 0xc000f22c90, 0x2e341c0, 0xc000d9ffe0, 0x194, 0x267c920)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_bigquery_table.go:96 +0x3f6
github.com/hashicorp/terraform-provider-google/google.jsonCompareWithMapKeyOverride(0x267c920, 0xc000ce2960, 0x267c920, 0xc000ce29a8, 0x2e341c0, 0x0, 0x0, 0xc000d9e990)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_bigquery_table.go:65 +0x779
github.com/hashicorp/terraform-provider-google/google.bigQueryTableSchemaDiffSuppress(0x2cfe154, 0x6, 0xc000f0ed00, 0x8b8, 0xc0000ef200, 0x8b8, 0xc000d78d80, 0x203000)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-google/google/resource_bigquery_table.go:156 +0x26f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diff(0xc0005a58c0, 0x2cfe154, 0x6, 0xc000147040, 0xc000e2b080, 0x31d2a28, 0xc000d78d80, 0xc000fbba00, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/schema.go:972 +0x383
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0xc0005a58c0, 0x31a3140, 0xc000f64840, 0xc000fb9a40, 0xc00130c7e0, 0xc000078a20, 0x2cd8c00, 0xc0002d5800, 0x3fcf500, 0x26b4620, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/schema.go:522 +0x219
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0xc000090700, 0x31a3140, 0xc000f64840, 0xc000fb9a40, 0xc00130c7e0, 0x2cd8c00, 0xc0002d5800, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:506 +0xa5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).PlanResourceChange(0xc0000af710, 0x31a3140, 0xc000f64840, 0xc000bd7450, 0xc000f64840, 0x2c2c320, 0xc0011ade00)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:693 +0x7c5
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).PlanResourceChange(0xc000e2be20, 0x31a31e8, 0xc000f64840, 0xc000fb9960, 0xc000e2be20, 0xc0011ade60, 0xc000cf3ba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/server/server.go:315 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler(0x2c2c320, 0xc000e2be20, 0x31a31e8, 0xc0011ade60, 0xc000fde120, 0x0, 0x31a31e8, 0xc0011ade60, 0xc000d08000, 0x29ae)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:362 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003a7500, 0x31dae98, 0xc0000bf680, 0xc000e7d100, 0xc0005a5e60, 0x3f8b448, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:1217 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0003a7500, 0x31dae98, 0xc0000bf680, 0xc000e7d100, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:1540 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0005a2220, 0xc0003a7500, 0x31dae98, 0xc0000bf680, 0xc000e7d100)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:878 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/[email protected]/server.go:876 +0x1fd
Error: The terraform-provider-google_v3.68.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.
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: