-
Notifications
You must be signed in to change notification settings - Fork 10
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
Powershell script downloads 32-bit version on non-English Windows versions #37
Comments
This appears to be linked to hashicorp/terraform-plugin-sdk#1236. I think that resolves to https://github.com/hashicorp/terraform-plugin-sdk/blob/da29621efae69dd03dfdc540aa5f63beab1b764c/helper/schema/field_reader.go#L325 and https://pkg.go.dev/strconv#ParseInt. My understanding is that it defaults to trying to parse a 32-bit signed integer and the value provided is larger than that. You are running OpenTofu on a 32-bit installation. Were you running terraform on a 64-bit installation? Did anything else change during your migration to OpenTofu? |
Yes terraform was for 64bit, and I was pretty sure that OpenTofu was also in 64bit, as I used PowerShell script from documentation. |
That was it. So PowerShell script https://get.opentofu.org/install-opentofu.ps1 is installing 32bit version of Tofu on 64bit OS |
@AdamMir86 can you give me more information about your host OS? I have a Win 11 64-bit AMD and I can't reproduce the failure. |
Sure:
|
@AdamMir86 I'm on build 26100, but I don't think that should make a difference. Could you run the script and paste the entire output here or send it over on the OpenTofu Slack please? Something is wrong here. |
Alternatively, could you please run the following in a PowerShell window?
|
I think issue is that i'm using Polish language, and output given for that command is:
|
and full output from PS script:
|
😮 The output is language-dependent? That explains everything. Thank you @AdamMir86 ! |
Your welcome! Glad my issue had helped You a bit |
Fixes #37: Incorrect os architecture detection on localized OS
OpenTofu Version
OpenTofu Configuration Files
not needed
Debug Output
Expected Behavior
plan or apply should not end for error for existing EFS volume
Actual Behavior
Steps to Reproduce
Switch on EFS module that so far was managed via Terraform
Additional Context
I'm in process of migration from terraform to OpenTofu. As a overhead orchestration tool I use terragrunt (v 0.68.7 ).
Each projects code that i posses undergo same steps:
Except changes from Terraform to OpenTofu, no other changes being made in such way.
On one project when Tofu is parsing existing tfstate file, I get constant error
Error reading level state: strconv.ParseInt: parsing "2885974016": value out of range
.I Looked on that EFS volume and it's not so big slightly more then 2GB in size currently, the size of
value_in_ia (Infrequent Access storage class) is much grater then on other EFS that I use.
Im reluctant to manually edit tfstate, as probably it will help only once here.
Related tfstate file part that cause issue:
Note1: AWS EFS module used AWs module in version 5.50.0
Note2: removing AWS module limitation and upgrading it to 5.74.0 do not resolve issue
References
No response
The text was updated successfully, but these errors were encountered: