Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tataranovich/08f20ffa7115a3c61e0f675db80178e6 to your computer and use it in GitHub Desktop.
Save tataranovich/08f20ffa7115a3c61e0f675db80178e6 to your computer and use it in GitHub Desktop.
OpenTofu failed without Git in container
2023-10-19T08:26:17.117Z [INFO] OpenTofu version: 1.6.0 alpha3
2023-10-19T08:26:17.117Z [DEBUG] using github.com/hashicorp/go-tfe v1.32.1
2023-10-19T08:26:17.117Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.18.1
2023-10-19T08:26:17.117Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2023-10-19T08:26:17.117Z [DEBUG] using github.com/zclconf/go-cty v1.14.1
2023-10-19T08:26:17.117Z [INFO] Go runtime version: go1.21.3
2023-10-19T08:26:17.117Z [INFO] CLI args: []string{"/usr/local/bin/tofu", "init"}
2023-10-19T08:26:17.117Z [TRACE] Stdout is a terminal of width 202
2023-10-19T08:26:17.117Z [TRACE] Stderr is a terminal of width 202
2023-10-19T08:26:17.117Z [TRACE] Stdin is a terminal
2023-10-19T08:26:17.117Z [DEBUG] Attempting to open CLI config file: /root/.tofurc
2023-10-19T08:26:17.117Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2023-10-19T08:26:17.117Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-10-19T08:26:17.117Z [DEBUG] ignoring non-existing provider search directory /root/.terraform.d/plugins
2023-10-19T08:26:17.117Z [DEBUG] ignoring non-existing provider search directory /root/.local/share/terraform/plugins
2023-10-19T08:26:17.117Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2023-10-19T08:26:17.118Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2023-10-19T08:26:17.118Z [DEBUG] Created the config directory: /root/.terraform.d
2023-10-19T08:26:17.118Z [INFO] CLI command args: []string{"init"}
Initializing the backend...
2023-10-19T08:26:17.123Z [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2023-10-19T08:26:17.123Z [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2023-10-19T08:26:17.123Z [DEBUG] New state was assigned lineage "51945d32-0b47-524a-9df3-410c0abc84c6"
2023-10-19T08:26:17.123Z [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2023-10-19T08:26:17.123Z [TRACE] Meta.Backend: instantiated backend of type <nil>
2023-10-19T08:26:17.123Z [DEBUG] checking for provisioner in "."
2023-10-19T08:26:17.123Z [DEBUG] checking for provisioner in "/usr/local/bin"
2023-10-19T08:26:17.123Z [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2023-10-19T08:26:17.123Z [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
2023-10-19T08:26:17.123Z [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate
2023-10-19T08:26:17.123Z [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2023-10-19T08:26:17.123Z [TRACE] statemgr.Filesystem: read nil snapshot
Initializing modules...
2023-10-19T08:26:17.124Z [TRACE] ModuleInstaller: installing child modules for . into .terraform/modules
2023-10-19T08:26:17.124Z [DEBUG] Module installer: begin gke
2023-10-19T08:26:17.124Z [TRACE] ModuleInstaller: gke is not yet installed
2023-10-19T08:26:17.124Z [TRACE] ModuleInstaller: cleaning directory .terraform/modules/gke prior to install of gke
2023-10-19T08:26:17.124Z [TRACE] ModuleInstaller: gke is a registry module at registry.opentofu.org/terraform-google-modules/kubernetes-engine/google
2023-10-19T08:26:17.124Z [DEBUG] gke listing available versions of registry.opentofu.org/terraform-google-modules/kubernetes-engine/google at registry.opentofu.org
2023-10-19T08:26:17.124Z [DEBUG] Service discovery for registry.opentofu.org at https://registry.opentofu.org/.well-known/terraform.json
2023-10-19T08:26:17.124Z [TRACE] HTTP client GET request to https://registry.opentofu.org/.well-known/terraform.json
2023-10-19T08:26:17.481Z [DEBUG] fetching module versions from "https://registry.opentofu.org/v1/modules/terraform-google-modules/kubernetes-engine/google/versions"
2023-10-19T08:26:17.481Z [DEBUG] GET https://registry.opentofu.org/v1/modules/terraform-google-modules/kubernetes-engine/google/versions
2023-10-19T08:26:17.481Z [TRACE] HTTP client GET request to https://registry.opentofu.org/v1/modules/terraform-google-modules/kubernetes-engine/google/versions
2023-10-19T08:26:18.641Z [DEBUG] found available version "28.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "27.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "26.1.1" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "26.1.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "26.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "25.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "24.1.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "24.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "23.3.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "23.2.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "23.1.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "23.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "22.1.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "22.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "21.2.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "21.1.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "21.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "20.0.0" for
2023-10-19T08:26:18.641Z [DEBUG] found available version "19.0.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "18.0.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "17.3.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "17.2.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "17.1.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "17.0.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "16.1.1" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "16.1.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "16.0.1" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "16.0.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "15.0.2" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "15.0.1" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "15.0.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "14.3.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "14.2.0" for
2023-10-19T08:26:18.642Z [DEBUG] found available version "14.1.0" for
2023-10-19T08:26:18.643Z [DEBUG] found available version "14.0.1" for
2023-10-19T08:26:18.643Z [DEBUG] found available version "14.0.0" for
2023-10-19T08:26:18.643Z [DEBUG] found available version "13.1.0" for
2023-10-19T08:26:18.643Z [DEBUG] found available version "13.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "12.3.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "12.2.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "12.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "12.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "11.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "11.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "10.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "9.4.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "9.3.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "9.2.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "9.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "9.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "8.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "8.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "7.3.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "7.2.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "7.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "7.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "6.2.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "6.1.1" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "6.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "6.0.1" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "6.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "5.1.1" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "5.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "5.0.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "5.0.0-rc1" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "4.1.0" for
2023-10-19T08:26:18.644Z [DEBUG] found available version "4.0.0" for
2023-10-19T08:26:18.645Z [DEBUG] found available version "3.0.0" for
2023-10-19T08:26:18.645Z [DEBUG] found available version "2.1.0" for
2023-10-19T08:26:18.645Z [DEBUG] found available version "2.0.1" for
2023-10-19T08:26:18.645Z [DEBUG] found available version "2.0.0" for
2023-10-19T08:26:18.645Z [DEBUG] found available version "1.0.1" for
2023-10-19T08:26:18.645Z [DEBUG] found available version "1.0.0" for
2023-10-19T08:26:18.646Z [TRACE] ModuleInstaller: gke ignoring 5.0.0-rc1 because it is a pre-release and was not requested exactly
Downloading registry.opentofu.org/terraform-google-modules/kubernetes-engine/google 28.0.0 for gke...
2023-10-19T08:26:18.647Z [DEBUG] looking up module location from "https://registry.opentofu.org/v1/modules/terraform-google-modules/kubernetes-engine/google/28.0.0/download"
2023-10-19T08:26:18.647Z [DEBUG] GET https://registry.opentofu.org/v1/modules/terraform-google-modules/kubernetes-engine/google/28.0.0/download
2023-10-19T08:26:18.647Z [TRACE] HTTP client GET request to https://registry.opentofu.org/v1/modules/terraform-google-modules/kubernetes-engine/google/28.0.0/download
2023-10-19T08:26:20.143Z [TRACE] ModuleInstaller: gke registry.opentofu.org/terraform-google-modules/kubernetes-engine/google 28.0.0 is available at "git::https://github.com/terraform-google-modules/terraform-google-kubernetes-engine?ref=v28.0.0"
2023-10-19T08:26:20.143Z [TRACE] getmodules: fetching "git::https://github.com/terraform-google-modules/terraform-google-kubernetes-engine?ref=v28.0.0" to ".terraform/modules/gke"
2023-10-19T08:26:20.144Z [TRACE] modsdir: writing modules manifest to .terraform/modules/modules.json
│ Error: Failed to download module
│ on main.tf line 11:
│ 11: module "gke" {
│ Could not download module "gke" (main.tf:11) source code from "git::https://github.com/terraform-google-modules/terraform-google-kubernetes-engine?ref=v28.0.0": error downloading
│ 'https://github.com/terraform-google-modules/terraform-google-kubernetes-engine?ref=v28.0.0': git must be available and on the PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment