Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run GH action in container (aarch64/arm64) #349

Closed
tvarohohlavy opened this issue Mar 21, 2024 · 1 comment
Closed

Not able to run GH action in container (aarch64/arm64) #349

tvarohohlavy opened this issue Mar 21, 2024 · 1 comment

Comments

@tvarohohlavy
Copy link

Hi,

First let me thank you for your amazing work!

I am trying to run simple GH action in a docker container as this:

  test-docker:
    runs-on: [ self-hosted, lego ]
    container: node:14.15.0-alpine3.12
    steps:
         - name: Log the node version
           run: |
             node -v
             cat /etc/os-release

Unfortunately the action fails:
sh: can't open '/__w/_temp/4101d4b1-e17a-4d86-aa47-7256efa5ff82.sh': No such file or directory
image

Could you please advice me on how to further troubleshoot and resolve this? Thanks a lot!

My system is Raspberry Pi CM4
Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64
Debian GNU/Linux 12 (bookworm)

Docker Version:

Client: Docker Engine - Community
 Version:           26.0.0
 API version:       1.45
 Go version:        go1.21.8
 Git commit:        2ae903e
 Built:             Wed Mar 20 15:18:02 2024
 OS/Arch:           linux/arm64
 Context:           rootless

Server: Docker Engine - Community
 Engine:
  Version:          26.0.0
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.8
  Git commit:       8b79278
  Built:            Wed Mar 20 15:18:02 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
 rootlesskit:
  Version:          2.0.2
  ApiVersion:       1.1.1
  NetworkDriver:    slirp4netns
  PortDriver:       builtin
  StateDir:         /run/user/1000/dockerd-rootless
 slirp4netns:
  Version:          1.2.0
  GitCommit:        656041d45cfca7a4176f6b7eed9e4fe6c11e8383

Full job log:

2024-03-20T23:55:23.4364473Z Current runner version: '2.314.1'
2024-03-20T23:55:23.4394789Z Runner name: 'cm4-lego01'
2024-03-20T23:55:23.4397924Z Runner group name: 'Default'
2024-03-20T23:55:23.4401535Z Machine name: '847eac949c5a'
2024-03-20T23:55:23.4414168Z ##[group]GITHUB_TOKEN Permissions
2024-03-20T23:55:23.4425710Z Contents: read
2024-03-20T23:55:23.4428072Z Metadata: read
2024-03-20T23:55:23.4430223Z Packages: read
2024-03-20T23:55:23.4432390Z ##[endgroup]
2024-03-20T23:55:23.4449722Z Secret source: Actions
2024-03-20T23:55:23.4452922Z Prepare workflow directory
2024-03-20T23:55:23.9463768Z Prepare all required actions
2024-03-20T23:55:24.0580728Z Complete job name: test-docker
2024-03-20T23:55:24.4501691Z ##[group]Checking docker version
2024-03-20T23:55:24.4587589Z ##[command]/usr/bin/docker version --format '{{.Server.APIVersion}}'
2024-03-20T23:55:25.6202547Z '1.45'
2024-03-20T23:55:25.6267113Z Docker daemon API version: '1.45'
2024-03-20T23:55:25.6269880Z ##[command]/usr/bin/docker version --format '{{.Client.APIVersion}}'
2024-03-20T23:55:26.5864237Z '1.44'
2024-03-20T23:55:26.5873267Z Docker client API version: '1.44'
2024-03-20T23:55:26.5900196Z ##[endgroup]
2024-03-20T23:55:26.5921390Z ##[group]Clean up resources from previous jobs
2024-03-20T23:55:26.5957674Z ##[command]/usr/bin/docker ps --all --quiet --no-trunc --filter "label=c664a2"
2024-03-20T23:55:26.6480712Z ##[command]/usr/bin/docker network prune --force --filter "label=c664a2"
2024-03-20T23:55:26.7099117Z ##[endgroup]
2024-03-20T23:55:26.7101947Z ##[group]Create local container network
2024-03-20T23:55:26.7169842Z ##[command]/usr/bin/docker network create --label c664a2 github_network_37c3f80fdfe846619807280eac844935
2024-03-20T23:55:26.9360981Z d43873096eca5f5acc467f5bdb5d43f2393c04db7d6cc92672c67da01e6a9867
2024-03-20T23:55:26.9459569Z ##[endgroup]
2024-03-20T23:55:26.9986412Z ##[group]Starting job container
2024-03-20T23:55:27.0271923Z ##[command]/usr/bin/docker pull node:14.15.0-alpine3.12
2024-03-20T23:56:08.3564313Z 14.15.0-alpine3.12: Pulling from library/node
2024-03-20T23:56:08.3787987Z Digest: sha256:6864724c9f8437ad7fa9fa9c16a1e7e4d985b8418524c297481d7a7ee59fdd77
2024-03-20T23:56:08.3809554Z Status: Image is up to date for node:14.15.0-alpine3.12
2024-03-20T23:56:08.3845353Z docker.io/library/node:14.15.0-alpine3.12
2024-03-20T23:56:08.4514079Z ##[command]/usr/bin/docker create --name 5b558b9729e84cc6923c88370e59260e_node14150alpine312_deb452 --label c664a2 --workdir /__w/test/test --network github_network_37c3f80fdfe846619807280eac844935  -e "HOME=/github/home" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/__w":"/__w" -v "/actions-runner/externals":"/__e":ro -v "/__w/_temp":"/__w/_temp" -v "/__w/_actions":"/__w/_actions" -v "/opt/hostedtoolcache":"/__t" -v "/__w/_temp/_github_home":"/github/home" -v "/__w/_temp/_github_workflow":"/github/workflow" --entrypoint "tail" node:14.15.0-alpine3.12 "-f" "/dev/null"
2024-03-20T23:56:08.5786503Z 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-20T23:56:08.5861295Z ##[command]/usr/bin/docker start 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-20T23:56:09.0131193Z 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-20T23:56:09.0184844Z ##[command]/usr/bin/docker ps --all --filter id=64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2 --filter status=running --no-trunc --format "{{.ID}} {{.Status}}"
2024-03-20T23:56:09.0601629Z 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2 Up Less than a second
2024-03-20T23:56:09.0662917Z ##[command]/usr/bin/docker inspect --format "{{range .Config.Env}}{{println .}}{{end}}" 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-20T23:56:09.1072421Z HOME=/github/home
2024-03-20T23:56:09.1077621Z GITHUB_ACTIONS=true
2024-03-20T23:56:09.1085147Z CI=true
2024-03-20T23:56:09.1087767Z PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-03-20T23:56:09.1091276Z NODE_VERSION=14.15.0
2024-03-20T23:56:09.1095275Z YARN_VERSION=1.22.5
2024-03-20T23:56:09.1152352Z ##[endgroup]
2024-03-20T23:56:09.1278253Z ##[group]Waiting for all services to be ready
2024-03-20T23:56:09.1291559Z ##[endgroup]
2024-03-20T23:56:09.3559901Z ##[group]Run node -v
2024-03-20T23:56:09.3562315Z �[36;1mnode -v�[0m
2024-03-20T23:56:09.3564198Z �[36;1mcat /etc/os-release  �[0m
2024-03-20T23:56:09.3585067Z shell: sh -e {0}
2024-03-20T23:56:09.3587028Z ##[endgroup]
2024-03-20T23:56:09.6280496Z sh: can't open '/__w/_temp/4101d4b1-e17a-4d86-aa47-7256efa5ff82.sh': No such file or directory
2024-03-20T23:56:09.6372204Z ##[error]Process completed with exit code 2.
2024-03-20T23:56:09.7327071Z Stop and remove container: 5b558b9729e84cc6923c88370e59260e_node14150alpine312_deb452
2024-03-20T23:56:09.7355130Z ##[command]/usr/bin/docker rm --force 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-20T23:56:10.0543981Z 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-20T23:56:10.0645539Z Remove container network: github_network_37c3f80fdfe846619807280eac844935
2024-03-20T23:56:10.0672051Z ##[command]/usr/bin/docker network rm github_network_37c3f80fdfe846619807280eac844935
2024-03-20T23:56:10.4312881Z github_network_37c3f80fdfe846619807280eac844935
2024-03-20T23:56:10.5121318Z Cleaning up orphan processes

Runner logs:

2024-03-21T00:53:37.945664+01:00 cm4-lego01 docker[4610]: Runner reusage is disabled
2024-03-21T00:53:37.945900+01:00 cm4-lego01 docker[4610]: Obtaining the token of the runner
2024-03-21T00:53:45.555952+01:00 cm4-lego01 docker[4610]: Ephemeral option is enabled
2024-03-21T00:53:45.556189+01:00 cm4-lego01 docker[4610]: Disable auto update option is enabled
2024-03-21T00:53:45.556283+01:00 cm4-lego01 docker[4610]: Configuring
2024-03-21T00:53:46.331293+01:00 cm4-lego01 docker[4610]: --------------------------------------------------------------------------------
2024-03-21T00:53:46.331931+01:00 cm4-lego01 docker[4610]: |        ____ _ _   _   _       _          _        _   _                      |
2024-03-21T00:53:46.332058+01:00 cm4-lego01 docker[4610]: |       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
2024-03-21T00:53:46.332117+01:00 cm4-lego01 docker[4610]: |      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
2024-03-21T00:53:46.332208+01:00 cm4-lego01 docker[4610]: |      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
2024-03-21T00:53:46.332264+01:00 cm4-lego01 docker[4610]: |       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
2024-03-21T00:53:46.333514+01:00 cm4-lego01 docker[4610]: |                                                                              |
2024-03-21T00:53:46.335428+01:00 cm4-lego01 docker[4610]: |                       Self-hosted runner registration                        |
2024-03-21T00:53:46.335556+01:00 cm4-lego01 docker[4610]: |                                                                              |
2024-03-21T00:53:46.335612+01:00 cm4-lego01 docker[4610]: --------------------------------------------------------------------------------
2024-03-21T00:53:46.338294+01:00 cm4-lego01 docker[4610]: # Authentication
2024-03-21T00:54:13.491475+01:00 cm4-lego01 docker[4610]: √ Connected to GitHub
2024-03-21T00:54:13.926267+01:00 cm4-lego01 docker[4610]: # Runner Registration
2024-03-21T00:54:14.659889+01:00 cm4-lego01 docker[4610]: √ Runner successfully added
2024-03-21T00:54:40.536787+01:00 cm4-lego01 docker[4610]: √ Runner connection is good
2024-03-21T00:54:40.537174+01:00 cm4-lego01 docker[4610]: # Runner settings
2024-03-21T00:54:40.555022+01:00 cm4-lego01 docker[4610]: √ Settings Saved.
2024-03-21T00:55:01.565952+01:00 cm4-lego01 docker[4610]: √ Connected to GitHub
2024-03-21T00:55:08.766874+01:00 cm4-lego01 docker[4610]: Current runner version: '2.314.1'
2024-03-21T00:55:08.778157+01:00 cm4-lego01 docker[4610]: 2024-03-20 23:55:08Z: Listening for Jobs
2024-03-21T00:55:12.246115+01:00 cm4-lego01 docker[4610]: 2024-03-20 23:55:12Z: Running job: test-docker
2024-03-21T00:56:30.688096+01:00 cm4-lego01 docker[4610]: 2024-03-20 23:56:30Z: Job test-docker completed with result: Failed
2024-03-21T00:56:35.558182+01:00 cm4-lego01 docker[4610]: √ Removed .credentials
2024-03-21T00:56:35.558450+01:00 cm4-lego01 docker[4610]: √ Removed .runner

Other logs:

2024-03-21T00:52:55.945782+01:00 cm4-lego01 systemd[1]: Starting ephemeral-github-actions-runner.service - Ephemeral GitHub Actions Runner Container...
2024-03-21T00:53:37.438537+01:00 cm4-lego01 systemd[1]: Started ephemeral-github-actions-runner.service - Ephemeral GitHub Actions Runner Container.
2024-03-21T00:53:37.596445+01:00 cm4-lego01 kernel: [ 3041.807836] docker0: port 1(veth8b04da2) entered blocking state
2024-03-21T00:53:37.596490+01:00 cm4-lego01 kernel: [ 3041.807858] docker0: port 1(veth8b04da2) entered disabled state
2024-03-21T00:53:37.596497+01:00 cm4-lego01 kernel: [ 3041.807902] veth8b04da2: entered allmulticast mode
2024-03-21T00:53:37.596500+01:00 cm4-lego01 kernel: [ 3041.808099] veth8b04da2: entered promiscuous mode
2024-03-21T00:53:37.720983+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:53:37.718349636+01:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
2024-03-21T00:53:37.721298+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:53:37.718978704+01:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
2024-03-21T00:53:37.721485+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:53:37.719034166+01:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
2024-03-21T00:53:37.721592+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:53:37.720035304+01:00" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9 pid=4644 runtime=io.containerd.runc.v2
2024-03-21T00:53:37.785463+01:00 cm4-lego01 systemd[1]: Started docker-847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9.scope - libcontainer container 847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9.
2024-03-21T00:53:37.896897+01:00 cm4-lego01 kernel: [ 3042.109873] eth0: renamed from veth3503666
2024-03-21T00:53:37.916931+01:00 cm4-lego01 kernel: [ 3042.130501] docker0: port 1(veth8b04da2) entered blocking state
2024-03-21T00:53:37.916964+01:00 cm4-lego01 kernel: [ 3042.130521] docker0: port 1(veth8b04da2) entered forwarding state
2024-03-21T00:53:37.938195+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:53:37.937737348+01:00" level=warning msg="error from *cgroupsv2.Manager.EventChan" error="failed to add inotify watch for \"/sys/fs/cgroup/system.slice/docker-847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9.scope/memory.events\": no such file or directory"
2024-03-21T00:55:26.881448+01:00 cm4-lego01 dbus-daemon[472]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=524 comm="/usr/sbin/NetworkManager --no-daemon")
2024-03-21T00:55:26.919760+01:00 cm4-lego01 systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
2024-03-21T00:55:26.940038+01:00 cm4-lego01 systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
2024-03-21T00:55:37.017521+01:00 cm4-lego01 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
2024-03-21T00:56:08.516005+01:00 cm4-lego01 systemd[1]: var-lib-docker-overlay2-990777b5cfe082ecafa50d11babc98c41bfe5c15dcd9f814d58e344129a5cb3b\x2dinit-merged.mount: Deactivated successfully.
2024-03-21T00:56:08.554668+01:00 cm4-lego01 systemd[1]: var-lib-docker-overlay2-990777b5cfe082ecafa50d11babc98c41bfe5c15dcd9f814d58e344129a5cb3b-merged.mount: Deactivated successfully.
2024-03-21T00:56:08.628927+01:00 cm4-lego01 kernel: [ 3192.844786] br-d43873096eca: port 1(vethe884282) entered blocking state
2024-03-21T00:56:08.628976+01:00 cm4-lego01 kernel: [ 3192.844804] br-d43873096eca: port 1(vethe884282) entered disabled state
2024-03-21T00:56:08.628979+01:00 cm4-lego01 kernel: [ 3192.844835] vethe884282: entered allmulticast mode
2024-03-21T00:56:08.628981+01:00 cm4-lego01 kernel: [ 3192.845045] vethe884282: entered promiscuous mode
2024-03-21T00:56:08.628983+01:00 cm4-lego01 kernel: [ 3192.845388] br-d43873096eca: port 1(vethe884282) entered blocking state
2024-03-21T00:56:08.628985+01:00 cm4-lego01 kernel: [ 3192.845396] br-d43873096eca: port 1(vethe884282) entered forwarding state
2024-03-21T00:56:08.634477+01:00 cm4-lego01 kernel: [ 3192.847226] br-d43873096eca: port 1(vethe884282) entered disabled state
2024-03-21T00:56:08.781975+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:08.778567587+01:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
2024-03-21T00:56:08.782398+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:08.779120970+01:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
2024-03-21T00:56:08.783078+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:08.779209043+01:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
2024-03-21T00:56:08.783386+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:08.780227940+01:00" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2 pid=4970 runtime=io.containerd.runc.v2
2024-03-21T00:56:08.843648+01:00 cm4-lego01 systemd[1]: Started docker-64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2.scope - libcontainer container 64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2.
2024-03-21T00:56:08.960922+01:00 cm4-lego01 kernel: [ 3193.175562] eth0: renamed from vethed311e2
2024-03-21T00:56:08.980908+01:00 cm4-lego01 kernel: [ 3193.195518] br-d43873096eca: port 1(vethe884282) entered blocking state
2024-03-21T00:56:08.980942+01:00 cm4-lego01 kernel: [ 3193.195538] br-d43873096eca: port 1(vethe884282) entered forwarding state
2024-03-21T00:56:09.001001+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:09.000549588+01:00" level=warning msg="error from *cgroupsv2.Manager.EventChan" error="failed to add inotify watch for \"/sys/fs/cgroup/system.slice/docker-64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2.scope/memory.events\": no such file or directory"
2024-03-21T00:56:09.806971+01:00 cm4-lego01 systemd[1]: docker-64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2.scope: Deactivated successfully.
2024-03-21T00:56:09.840940+01:00 cm4-lego01 dockerd[858]: time="2024-03-21T00:56:09.839265363+01:00" level=info msg="ignoring event" container=64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
2024-03-21T00:56:09.842519+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:09.839474083+01:00" level=info msg="shim disconnected" id=64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2
2024-03-21T00:56:09.842700+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:09.839641488+01:00" level=warning msg="cleaning up after shim disconnected" id=64f0b389e281dadf0f2f8bbf66370dd05776c90125b816b8d002ba8c8cf151b2 namespace=moby
2024-03-21T00:56:09.842782+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:09.839676655+01:00" level=info msg="cleaning up dead shim"
2024-03-21T00:56:09.859853+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:09.859610354+01:00" level=warning msg="cleanup warnings time=\"2024-03-21T00:56:09+01:00\" level=info msg=\"starting signal loop\" namespace=moby pid=5069 runtime=io.containerd.runc.v2\n"
2024-03-21T00:56:09.893028+01:00 cm4-lego01 kernel: [ 3194.110343] br-d43873096eca: port 1(vethe884282) entered disabled state
2024-03-21T00:56:09.893062+01:00 cm4-lego01 kernel: [ 3194.110730] vethed311e2: renamed from eth0
2024-03-21T00:56:09.956951+01:00 cm4-lego01 kernel: [ 3194.173900] br-d43873096eca: port 1(vethe884282) entered disabled state
2024-03-21T00:56:09.960920+01:00 cm4-lego01 kernel: [ 3194.176494] vethe884282 (unregistering): left allmulticast mode
2024-03-21T00:56:09.960966+01:00 cm4-lego01 kernel: [ 3194.176516] vethe884282 (unregistering): left promiscuous mode
2024-03-21T00:56:09.960969+01:00 cm4-lego01 kernel: [ 3194.176522] br-d43873096eca: port 1(vethe884282) entered disabled state
2024-03-21T00:56:09.989825+01:00 cm4-lego01 systemd[1]: run-docker-netns-38c8e17b7716.mount: Deactivated successfully.
2024-03-21T00:56:09.996109+01:00 cm4-lego01 systemd[1]: var-lib-docker-overlay2-990777b5cfe082ecafa50d11babc98c41bfe5c15dcd9f814d58e344129a5cb3b-merged.mount: Deactivated successfully.
2024-03-21T00:56:10.162053+01:00 cm4-lego01 dbus-daemon[472]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=524 comm="/usr/sbin/NetworkManager --no-daemon")
2024-03-21T00:56:10.190069+01:00 cm4-lego01 systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
2024-03-21T00:56:10.208196+01:00 cm4-lego01 systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
2024-03-21T00:56:20.260927+01:00 cm4-lego01 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
2024-03-21T00:56:35.586330+01:00 cm4-lego01 systemd[1]: docker-847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9.scope: Deactivated successfully.
2024-03-21T00:56:35.587454+01:00 cm4-lego01 systemd[1]: docker-847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9.scope: Consumed 33.828s CPU time.
2024-03-21T00:56:35.619507+01:00 cm4-lego01 dockerd[858]: time="2024-03-21T00:56:35.617564366+01:00" level=info msg="ignoring event" container=847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
2024-03-21T00:56:35.620762+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:35.618405116+01:00" level=info msg="shim disconnected" id=847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9
2024-03-21T00:56:35.621048+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:35.618550577+01:00" level=warning msg="cleaning up after shim disconnected" id=847eac949c5a27c4cf831731471648725438e8d094e206e43388b42868677bd9 namespace=moby
2024-03-21T00:56:35.621141+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:35.618580392+01:00" level=info msg="cleaning up dead shim"
2024-03-21T00:56:35.638497+01:00 cm4-lego01 containerd[845]: time="2024-03-21T00:56:35.638288167+01:00" level=warning msg="cleanup warnings time=\"2024-03-21T00:56:35+01:00\" level=info msg=\"starting signal loop\" namespace=moby pid=5154 runtime=io.containerd.runc.v2\n"
2024-03-21T00:56:35.668905+01:00 cm4-lego01 kernel: [ 3219.886387] veth3503666: renamed from eth0
2024-03-21T00:56:35.708880+01:00 cm4-lego01 kernel: [ 3219.923358] docker0: port 1(veth8b04da2) entered disabled state
2024-03-21T00:56:35.733040+01:00 cm4-lego01 kernel: [ 3219.950672] docker0: port 1(veth8b04da2) entered disabled state
2024-03-21T00:56:35.736897+01:00 cm4-lego01 kernel: [ 3219.953053] veth8b04da2 (unregistering): left allmulticast mode
2024-03-21T00:56:35.736926+01:00 cm4-lego01 kernel: [ 3219.953071] veth8b04da2 (unregistering): left promiscuous mode
2024-03-21T00:56:35.736929+01:00 cm4-lego01 kernel: [ 3219.953077] docker0: port 1(veth8b04da2) entered disabled state
2024-03-21T00:56:35.772240+01:00 cm4-lego01 systemd[1]: run-docker-netns-6300e7159032.mount: Deactivated successfully.
2024-03-21T00:56:35.777852+01:00 cm4-lego01 systemd[1]: var-lib-docker-overlay2-45a8448029b38aec8f46ec99dbe655e1c81a4a506a65cd4baee32e76e2a10cdc-merged.mount: Deactivated successfully.
2024-03-21T00:56:35.846739+01:00 cm4-lego01 systemd[1]: ephemeral-github-actions-runner.service: Deactivated successfully.
2024-03-21T00:56:36.164939+01:00 cm4-lego01 systemd[1]: ephemeral-github-actions-runner.service: Scheduled restart job, restart counter is at 2.
2024-03-21T00:56:36.165206+01:00 cm4-lego01 systemd[1]: Stopped ephemeral-github-actions-runner.service - Ephemeral GitHub Actions Runner Container.

My config:
/lib/systemd/system/ephemeral-github-actions-runner.service

[Unit]
Description=Ephemeral GitHub Actions Runner Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %N
ExecStartPre=-/usr/bin/docker rm %N
ExecStartPre=-/usr/bin/docker pull myoung34/github-runner:latest
ExecStart=/usr/bin/docker run --rm \
                              --env-file /etc/ephemeral-github-actions-runner.env \
                              -e RUNNER_NAME=%H \
                              -v /var/run/docker.sock:/var/run/docker.sock \
                              --name %N \
                              myoung34/github-runner:latest
[Install]
WantedBy=multi-user.target

/etc/ephemeral-github-actions-runner.env

RUNNER_SCOPE=org
ORG_NAME=<omitted>
LABELS=lego
ACCESS_TOKEN=<omitted>
RUNNER_WORKDIR=/__w
DISABLE_AUTO_UPDATE=1
EPHEMERAL=1
START_DOCKER_SERVICE=false
@myoung34
Copy link
Owner

Docker in docker is not supported at this time.
See #261 and actions/runner#406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants