-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
plugin crashes destroying BQ dataset panic: Error reading level state: strconv.ParseInt: parsing "1691737052926": value out of range #15501
Comments
Since the resource has been deleted, I removed it from the state with Now tf destroy works without crashing. |
@intotecho is it possible to repro? Is it running on Windows? |
Hello, @intotecho , I cannot reproduce the issue with the following configuration in the provider 4.77.0.
Can you please reproduce the issue and provide more logs? I cannot figure out what filed caused the issue without more information. Thanks. |
After removing the resource from the state, and deleting it from the console, I was able to rebuild it. |
On reflection, the refreshed API Key will need a new name, since they are not deleted in GCP but hang around as deleted keys for 30 days preventing terraform from creating a new key with the same name. |
The problem resurfaced in another terraform project, I think I found the culprit. I upgraded terraform from 1.4.0 to 1.5.5 and the google provider from 4.60 to 4.7.7 but in the process I switched terraform from windows_amd64 to windows_x86.
The crash was similar, and also around a bigquery dataset. I checked the version of terraform, and also my previous version terraform --version
Terraform v1.5.5
on windows_386
+ provider registry.terraform.io/hashicorp/google v4.77.0
+ provider registry.terraform.io/hashicorp/google-beta v4.77.0
terraform_1_4.exe --version
Terraform v1.4.5
on windows_amd64
+ provider registry.terraform.io/hashicorp/google v4.77.0
+ provider registry.terraform.io/hashicorp/google-beta v4.77.0
echo $PROCESSOR_ARCHITECTURE
AMD64
I switched to the windows_amd64 version and it resolved the crash issue.
|
Looks like the architecture is the issue here. I think the root cause is here: hashicorp/terraform-plugin-sdk#469 which I will reopen due to this still occurring on modern versions of the SDK. |
I'm going to close this out in favor of #6518, but I'll add a link to this to show it still happens |
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
Terraform v1.5.5
on windows_386
Affected Resource(s)
Terraform Configuration Files
This is not the complete config, just a submodule.
Debug Output
Panic Output
Expected Behavior
Destroy the dataset.
Actual Behavior
Panic
Steps to Reproduce
1.
terraform destroy
, orterraform destroy -target=module.tracemark_project.module.bigquery.google_bigquery_dataset.main
Important Factoids
I have a complex module to configure a project. It includes creating a bigquery dataset.
I refactored it and also renamed the parent module, leading to everything under the old name being destroyed. I have target destroyed all the resources in the state, so only this resource remains and some data resources.
After identifying it was the dataset, I deleted the dataset from the BQ console. But this did not change the panic output.
References
The text was updated successfully, but these errors were encountered: