Skip to content

Instantly share code, notes, and snippets.

@wbadart
Created September 28, 2022 17:17
Show Gist options
  • Save wbadart/533690a9cb2cc66458df979c93d9795a to your computer and use it in GitHub Desktop.
Save wbadart/533690a9cb2cc66458df979c93d9795a to your computer and use it in GitHub Desktop.
TF_LOG=DEBUG terraform apply -auto-approve -no-color
2022-09-28T11:16:25.185-0600 [INFO] Terraform version: 1.3.0
2022-09-28T11:16:25.185-0600 [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2022-09-28T11:16:25.185-0600 [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.0
2022-09-28T11:16:25.185-0600 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2022-09-28T11:16:25.185-0600 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-09-28T11:16:25.185-0600 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2022-09-28T11:16:25.185-0600 [INFO] Go runtime version: go1.18.5
2022-09-28T11:16:25.185-0600 [INFO] CLI args: []string{"terraform", "apply", "-auto-approve", "-no-color"}
2022-09-28T11:16:25.185-0600 [DEBUG] Attempting to open CLI config file: /Users/williambadart/.terraformrc
2022-09-28T11:16:25.185-0600 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-09-28T11:16:25.185-0600 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-09-28T11:16:25.185-0600 [DEBUG] ignoring non-existing provider search directory /Users/williambadart/.terraform.d/plugins
2022-09-28T11:16:25.185-0600 [DEBUG] ignoring non-existing provider search directory /Users/williambadart/Library/Application Support/io.terraform/plugins
2022-09-28T11:16:25.185-0600 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-09-28T11:16:25.186-0600 [INFO] CLI command args: []string{"apply", "-auto-approve", "-no-color"}
2022-09-28T11:16:25.187-0600 [DEBUG] New state was assigned lineage "335914d8-5ee6-7a50-c02c-d60445509dc9"
2022-09-28T11:16:25.249-0600 [DEBUG] checking for provisioner in "."
2022-09-28T11:16:25.253-0600 [DEBUG] checking for provisioner in "/Users/williambadart/.nix-profile/bin"
2022-09-28T11:16:25.254-0600 [INFO] backend/local: starting Apply operation
2022-09-28T11:16:25.255-0600 [DEBUG] created provider logger: level=debug
2022-09-28T11:16:25.255-0600 [INFO] provider: configuring client automatic mTLS
2022-09-28T11:16:25.273-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0]
2022-09-28T11:16:25.275-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12349
2022-09-28T11:16:25.275-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0
2022-09-28T11:16:25.299-0600 [INFO] provider.terraform-provider-docker_v2.22.0: configuring server automatic mTLS: timestamp=2022-09-28T11:16:25.299-0600
2022-09-28T11:16:25.318-0600 [DEBUG] provider.terraform-provider-docker_v2.22.0: plugin address: address=/var/folders/f0/9ksm50552z9_vpr3k2jc2ypw0000gp/T/plugin3079505195 network=unix timestamp=2022-09-28T11:16:25.317-0600
2022-09-28T11:16:25.318-0600 [DEBUG] provider: using plugin: version=5
2022-09-28T11:16:25.347-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-28T11:16:25.348-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12349
2022-09-28T11:16:25.348-0600 [DEBUG] provider: plugin exited
2022-09-28T11:16:25.349-0600 [DEBUG] Building and walking validate graph
2022-09-28T11:16:25.349-0600 [DEBUG] ProviderTransformer: "docker_image.nginx" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2022-09-28T11:16:25.349-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx" references: []
2022-09-28T11:16:25.349-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
2022-09-28T11:16:25.349-0600 [DEBUG] Starting graph walk: walkValidate
2022-09-28T11:16:25.350-0600 [DEBUG] created provider logger: level=debug
2022-09-28T11:16:25.350-0600 [INFO] provider: configuring client automatic mTLS
2022-09-28T11:16:25.367-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0]
2022-09-28T11:16:25.369-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12350
2022-09-28T11:16:25.369-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0
2022-09-28T11:16:25.393-0600 [INFO] provider.terraform-provider-docker_v2.22.0: configuring server automatic mTLS: timestamp=2022-09-28T11:16:25.393-0600
2022-09-28T11:16:25.411-0600 [DEBUG] provider.terraform-provider-docker_v2.22.0: plugin address: address=/var/folders/f0/9ksm50552z9_vpr3k2jc2ypw0000gp/T/plugin2917903494 network=unix timestamp=2022-09-28T11:16:25.411-0600
2022-09-28T11:16:25.411-0600 [DEBUG] provider: using plugin: version=5
2022-09-28T11:16:25.439-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-28T11:16:25.441-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12350
2022-09-28T11:16:25.441-0600 [DEBUG] provider: plugin exited
2022-09-28T11:16:25.441-0600 [INFO] backend/local: apply calling Plan
2022-09-28T11:16:25.441-0600 [DEBUG] Building and walking plan graph for NormalMode
2022-09-28T11:16:25.441-0600 [DEBUG] ProviderTransformer: "docker_image.nginx (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2022-09-28T11:16:25.441-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx (expand)" references: []
2022-09-28T11:16:25.441-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
2022-09-28T11:16:25.441-0600 [DEBUG] Starting graph walk: walkPlan
2022-09-28T11:16:25.442-0600 [DEBUG] created provider logger: level=debug
2022-09-28T11:16:25.442-0600 [INFO] provider: configuring client automatic mTLS
2022-09-28T11:16:25.459-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0]
2022-09-28T11:16:25.462-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12351
2022-09-28T11:16:25.462-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0
2022-09-28T11:16:25.487-0600 [INFO] provider.terraform-provider-docker_v2.22.0: configuring server automatic mTLS: timestamp=2022-09-28T11:16:25.487-0600
2022-09-28T11:16:25.506-0600 [DEBUG] provider.terraform-provider-docker_v2.22.0: plugin address: address=/var/folders/f0/9ksm50552z9_vpr3k2jc2ypw0000gp/T/plugin2299452410 network=unix timestamp=2022-09-28T11:16:25.506-0600
2022-09-28T11:16:25.506-0600 [DEBUG] provider: using plugin: version=5
2022-09-28T11:16:25.536-0600 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/kreuzwerker/docker\"]" changed the config value, but that value is unused
2022-09-28T11:16:25.541-0600 [DEBUG] Resource instance state not found for node "docker_image.nginx", instance docker_image.nginx
2022-09-28T11:16:25.541-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx" references: []
2022-09-28T11:16:25.541-0600 [DEBUG] refresh: docker_image.nginx: no state, so not refreshing
2022-09-28T11:16:25.544-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-28T11:16:25.546-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12351
2022-09-28T11:16:25.546-0600 [DEBUG] provider: plugin exited
2022-09-28T11:16:25.546-0600 [DEBUG] building apply graph to check for errors
2022-09-28T11:16:25.546-0600 [DEBUG] Resource state not found for node "docker_image.nginx", instance docker_image.nginx
2022-09-28T11:16:25.546-0600 [DEBUG] ProviderTransformer: "docker_image.nginx (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2022-09-28T11:16:25.546-0600 [DEBUG] ProviderTransformer: "docker_image.nginx" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/kreuzwerker/docker"]
2022-09-28T11:16:25.546-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx (expand)" references: []
2022-09-28T11:16:25.546-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx" references: []
2022-09-28T11:16:25.547-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# docker_image.nginx will be created
+ resource "docker_image" "nginx" {
+ id = (known after apply)
+ image_id = (known after apply)
+ latest = (known after apply)
+ name = "nginx:latest"
+ output = (known after apply)
+ repo_digest = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
2022-09-28T11:16:25.547-0600 [INFO] backend/local: apply calling Apply
2022-09-28T11:16:25.547-0600 [DEBUG] Building and walking apply graph for NormalMode plan
2022-09-28T11:16:25.547-0600 [DEBUG] Resource state not found for node "docker_image.nginx", instance docker_image.nginx
2022-09-28T11:16:25.547-0600 [DEBUG] ProviderTransformer: "docker_image.nginx (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2022-09-28T11:16:25.547-0600 [DEBUG] ProviderTransformer: "docker_image.nginx" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/kreuzwerker/docker"]
2022-09-28T11:16:25.548-0600 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
2022-09-28T11:16:25.548-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx (expand)" references: []
2022-09-28T11:16:25.548-0600 [DEBUG] ReferenceTransformer: "docker_image.nginx" references: []
2022-09-28T11:16:25.549-0600 [DEBUG] Starting graph walk: walkApply
2022-09-28T11:16:25.549-0600 [DEBUG] created provider logger: level=debug
2022-09-28T11:16:25.550-0600 [INFO] provider: configuring client automatic mTLS
2022-09-28T11:16:25.567-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0]
2022-09-28T11:16:25.570-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12352
2022-09-28T11:16:25.570-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0
2022-09-28T11:16:25.594-0600 [INFO] provider.terraform-provider-docker_v2.22.0: configuring server automatic mTLS: timestamp=2022-09-28T11:16:25.593-0600
2022-09-28T11:16:25.611-0600 [DEBUG] provider: using plugin: version=5
2022-09-28T11:16:25.611-0600 [DEBUG] provider.terraform-provider-docker_v2.22.0: plugin address: address=/var/folders/f0/9ksm50552z9_vpr3k2jc2ypw0000gp/T/plugin2652625960 network=unix timestamp=2022-09-28T11:16:25.611-0600
2022-09-28T11:16:25.639-0600 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/kreuzwerker/docker\"]" changed the config value, but that value is unused
docker_image.nginx: Creating...
2022-09-28T11:16:25.646-0600 [INFO] Starting apply for docker_image.nginx
2022-09-28T11:16:25.646-0600 [DEBUG] docker_image.nginx: applying the planned Create change
2022-09-28T11:16:25.844-0600 [INFO] provider.terraform-provider-docker_v2.22.0: 2022/09/28 11:16:25 [DEBUG] Docker image inspect from readFunc: {
"Id": "",
"RepoTags": [
"nginx:latest"
],
"RepoDigests": [],
"Parent": "",
"Comment": "",
"Created": "0001-01-01T00:00:00Z",
"Container": "",
"ContainerConfig": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.23.1",
"NJS_VERSION=0.7.6",
"PKG_RELEASE=1~bullseye"
],
"Cmd": [
"nginx",
"-g",
"daemon off;"
],
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 56768208,
"VirtualSize": 56768208,
"GraphDriver": {
"Data": null,
"Name": "stargz"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:b45078e74ec97c5e600f6d5de8ce6254094fb3cb4dc5e1cc8335fb31664af66e",
"sha256:9388548487b1997b925923c4711efa5c7fdf5a5203a36e8055ffe7960a6b9127",
"sha256:a064c1703bfdb529a4338259302cdf4d2407fddcedeabb9879b2332deb2df794",
"sha256:7ee9bf58503c7147275d30d50397bb67a643e58925764492ef3e2d8f375bccde",
"sha256:31192a8593ecba270815430c38c164c53ed65a765062b1b4b4aeca1ceec92d1e",
"sha256:36665e416ec8d9af3690bd5738f7642688252a2edf427e1a0ae6b1a1ca6748d0"
]
},
"Metadata": {
"LastTagTime": "2022-09-28T17:16:04.898179876Z"
}
}: timestamp=2022-09-28T11:16:25.844-0600
2022-09-28T11:16:26.631-0600 [INFO] provider.terraform-provider-docker_v2.22.0: 2022/09/28 11:16:26 [DEBUG] pulled image nginx:latest:: timestamp=2022-09-28T11:16:26.631-0600
2022-09-28T11:16:26.827-0600 [INFO] provider.terraform-provider-docker_v2.22.0: 2022/09/28 11:16:26 [DEBUG] Docker image inspect from readFunc: {
"Id": "",
"RepoTags": [
"nginx:latest"
],
"RepoDigests": [],
"Parent": "",
"Comment": "",
"Created": "0001-01-01T00:00:00Z",
"Container": "",
"ContainerConfig": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.23.1",
"NJS_VERSION=0.7.6",
"PKG_RELEASE=1~bullseye"
],
"Cmd": [
"nginx",
"-g",
"daemon off;"
],
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 56768208,
"VirtualSize": 56768208,
"GraphDriver": {
"Data": null,
"Name": "stargz"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:b45078e74ec97c5e600f6d5de8ce6254094fb3cb4dc5e1cc8335fb31664af66e",
"sha256:9388548487b1997b925923c4711efa5c7fdf5a5203a36e8055ffe7960a6b9127",
"sha256:a064c1703bfdb529a4338259302cdf4d2407fddcedeabb9879b2332deb2df794",
"sha256:7ee9bf58503c7147275d30d50397bb67a643e58925764492ef3e2d8f375bccde",
"sha256:31192a8593ecba270815430c38c164c53ed65a765062b1b4b4aeca1ceec92d1e",
"sha256:36665e416ec8d9af3690bd5738f7642688252a2edf427e1a0ae6b1a1ca6748d0"
]
},
"Metadata": {
"LastTagTime": "2022-09-28T17:16:26.627241431Z"
}
}: timestamp=2022-09-28T11:16:26.827-0600
2022-09-28T11:16:26.828-0600 [ERROR] provider.terraform-provider-docker_v2.22.0: Response contains error diagnostic: tf_provider_addr=provider tf_resource_type=docker_image tf_rpc=ApplyResourceChange diagnostic_detail= diagnostic_severity=ERROR tf_proto_version=5.3 @caller=github.com/hashicorp/terraform-plugin-go@v0.14.0/tfprotov5/internal/diag/diagnostics.go:55 @module=sdk.proto diagnostic_summary="Unable to read Docker image into resource: unable to find or pull image nginx:latest" tf_req_id=3eb1ca6c-452a-32ce-3142-e53be8e4ac82 timestamp=2022-09-28T11:16:26.827-0600
2022-09-28T11:16:26.850-0600 [ERROR] vertex "docker_image.nginx" error: Unable to read Docker image into resource: unable to find or pull image nginx:latest
Error: Unable to read Docker image into resource: unable to find or pull image nginx:latest
with docker_image.nginx,
on main.tf line 12, in resource "docker_image" "nginx":
12: resource "docker_image" "nginx" {
2022-09-28T11:16:26.874-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-09-28T11:16:26.878-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/2.22.0/darwin_amd64/terraform-provider-docker_v2.22.0 pid=12352
2022-09-28T11:16:26.878-0600 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment