Created
October 22, 2021 02:25
-
-
Save masonelmore/2f057fbdf0162b9f0bf3ff5fb51de194 to your computer and use it in GitHub Desktop.
Terraform init bug. Dependency lock file missing all platforms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ docker run -v /Users/mason.elmore/tmp/tf-init-reproduce:/src -w /src -e TF_LOG=trace hashicorp/terraform:1.0.9 init | |
2021-10-22T02:14:04.605Z [DEBUG] Adding temp file log sink: /tmp/terraform-log884013736 | |
2021-10-22T02:14:04.605Z [INFO] Terraform version: 1.0.9 | |
2021-10-22T02:14:04.605Z [INFO] Go runtime version: go1.16.4 | |
2021-10-22T02:14:04.605Z [INFO] CLI args: []string{"/bin/terraform", "init"} | |
2021-10-22T02:14:04.605Z [TRACE] Stdout is not a terminal | |
2021-10-22T02:14:04.606Z [TRACE] Stderr is not a terminal | |
2021-10-22T02:14:04.606Z [TRACE] Stdin is not a terminal | |
2021-10-22T02:14:04.606Z [DEBUG] Attempting to open CLI config file: /root/.terraformrc | |
2021-10-22T02:14:04.606Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2021-10-22T02:14:04.608Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2021-10-22T02:14:04.608Z [DEBUG] ignoring non-existing provider search directory /root/.terraform.d/plugins | |
2021-10-22T02:14:04.608Z [DEBUG] ignoring non-existing provider search directory /root/.local/share/terraform/plugins | |
2021-10-22T02:14:04.609Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins | |
2021-10-22T02:14:04.609Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins | |
2021-10-22T02:14:04.610Z [INFO] CLI command args: []string{"init"} | |
Initializing the backend... | |
2021-10-22T02:14:04.633Z [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2021-10-22T02:14:04.635Z [TRACE] Meta.Backend: backend has not previously been initialized in this working directory | |
2021-10-22T02:14:04.636Z [DEBUG] New state was assigned lineage "7eeefeb7-da98-e7af-3329-21aa80108874" | |
2021-10-22T02:14:04.636Z [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) | |
2021-10-22T02:14:04.636Z [TRACE] Meta.Backend: instantiated backend of type <nil> | |
2021-10-22T02:14:04.639Z [DEBUG] checking for provisioner in "." | |
2021-10-22T02:14:04.650Z [DEBUG] checking for provisioner in "/bin" | |
2021-10-22T02:14:04.655Z [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory | |
2021-10-22T02:14:04.655Z [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend | |
2021-10-22T02:14:04.656Z [TRACE] backend/local: state manager for workspace "default" will: | |
- read initial snapshot from terraform.tfstate | |
- write new snapshots to terraform.tfstate | |
- create any backup at terraform.tfstate.backup | |
2021-10-22T02:14:04.656Z [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate | |
2021-10-22T02:14:04.657Z [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay | |
2021-10-22T02:14:04.657Z [TRACE] statemgr.Filesystem: read nil snapshot | |
Initializing provider plugins... | |
- Finding latest version of hashicorp/null... | |
2021-10-22T02:14:04.660Z [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json | |
2021-10-22T02:14:04.660Z [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json | |
2021-10-22T02:14:04.858Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:04.859Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:04.881Z [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers | |
2021-10-22T02:14:04.883Z [TRACE] getproviders.SearchLocalDirectory: failed to resolve symlinks for .terraform/providers: lstat .terraform: no such file or directory | |
2021-10-22T02:14:04.885Z [TRACE] providercache.fillMetaCache: error while scanning directory .terraform/providers: cannot search .terraform/providers: lstat .terraform/providers: no such file or directory | |
2021-10-22T02:14:04.885Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/linux/amd64 | |
2021-10-22T02:14:04.886Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/linux/amd64 | |
2021-10-22T02:14:04.904Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:04.904Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:05.035Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
2021-10-22T02:14:05.035Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
- Installing hashicorp/null v3.1.0... | |
2021-10-22T02:14:05.038Z [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/null v3.1.0 from https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_linux_amd64.zip | |
2021-10-22T02:14:05.038Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_linux_amd64.zip | |
2021-10-22T02:14:05.354Z [DEBUG] Provider signed by 34365D9472D7468F HashiCorp Security (hashicorp.com/security) <security@hashicorp.com> | |
2021-10-22T02:14:05.958Z [TRACE] providercache.fillMetaCache: scanning directory .terraform/providers | |
2021-10-22T02:14:05.982Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/null v3.1.0 for linux_amd64 at .terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/linux_amd64 | |
2021-10-22T02:14:05.982Z [TRACE] providercache.fillMetaCache: including .terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/null 3.1.0 | |
- Installed hashicorp/null v3.1.0 (signed by HashiCorp) | |
Terraform has created a lock file .terraform.lock.hcl to record the provider | |
selections it made above. Include this file in your version control repository | |
so that Terraform can guarantee to make the same selections by default when | |
you run "terraform init" in the future. | |
Terraform has been successfully initialized! | |
You may now begin working with Terraform. Try running "terraform plan" to see | |
any changes that are required for your infrastructure. All Terraform commands | |
should now work. | |
If you ever set or change modules or backend configuration for Terraform, | |
rerun this command to reinitialize your working directory. If you forget, other | |
commands will detect it and remind you to do so if necessary. | |
+ cp .terraform.lock.hcl .terraform.lock.hcl.bak | |
++ pwd | |
+ docker run -v /Users/mason.elmore/tmp/tf-init-reproduce:/src -w /src -e TF_LOG=trace hashicorp/terraform:1.0.9 providers lock -platform=linux_arm64 -platform=linux_amd64 -platform=darwin_amd64 -platform=windows_amd64 | |
2021-10-22T02:14:06.915Z [DEBUG] Adding temp file log sink: /tmp/terraform-log491777348 | |
2021-10-22T02:14:06.915Z [INFO] Terraform version: 1.0.9 | |
2021-10-22T02:14:06.915Z [INFO] Go runtime version: go1.16.4 | |
2021-10-22T02:14:06.915Z [INFO] CLI args: []string{"/bin/terraform", "providers", "lock", "-platform=linux_arm64", "-platform=linux_amd64", "-platform=darwin_amd64", "-platform=windows_amd64"} | |
2021-10-22T02:14:06.915Z [TRACE] Stdout is not a terminal | |
2021-10-22T02:14:06.915Z [TRACE] Stderr is not a terminal | |
2021-10-22T02:14:06.915Z [TRACE] Stdin is not a terminal | |
2021-10-22T02:14:06.915Z [DEBUG] Attempting to open CLI config file: /root/.terraformrc | |
2021-10-22T02:14:06.916Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2021-10-22T02:14:06.917Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2021-10-22T02:14:06.917Z [DEBUG] ignoring non-existing provider search directory /root/.terraform.d/plugins | |
2021-10-22T02:14:06.917Z [DEBUG] ignoring non-existing provider search directory /root/.local/share/terraform/plugins | |
2021-10-22T02:14:06.918Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins | |
2021-10-22T02:14:06.918Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins | |
2021-10-22T02:14:06.919Z [INFO] CLI command args: []string{"providers", "lock", "-platform=linux_arm64", "-platform=linux_amd64", "-platform=darwin_amd64", "-platform=windows_amd64"} | |
2021-10-22T02:14:06.943Z [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json | |
2021-10-22T02:14:06.944Z [TRACE] HTTP client GET request to https://registry.terraform.io/.well-known/terraform.json | |
2021-10-22T02:14:07.028Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:07.029Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:07.048Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock647532965 | |
2021-10-22T02:14:07.048Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/linux/arm64 | |
2021-10-22T02:14:07.049Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/linux/arm64 | |
2021-10-22T02:14:07.067Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:07.067Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:07.086Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
2021-10-22T02:14:07.087Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
2021-10-22T02:14:07.089Z [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/null v3.1.0 from https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_linux_arm64.zip | |
- Fetching hashicorp/null 3.1.0 for linux_arm64... | |
2021-10-22T02:14:07.090Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_linux_arm64.zip | |
2021-10-22T02:14:07.384Z [DEBUG] Provider signed by 34365D9472D7468F HashiCorp Security (hashicorp.com/security) <security@hashicorp.com> | |
2021-10-22T02:14:07.691Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock647532965 | |
2021-10-22T02:14:07.692Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/null v3.1.0 for linux_arm64 at /tmp/terraform-providers-lock647532965/registry.terraform.io/hashicorp/null/3.1.0/linux_arm64 | |
2021-10-22T02:14:07.692Z [TRACE] providercache.fillMetaCache: including /tmp/terraform-providers-lock647532965/registry.terraform.io/hashicorp/null/3.1.0/linux_arm64 as a candidate package for registry.terraform.io/hashicorp/null 3.1.0 | |
- Obtained hashicorp/null checksums for linux_arm64 (signed by HashiCorp) | |
2021-10-22T02:14:07.729Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:07.729Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:07.751Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock268258079 | |
2021-10-22T02:14:07.752Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/linux/amd64 | |
2021-10-22T02:14:07.752Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/linux/amd64 | |
2021-10-22T02:14:07.775Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:07.775Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:07.792Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
2021-10-22T02:14:07.792Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
- Fetching hashicorp/null 3.1.0 for linux_amd64... | |
2021-10-22T02:14:07.795Z [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/null v3.1.0 from https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_linux_amd64.zip | |
2021-10-22T02:14:07.795Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_linux_amd64.zip | |
2021-10-22T02:14:08.109Z [DEBUG] Provider signed by 34365D9472D7468F HashiCorp Security (hashicorp.com/security) <security@hashicorp.com> | |
2021-10-22T02:14:08.410Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock268258079 | |
2021-10-22T02:14:08.411Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/null v3.1.0 for linux_amd64 at /tmp/terraform-providers-lock268258079/registry.terraform.io/hashicorp/null/3.1.0/linux_amd64 | |
2021-10-22T02:14:08.411Z [TRACE] providercache.fillMetaCache: including /tmp/terraform-providers-lock268258079/registry.terraform.io/hashicorp/null/3.1.0/linux_amd64 as a candidate package for registry.terraform.io/hashicorp/null 3.1.0 | |
- Obtained hashicorp/null checksums for linux_amd64 (signed by HashiCorp) | |
2021-10-22T02:14:08.451Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:08.451Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:08.469Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock443440809 | |
2021-10-22T02:14:08.470Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/darwin/amd64 | |
2021-10-22T02:14:08.471Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/darwin/amd64 | |
2021-10-22T02:14:08.490Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:08.490Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:08.507Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
2021-10-22T02:14:08.507Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
- Fetching hashicorp/null 3.1.0 for darwin_amd64... | |
2021-10-22T02:14:08.510Z [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/null v3.1.0 from https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_darwin_amd64.zip | |
2021-10-22T02:14:08.510Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_darwin_amd64.zip | |
2021-10-22T02:14:08.861Z [DEBUG] Provider signed by 34365D9472D7468F HashiCorp Security (hashicorp.com/security) <security@hashicorp.com> | |
2021-10-22T02:14:09.200Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock443440809 | |
2021-10-22T02:14:09.200Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/null v3.1.0 for darwin_amd64 at /tmp/terraform-providers-lock443440809/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64 | |
2021-10-22T02:14:09.201Z [TRACE] providercache.fillMetaCache: including /tmp/terraform-providers-lock443440809/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64 as a candidate package for registry.terraform.io/hashicorp/null 3.1.0 | |
- Obtained hashicorp/null checksums for darwin_amd64 (signed by HashiCorp) | |
2021-10-22T02:14:09.246Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:09.246Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/versions | |
2021-10-22T02:14:09.264Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock612532931 | |
2021-10-22T02:14:09.265Z [DEBUG] GET https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/windows/amd64 | |
2021-10-22T02:14:09.265Z [TRACE] HTTP client GET request to https://registry.terraform.io/v1/providers/hashicorp/null/3.1.0/download/windows/amd64 | |
2021-10-22T02:14:09.295Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:09.296Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS | |
2021-10-22T02:14:09.317Z [DEBUG] GET https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
2021-10-22T02:14:09.317Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_SHA256SUMS.72D7468F.sig | |
- Fetching hashicorp/null 3.1.0 for windows_amd64... | |
2021-10-22T02:14:09.321Z [TRACE] providercache.Dir.InstallPackage: installing registry.terraform.io/hashicorp/null v3.1.0 from https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_windows_amd64.zip | |
2021-10-22T02:14:09.321Z [TRACE] HTTP client GET request to https://releases.hashicorp.com/terraform-provider-null/3.1.0/terraform-provider-null_3.1.0_windows_amd64.zip | |
2021-10-22T02:14:09.635Z [DEBUG] Provider signed by 34365D9472D7468F HashiCorp Security (hashicorp.com/security) <security@hashicorp.com> | |
2021-10-22T02:14:09.954Z [TRACE] providercache.fillMetaCache: scanning directory /tmp/terraform-providers-lock612532931 | |
2021-10-22T02:14:09.954Z [TRACE] getproviders.SearchLocalDirectory: found registry.terraform.io/hashicorp/null v3.1.0 for windows_amd64 at /tmp/terraform-providers-lock612532931/registry.terraform.io/hashicorp/null/3.1.0/windows_amd64 | |
2021-10-22T02:14:09.954Z [TRACE] providercache.fillMetaCache: including /tmp/terraform-providers-lock612532931/registry.terraform.io/hashicorp/null/3.1.0/windows_amd64 as a candidate package for registry.terraform.io/hashicorp/null 3.1.0 | |
- Obtained hashicorp/null checksums for windows_amd64 (signed by HashiCorp) | |
Success! Terraform has updated the lock file. | |
Review the changes in .terraform.lock.hcl and then commit to your | |
version control system to retain the new checksums. | |
+ diff .terraform.lock.hcl .terraform.lock.hcl.bak | |
7,8d6 | |
< "h1:/pDuGENc39GlIz47Ehrdzgk+Pu7p7RB4ChNbK7QFg/I=", | |
< "h1:SFT7X3zY18CLWjoH2GfQyapxsRv6GDKsy9cF1aRwncc=", | |
10d7 | |
< "h1:xhbHC6in3nQryvTQBWKxebi3inG5OCgHgc4fRxL0ymc=", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment