docker-machine-driver-hetzner
docker-machine-driver-hetzner copied to clipboard
error installing docker
hello i tried to get this simple config up and running following the steps of the youtube video and the blogposts but i get still error messages - see below.
the status is runner is connected, once i start the pipeline new machines will get populated then i get the logoutput below
config.toml
concurrent = 50
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "Hetzner Autoscale"
limit = 10
url = "https://gitlab.com/"
token = "***********"
executor = "docker+machine"
[runners.custom_build_dir]
[runners.docker]
tls_verify = false
image = "ubuntu:22.04"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]
shm_size = 0
[runners.machine]
IdleCount = 0
IdleTime = 1800
MachineDriver = "hetzner"
MachineName = "runner-%s"
MachineOptions = ["hetzner-api-token=********", "hetzner-image=ubuntu-22.04", "hetzner-server-type=cpx11", "engine-install-url=https://releases.rancher.com/install-docker/19.03.9.sh"]
[[runners.machine.autoscaling]]
Periods = ["* * * * * sat,sun *"]
Timezone = ""
IdleCount = 0
IdleTime = 21600
$ docker logs -f root_hetzner-runner_1
...
WARNING: Problem while reading command output error=read |0: file already closed
WARNING: Problem while reading command output error=read |0: file already closed
Skipping provision retry on failed machine error=exit status 1 name=runner-k8gthjjn-runner-1675340026-f501ae4e
ERROR: Machine creation failed error=exit status 1 name=runner-k8gthjjn-runner-1675340026-f501ae4e time=54.110410668s
WARNING: Requesting machine removal lifetime=54.111698512s name=runner-k8gthjjn-runner-1675340026-f501ae4e now=2023-02-02 12:14:40.903415975 +0000 UTC m=+118.776737733 reason=Failed to create used=54.111699346s usedCount=0
WARNING: Stopping machine lifetime=54.139138862s name=runner-k8gthjjn-runner-1675340026-f501ae4e reason=Failed to create used=26.507099ms usedCount=0
Hi,
could you please be more specific? I have not created any videos nor written blogposts about any of this.
From the log, it seems the driver binary (or some other command launched) dies before the creation orchestrator expects it, resulting in attempt to read the now-closed stdout pipe of that process.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I was experiencing similar issues.
Jun 05 12:14:49 tk-git gitlab-runner[19583]: Installing Docker... driver=hetzner name=runner-k5zkmjzy-gitlab-ci-1685960052-cc7b8103 operation=create
Jun 05 12:15:05 tk-git gitlab-runner[19583]: ERROR: Error creating machine: Error running provisioning: error installing docker: driver=hetzner name=runner-k5zkmjzy-gitlab-ci-1685960052-cc7b8103 operation=create
Jun 05 12:15:05 tk-git gitlab-runner[19583]: WARNING: Problem while reading command output error=read |0: file already closed
Jun 05 12:15:05 tk-git gitlab-runner[19583]: Skipping provision retry on failed machine error=exit status 1 name=runner-k5zkmjzy-gitlab-ci-1685960052-cc7b8103
Jun 05 12:15:05 tk-git gitlab-runner[19583]: ERROR: Machine creation failed error=exit status 1 name=runner-k5zkmjzy-gitlab-ci-1685960052-cc7b8103 time=52.988335318s
Jun 05 12:15:05 tk-git gitlab-runner[19583]: WARNING: Requesting machine removal lifetime=52.990394019s name=runner-k5zkmjzy-gitlab-ci-1685960052-cc7b8103 now=2023-06-05 12:15:05.206086633 +0200 CEST m=+56.084730880 reason=Failed to create used=52.990394289s usedCount=0
Jun 05 12:15:05 tk-git gitlab-runner[19583]: WARNING: Stopping machine lifetime=53.028258038s name=runner-k5zkmjzy-gitlab-ci-1685960052-cc7b8103 reason=Failed to create used=37.829068ms usedCount=0
It turns out, this hot-fix was screwing it up: https://gitlab.com/gitlab-org/ci-cd/docker-machine/-/issues/41 Removed the custom engine provisioning URL and now it works.
Probably unrelated to the OP issue, but I'm just leaving this here for Googlers :)