terraformer icon indicating copy to clipboard operation
terraformer copied to clipboard

gcp provider panic

Open janet23333 opened this issue 1 year ago • 17 comments

2023-05-12T16:17:24.450+0800 [ERROR] plugin.terraform-provider-google_v4.63.1_x5: Response contains error diagnostic: tf_provider_addr=registry.terraform.io/hashicorp/google tf_rpc=Configure diagnostic_summary="Value Conversion Error" @module=sdk.proto diagnostic_attribute="" diagnostic_detail= | An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer: | | Received null value, however the target type cannot handle null values. Use the corresponding types package type, a pointer type or a custom type that handles null values. | | Path: | Target Type: google.ProviderModel | Suggested types Type: basetypes.ObjectValue | Suggested Pointer Type: *google.ProviderModel diagnostic_severity=ERROR tf_proto_version=5.3 @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 tf_req_id=68b642bf-87c7-acef-8c71-4b62127a5b40 timestamp="2023-05-12T16:17:24.450+0800"

terraform version Terraform v1.4.6 on darwin_amd64

terraformer version Terraformer v0.8.22

provider version plugins/darwin_amd64/terraform-provider-google_v4.63.1_x5

janet23333 avatar May 12 '23 08:05 janet23333

Did you solve this? Running into the same issue

arod0719 avatar May 15 '23 18:05 arod0719

I also have the same problem

880831ian avatar May 16 '23 08:05 880831ian

Me too. :-(

rober15 avatar May 16 '23 18:05 rober15

Me too

rrequero avatar May 17 '23 08:05 rrequero

+1

fairglen avatar Jun 07 '23 14:06 fairglen

me too, I also have the same problem

fhmlsml avatar Jun 14 '23 08:06 fhmlsml

Hitting the same issue

downgrading the provider worked for me: https://github.com/GoogleCloudPlatform/terraformer/issues/1692#issuecomment-1548885415

nburns avatar Jun 16 '23 21:06 nburns

I found that 4.59.0 is the highest "hashicorp/google" provider version that works with Terraformer as of 7/11/23.

Terraformer v0.8.24 (darwin_arm64) Terraform v1.5.2 (darwin_arm64) terraform-provider-google_v4.59.0_x5 (darwin_arm64)

I also tried with a full amd_64 stack and got the same results.

gmuench-cog avatar Jul 12 '23 16:07 gmuench-cog

您好,您的邮件已收到,我会尽快阅读,祝您生活愉快~

janet23333 avatar Jul 12 '23 16:07 janet23333

thank you @gmuench-cog 🥇 💯 👍 !

FWIW, the same error is referenced in these issues: https://github.com/GoogleCloudPlatform/terraformer/issues/1728 https://github.com/GoogleCloudPlatform/terraformer/issues/1692 https://github.com/GoogleCloudPlatform/terraformer/issues/1695 https://github.com/GoogleCloudPlatform/terraformer/discussions/1698

brianmaresca avatar Jul 21 '23 21:07 brianmaresca

I found that 4.59.0 is the highest "hashicorp/google" provider version that works with Terraformer as of 7/11/23.

Terraformer v0.8.24 (darwin_arm64) Terraform v1.5.2 (darwin_arm64) terraform-provider-google_v4.59.0_x5 (darwin_arm64)

I also tried with a full amd_64 stack and got the same results.

This worked for me as well.

nl-devonainsworth avatar Aug 21 '23 16:08 nl-devonainsworth

I found that 4.59.0 is the highest "hashicorp/google" provider version that works with Terraformer as of 7/11/23.

Terraformer v0.8.24 (darwin_arm64) Terraform v1.5.2 (darwin_arm64) terraform-provider-google_v4.59.0_x5 (darwin_arm64)

I also tried with a full amd_64 stack and got the same results.

Thanks ! That made the issue go away!

I still get 0 number of resources imported, but I think I need to troubleshoot more on why...

Cheers!

jralmaraz avatar Aug 22 '23 04:08 jralmaraz

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 22 '23 01:10 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jan 14 '24 01:01 github-actions[bot]

still applies

nburns avatar Jan 16 '24 17:01 nburns

indeed :(

teadur avatar Feb 01 '24 15:02 teadur

anyone else running into this, here's a version.tf you can terraform init against:

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "4.59.0"
    }
  }
  required_version = "= 1.5.2"
}

You can use tfswitch 1.5.2 to switch the version

bt-nia avatar Feb 05 '24 16:02 bt-nia

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Apr 08 '24 01:04 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Apr 18 '24 01:04 github-actions[bot]