Skip to content

Instantly share code, notes, and snippets.

@JanKoppe
Last active June 12, 2023 06:44
Show Gist options
  • Save JanKoppe/d93bf3ef99103f7b76e3461f8d1260ae to your computer and use it in GitHub Desktop.
Save JanKoppe/d93bf3ef99103f7b76e3461f8d1260ae to your computer and use it in GitHub Desktop.
TF_LOG=DEBUG tf apply
2023-06-12T08:44:15.341+0200 [INFO] Terraform version: 1.4.6
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.21.0
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-06-12T08:44:15.341+0200 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-06-12T08:44:15.341+0200 [INFO] Go runtime version: go1.19.6
2023-06-12T08:44:15.341+0200 [INFO] CLI args: []string{"/home/j/.asdf/installs/terraform/1.4.6/bin/terraform", "apply"}
2023-06-12T08:44:15.341+0200 [DEBUG] Attempting to open CLI config file: /home/j/.terraformrc
2023-06-12T08:44:15.341+0200 [INFO] Loading CLI configuration from /home/j/.terraformrc
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory /home/j/.terraform.d/plugins
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory /home/j/.local/share/terraform/plugins
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory /home/j/.local/share/flatpak/exports/share/terraform/plugins
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory /var/lib/flatpak/exports/share/terraform/plugins
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2023-06-12T08:44:15.341+0200 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2023-06-12T08:44:15.341+0200 [INFO] CLI command args: []string{"apply"}
2023-06-12T08:44:15.342+0200 [DEBUG] New state was assigned lineage "873700d1-065f-2b73-9ecf-0b2f6ff2a5f9"
2023-06-12T08:44:15.372+0200 [DEBUG] checking for provisioner in "."
2023-06-12T08:44:15.372+0200 [DEBUG] checking for provisioner in "/home/j/.asdf/installs/terraform/1.4.6/bin"
2023-06-12T08:44:15.372+0200 [INFO] backend/local: starting Apply operation
2023-06-12T08:44:15.372+0200 [DEBUG] created provider logger: level=debug
2023-06-12T08:44:15.372+0200 [INFO] provider: configuring client automatic mTLS
2023-06-12T08:44:15.386+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2]
2023-06-12T08:44:15.386+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598292
2023-06-12T08:44:15.386+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2
2023-06-12T08:44:15.391+0200 [INFO] provider.terraform-provider-docker_v3.0.2: configuring server automatic mTLS: timestamp=2023-06-12T08:44:15.391+0200
2023-06-12T08:44:15.405+0200 [DEBUG] provider: using plugin: version=5
2023-06-12T08:44:15.405+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: plugin address: address=/tmp/plugin839098244 network=unix timestamp=2023-06-12T08:44:15.405+0200
2023-06-12T08:44:15.421+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-12T08:44:15.421+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598292
2023-06-12T08:44:15.421+0200 [DEBUG] provider: plugin exited
2023-06-12T08:44:15.421+0200 [DEBUG] Building and walking validate graph
2023-06-12T08:44:15.421+0200 [DEBUG] ProviderTransformer: "docker_service.primary" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2023-06-12T08:44:15.422+0200 [DEBUG] ReferenceTransformer: "docker_service.primary" references: []
2023-06-12T08:44:15.422+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
2023-06-12T08:44:15.422+0200 [DEBUG] Starting graph walk: walkValidate
2023-06-12T08:44:15.422+0200 [DEBUG] created provider logger: level=debug
2023-06-12T08:44:15.422+0200 [INFO] provider: configuring client automatic mTLS
2023-06-12T08:44:15.427+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2]
2023-06-12T08:44:15.427+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598311
2023-06-12T08:44:15.427+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2
2023-06-12T08:44:15.432+0200 [INFO] provider.terraform-provider-docker_v3.0.2: configuring server automatic mTLS: timestamp=2023-06-12T08:44:15.432+0200
2023-06-12T08:44:15.446+0200 [DEBUG] provider: using plugin: version=5
2023-06-12T08:44:15.446+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: plugin address: address=/tmp/plugin2539523536 network=unix timestamp=2023-06-12T08:44:15.446+0200
2023-06-12T08:44:15.462+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-12T08:44:15.463+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598311
2023-06-12T08:44:15.463+0200 [DEBUG] provider: plugin exited
2023-06-12T08:44:15.463+0200 [INFO] backend/local: apply calling Plan
2023-06-12T08:44:15.463+0200 [DEBUG] Building and walking plan graph for NormalMode
2023-06-12T08:44:15.463+0200 [DEBUG] ProviderTransformer: "docker_service.primary (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2023-06-12T08:44:15.463+0200 [DEBUG] ReferenceTransformer: "docker_service.primary (expand)" references: []
2023-06-12T08:44:15.463+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
2023-06-12T08:44:15.463+0200 [DEBUG] Starting graph walk: walkPlan
2023-06-12T08:44:15.463+0200 [DEBUG] created provider logger: level=debug
2023-06-12T08:44:15.463+0200 [INFO] provider: configuring client automatic mTLS
2023-06-12T08:44:15.468+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2]
2023-06-12T08:44:15.468+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598328
2023-06-12T08:44:15.468+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2
2023-06-12T08:44:15.473+0200 [INFO] provider.terraform-provider-docker_v3.0.2: configuring server automatic mTLS: timestamp=2023-06-12T08:44:15.473+0200
2023-06-12T08:44:15.487+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: plugin address: address=/tmp/plugin1567459733 network=unix timestamp=2023-06-12T08:44:15.487+0200
2023-06-12T08:44:15.487+0200 [DEBUG] provider: using plugin: version=5
2023-06-12T08:44:15.503+0200 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/kreuzwerker/docker\"]" changed the config value, but that value is unused
2023-06-12T08:44:15.503+0200 [DEBUG] Resource instance state not found for node "docker_service.primary", instance docker_service.primary
2023-06-12T08:44:15.503+0200 [DEBUG] ReferenceTransformer: "docker_service.primary" references: []
2023-06-12T08:44:15.503+0200 [DEBUG] refresh: docker_service.primary: no state, so not refreshing
2023-06-12T08:44:15.508+0200 [WARN] Provider "registry.terraform.io/kreuzwerker/docker" produced an invalid plan for docker_service.primary, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .endpoint_spec: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .labels: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .mode: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].placement: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].resources: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].restart_policy: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].container_spec[0].isolation: planned value cty.StringVal("default") for a non-computed attribute
- .task_spec[0].container_spec[0].dns_config: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].container_spec[0].healthcheck: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2023-06-12T08:44:15.508+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-12T08:44:15.509+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598328
2023-06-12T08:44:15.509+0200 [DEBUG] provider: plugin exited
2023-06-12T08:44:15.509+0200 [DEBUG] building apply graph to check for errors
2023-06-12T08:44:15.509+0200 [DEBUG] Resource state not found for node "docker_service.primary", instance docker_service.primary
2023-06-12T08:44:15.509+0200 [DEBUG] ProviderTransformer: "docker_service.primary" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/kreuzwerker/docker"]
2023-06-12T08:44:15.509+0200 [DEBUG] ProviderTransformer: "docker_service.primary (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2023-06-12T08:44:15.509+0200 [DEBUG] ReferenceTransformer: "docker_service.primary (expand)" references: []
2023-06-12T08:44:15.509+0200 [DEBUG] ReferenceTransformer: "docker_service.primary" references: []
2023-06-12T08:44:15.509+0200 [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_service.primary will be created
+ resource "docker_service" "primary" {
+ id = (known after apply)
+ name = "foobar"
+ task_spec {
+ force_update = (known after apply)
+ runtime = (known after apply)
+ container_spec {
+ image = "busybox"
+ isolation = "default"
+ stop_grace_period = (known after apply)
+ mounts {
+ target = "/dev/shm"
+ type = "tmpfs"
+ tmpfs_options {
+ mode = 644
+ size_bytes = 268435456
}
}
}
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
2023-06-12T08:44:15.510+0200 [DEBUG] command: asking for input: "\nDo you want to perform these actions?"
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
2023-06-12T08:44:16.872+0200 [INFO] backend/local: apply calling Apply
2023-06-12T08:44:16.872+0200 [DEBUG] Building and walking apply graph for NormalMode plan
2023-06-12T08:44:16.872+0200 [DEBUG] Resource state not found for node "docker_service.primary", instance docker_service.primary
2023-06-12T08:44:16.872+0200 [DEBUG] ProviderTransformer: "docker_service.primary (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/kreuzwerker/docker"]
2023-06-12T08:44:16.872+0200 [DEBUG] ProviderTransformer: "docker_service.primary" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/kreuzwerker/docker"]
2023-06-12T08:44:16.872+0200 [DEBUG] ReferenceTransformer: "docker_service.primary (expand)" references: []
2023-06-12T08:44:16.872+0200 [DEBUG] ReferenceTransformer: "docker_service.primary" references: []
2023-06-12T08:44:16.872+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/kreuzwerker/docker\"]" references: []
2023-06-12T08:44:16.872+0200 [DEBUG] Starting graph walk: walkApply
2023-06-12T08:44:16.872+0200 [DEBUG] created provider logger: level=debug
2023-06-12T08:44:16.872+0200 [INFO] provider: configuring client automatic mTLS
2023-06-12T08:44:16.880+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 args=[.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2]
2023-06-12T08:44:16.880+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598355
2023-06-12T08:44:16.880+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2
2023-06-12T08:44:16.885+0200 [INFO] provider.terraform-provider-docker_v3.0.2: configuring server automatic mTLS: timestamp=2023-06-12T08:44:16.885+0200
2023-06-12T08:44:16.899+0200 [DEBUG] provider: using plugin: version=5
2023-06-12T08:44:16.899+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: plugin address: address=/tmp/plugin238142974 network=unix timestamp=2023-06-12T08:44:16.899+0200
2023-06-12T08:44:16.915+0200 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/kreuzwerker/docker\"]" changed the config value, but that value is unused
2023-06-12T08:44:16.920+0200 [WARN] Provider "registry.terraform.io/kreuzwerker/docker" produced an invalid plan for docker_service.primary, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .task_spec[0].placement: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].resources: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].restart_policy: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].container_spec[0].isolation: planned value cty.StringVal("default") for a non-computed attribute
- .task_spec[0].container_spec[0].dns_config: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .task_spec[0].container_spec[0].healthcheck: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .endpoint_spec: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .labels: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
- .mode: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
docker_service.primary: Creating...
2023-06-12T08:44:16.920+0200 [INFO] Starting apply for docker_service.primary
2023-06-12T08:44:16.920+0200 [DEBUG] docker_service.primary: applying the planned Create change
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "mode" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "endpoint_spec" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "labels" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.container_spec.0.dns_config" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.container_spec.0.healthcheck" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.resources" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.restart_policy" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.placement" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.container_spec.0.healthcheck" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.container_spec.0.dns_config" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.container_spec.0.healthcheck" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.container_spec.0.dns_config" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.resources" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.restart_policy" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.921+0200 [INFO] provider.terraform-provider-docker_v3.0.2: 2023/06/12 08:44:16 [DEBUG] setting computed for "task_spec.0.placement" from ComputedKeys: timestamp=2023-06-12T08:44:16.921+0200
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: panic: interface conversion: interface {} is int, not int64
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2:
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: goroutine 55 [running]:
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider.createContainerSpec({0xd0d460?, 0xc00000cb28})
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_structures.go:835 +0x29ba
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider.createServiceTaskSpec(0x0?)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_structures.go:635 +0x154
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider.createServiceSpec(0x4f634a?)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_structures.go:584 +0xfd
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider.resourceDockerServiceCreate({0xfda590, 0xc0002aaa80}, 0x0?, {0xcf99a0?, 0xc000497240})
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_funcs.go:35 +0xbb
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc00044e380, {0xfda5c8, 0xc000285410}, 0xd?, {0xcf99a0, 0xc000497240})
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0x12e
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc00044e380, {0xfda5c8, 0xc000285410}, 0xc00071b380, 0xc000196f80, {0xcf99a0, 0xc000497240})
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa7a
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00011c4c8, {0xfda5c8?, 0xc0002852f0?}, 0xc000718640)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe3c
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0005275e0, {0xfda5c8?, 0xc000284210?}, 0xc0001b6150)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xe34620?, 0xc0005275e0}, {0xfda5c8, 0xc000284210}, 0xc0001b6070, 0x0)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000001e0, {0xfdd860, 0xc0006229c0}, 0xc00047a000, 0xc00045b0b0, 0x1578f80, 0x0)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/[email protected]/server.go:1340 +0xd13
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/grpc.(*Server).handleStream(0xc0000001e0, {0xfdd860, 0xc0006229c0}, 0xc00047a000, 0x0)
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/[email protected]/server.go:1713 +0xa1b
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/grpc.(*Server).serveStreams.func1.2()
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/[email protected]/server.go:965 +0x98
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: created by google.golang.org/grpc.(*Server).serveStreams.func1
2023-06-12T08:44:16.924+0200 [DEBUG] provider.terraform-provider-docker_v3.0.2: google.golang.org/[email protected]/server.go:963 +0x28a
2023-06-12T08:44:16.924+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/kreuzwerker/docker/3.0.2/linux_amd64/terraform-provider-docker_v3.0.2 pid=598355 error="exit status 2"
2023-06-12T08:44:16.924+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-12T08:44:16.924+0200 [ERROR] plugin.(*GRPCProvider).ApplyResourceChange: error="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-12T08:44:16.941+0200 [ERROR] vertex "docker_service.primary" error: Plugin did not respond
│ Error: Plugin did not respond
│ with docker_service.primary,
│ on main.tf line 14, in resource "docker_service" "primary":
│ 14: resource "docker_service" "primary" {
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more
│ details.
Stack trace from the terraform-provider-docker_v3.0.2 plugin:
panic: interface conversion: interface {} is int, not int64
goroutine 55 [running]:
github.com/terraform-providers/terraform-provider-docker/internal/provider.createContainerSpec({0xd0d460?, 0xc00000cb28})
github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_structures.go:835 +0x29ba
github.com/terraform-providers/terraform-provider-docker/internal/provider.createServiceTaskSpec(0x0?)
github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_structures.go:635 +0x154
github.com/terraform-providers/terraform-provider-docker/internal/provider.createServiceSpec(0x4f634a?)
github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_structures.go:584 +0xfd
github.com/terraform-providers/terraform-provider-docker/internal/provider.resourceDockerServiceCreate({0xfda590, 0xc0002aaa80}, 0x0?, {0xcf99a0?, 0xc000497240})
github.com/terraform-providers/terraform-provider-docker/internal/provider/resource_docker_service_funcs.go:35 +0xbb
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc00044e380, {0xfda5c8, 0xc000285410}, 0xd?, {0xcf99a0, 0xc000497240})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc00044e380, {0xfda5c8, 0xc000285410}, 0xc00071b380, 0xc000196f80, {0xcf99a0, 0xc000497240})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc00011c4c8, {0xfda5c8?, 0xc0002852f0?}, 0xc000718640)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe3c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0005275e0, {0xfda5c8?, 0xc000284210?}, 0xc0001b6150)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xe34620?, 0xc0005275e0}, {0xfda5c8, 0xc000284210}, 0xc0001b6070, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0000001e0, {0xfdd860, 0xc0006229c0}, 0xc00047a000, 0xc00045b0b0, 0x1578f80, 0x0)
google.golang.org/[email protected]/server.go:1340 +0xd13
google.golang.org/grpc.(*Server).handleStream(0xc0000001e0, {0xfdd860, 0xc0006229c0}, 0xc00047a000, 0x0)
google.golang.org/[email protected]/server.go:1713 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:963 +0x28a
Error: The terraform-provider-docker_v3.0.2 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
2023-06-12T08:44:16.950+0200 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment