ghaction-setup-docker icon indicating copy to clipboard operation
ghaction-setup-docker copied to clipboard

action fails on arm64-ubuntu-22.04

Open karelispanagiotis opened this issue 1 year ago • 2 comments

Behaviour

Steps to reproduce this issue

  1. Use this action on Github-hosted runners arm64-ubuntu-22.04 (I am using arm64-ubuntu-22.04-8core)

Expected behaviour

Setup docker on the runner.

Actual behaviour

Action fails with

failed to start containerd: exec: "containerd": executable file not found in $PATH

Logs

2024-03-07T13:55:05.1441734Z ##[group]Run crazy-max/ghaction-setup-docker@v3
2024-03-07T13:55:05.1442462Z with:
2024-03-07T13:55:05.1442928Z   version: latest
2024-03-07T13:55:05.1443570Z   set-host: false
2024-03-07T13:55:05.1444047Z env:
2024-03-07T13:55:05.1445147Z   GITHUB_TOKEN: ***
2024-03-07T13:55:05.1445737Z ##[endgroup]
2024-03-07T13:55:05.2658867Z ##[group]Download docker
2024-03-07T13:55:05.4862049Z Downloading https://download.docker.com/linux/static/stable/aarch64/docker-25.0.4.tgz
2024-03-07T13:55:05.9264554Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/8f9c9830-e76d-4a63-b521-8a1b7ad715d8 -f /home/runner/work/_temp/7b574c33-e9f5-43bd-840d-6c4a5b721102
2024-03-07T13:55:07.0887168Z Fixing perms
2024-03-07T13:55:07.2273465Z Added Docker to PATH
2024-03-07T13:55:07.2274587Z ##[endgroup]
2024-03-07T13:55:07.2283519Z ##[group]Start Docker daemon
2024-03-07T13:55:07.2298362Z [command] /home/runner/work/_tool/docker-stable/25.0.4/arm64/dockerd --host="unix:///home/runner/setup-docker-action-c1b4f485-32c4-4b77-8ad9-b8f82198beaa/docker.sock" --config-file="/home/runner/setup-docker-action-c1b4f485-32c4-4b77-8ad9-b8f82198beaa/daemon.json" --exec-root="/home/runner/setup-docker-action-c1b4f485-32c4-4b77-8ad9-b8f82198beaa/execroot" --data-root="/home/runner/setup-docker-action-c1b4f485-32c4-4b77-8ad9-b8f82198beaa/data" --pidfile="/home/runner/setup-docker-action-c1b4f485-32c4-4b77-8ad9-b8f82198beaa/docker.pid" --userland-proxy=false
2024-03-07T13:55:07.2842254Z time="2024-03-07T13:55:07.283930964Z" level=info msg="Starting up"
2024-03-07T13:55:07.2865948Z time="2024-03-07T13:55:07.286316959Z" level=warning msg="could not change group /home/runner/setup-docker-action-c1b4f485-32c4-4b77-8ad9-b8f82198beaa/docker.sock to docker: group docker not found"
2024-03-07T13:55:07.2868527Z time="2024-03-07T13:55:07.286519438Z" level=info msg="containerd not running, starting managed containerd"
2024-03-07T13:55:07.2874291Z failed to start containerd: exec: "containerd": executable file not found in $PATH
2024-03-07T13:55:10.2512865Z ##[endgroup]

karelispanagiotis avatar Mar 07 '24 17:03 karelispanagiotis

Is it still an issue?

crazy-max avatar Apr 23 '24 09:04 crazy-max

Still an issue for me on Ubuntu 22.04 x86_64 AMI.

Run crazy-max/[email protected]
  with:
    channel: stable
    version: v[2](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:2)4.0.9
    set-host: true
  env:
    NPM_REGISTRY: https://registry.npmjs.org
    CARGO_REGISTRY: crates.io
    DOCKER_BUILDKIT: 1
  
Download docker
  Downloading https://download.docker.com/linux/static/stable/x86_64/docker-24.0.9.tgz
  /usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runnerx/actions-runner/_work/_temp/0[3](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:3)520929-da94-4a51-98bb-1652fb1fa[4](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:4)5e -f /home/runnerx/actions-runner/_work/_temp/80846a3f-114c-4aea-9ef2-[5](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:5)3f6d232ee3f
  Fixing perms
  Added Docker to PATH
Start Docker daemon
   /home/runnerx/actions-runner/_work/_tool/docker-stable/24.0.9/x[6](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:6)4/dockerd --host="unix:///home/runnerx/setup-docker-action-[7](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:7)84ad3ec/docker.sock" --config-file="/home/runnerx/setup-docker-action-7[8](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:8)4ad3ec/daemon.json" --exec-root="/home/runnerx/setup-docker-action-784ad3ec/execroot" --data-root="/home/runnerx/setup-docker-action-784ad3ec/data" --pidfile="/home/runnerx/setup-docker-action-784ad3ec/docker.pid" --userland-proxy=false
  time="2024-05-24T1[9](https://github.com/klutchell/unbound-docker/actions/runs/9228831511/job/25393975618?pr=449#step:6:9):20:27.858399361Z" level=info msg="Starting up"
  time="2024-05-24T19:20:27.859090160Z" level=info msg="containerd not running, starting managed containerd"
  failed to start containerd: exec: "containerd": executable file not found in $PATH
Error: The process '/home/runnerx/actions-runner/_work/_tool/docker-stable/24.0.9/x64/docker' failed with exit code 1

klutchell avatar May 24 '24 19:05 klutchell

Still an issue for me on Ubuntu 22.04 AMI.

In your case it seems to download for x86_64 arch, not aarch64.

failed to start containerd: exec: "containerd": executable file not found in $PATH

Seems containerd cannot be found as well in your case but I see it in the tarball:

$ tar -ztvf docker-24.0.9.tgz 
drwxrwxr-x ubuntu/ubuntu     0 2024-02-01 01:50 docker/
-rwxr-xr-x ubuntu/ubuntu 1965747 2024-02-01 01:50 docker/docker-proxy
-rwxr-xr-x ubuntu/ubuntu  761712 2024-02-01 01:50 docker/docker-init
-rwxr-xr-x ubuntu/ubuntu 12513280 2024-02-01 01:50 docker/containerd-shim-runc-v2
-rwxr-xr-x ubuntu/ubuntu 63359440 2024-02-01 01:50 docker/dockerd
-rwxr-xr-x ubuntu/ubuntu 39702528 2024-02-01 01:50 docker/containerd
-rwxr-xr-x ubuntu/ubuntu 34776120 2024-02-01 01:50 docker/docker
-rwxr-xr-x ubuntu/ubuntu 15184888 2024-02-01 01:50 docker/runc
-rwxr-xr-x ubuntu/ubuntu 19517440 2024-02-01 01:50 docker/ctr

Will take a closer look.

crazy-max avatar Jun 06 '24 09:06 crazy-max

@crazy-max I was actually testing this on x86_64 AMI, so it makes sense that it downloaded for x86_64.

I updated my previous comment, and I can open a new issue if you'd prefer.

klutchell avatar Jun 07 '24 17:06 klutchell

Was able to repro in https://github.com/docker/actions-toolkit/actions/runs/9447262246/job/26018714869#step:10:54. Will look at fixing this.

crazy-max avatar Jun 10 '24 11:06 crazy-max

@klutchell @karelispanagiotis Latest release should fix this issue.

crazy-max avatar Jun 10 '24 12:06 crazy-max