Closed ausias-armesto closed 1 year ago
Looks like docker is not properly installed on your self-hosted runner: https://github.com/hoprnet/hoprnet/actions/runs/5321651593/jobs/9637024279#step:7:18
/usr/local/bin/docker version
Client:
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:30:35 2023
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 24.0.2
API version: 1.43 (minimum version 1.12)
Go version: go1.20.4
Git commit: 659604f
Built: Thu May 25 21:35:04 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.1
GitCommit: 1677a17964311325ed1c31e2c0a3589ce6d5c30d
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Client version is 20.10.23
but server 24.0.2
.
Thanks for pointing that, I've fixed the mismatching version on self-hosted runners, nevertheless doesn't seem to be the root cause. After changing the runners docker version is still not working. You can have a look at here: https://github.com/hoprnet/hoprnet/actions/runs/5330854843/jobs/9658405939
Another interesting topic is that the raw docker command does not work either so I will focus more in the configuration of the self-hosted runners
Looks like an issue with your self-hosted. Closing as it does not seem related to the action.
Hi @crazy-max , Thanks for the support, I finally got it. It was related to the MTU as mentioned here https://github.com/actions/actions-runner-controller/issues/1046 And configuring this step
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: kubernetes
Troubleshooting
Behaviour
I cannot build a simple docker image using self hosted runners because access to http://deb.debian.org/debian/dists/bullseye/InRelease is failing due to a timeout
Steps to reproduce this issue
Expected behaviour
I would expect the networking to be working the same from outside the docker container.
Actual behaviour
As it can be seen from the github workflow provided, the job has internet access and is able to get the contents of the above mentioned URL. As it can be seen from the logs, the command
RUN curl http://www.ifconfig.me
works fine so means that from within the container is also able to download things. But when executes the second commandRUN curl -v http://deb.debian.org/debian/dists/bullseye/InRelease
it fails due to a timeout.The reason for executing this command is because it is internally executed by the
RUN apt-get update
command.Configuration
Dockerfile
``` FROM osexp2000/ubuntu-with-utils RUN curl http://www.ifconfig.me RUN curl -v http://deb.debian.org/debian/dists/bullseye/InRelease RUN apt-get update ```Workflow
```yml --- name: Build Debian on: pull_request: branches: - master - release/* types: - synchronize - opened concurrency: group: ${{ github.head_ref }} cancel-in-progress: true jobs: build: name: docker runs-on: ubuntu-2-core steps: - name: Checkout hoprnet repository uses: actions/checkout@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - run: curl -v http://deb.debian.org/debian/dists/bullseye/InRelease - name: Build and push docker image uses: docker/build-push-action@v4 with: file: packages/ethereum/Dockerfile.test tags: europe-west3-docker.pkg.dev/${{ secrets.GOOGLE_HOPRASSOCIATION_PROJECT }}/docker-images/anvil:pr-${{ github.event.pull_request.number }} ```Logs
``` 2023-06-20T10:51:57.7809367Z Requested labels: ubuntu-2-core 2023-06-20T10:51:57.7809586Z Job defined at: hoprnet/hoprnet/.github/workflows/build-debian.yaml@refs/pull/5152/merge 2023-06-20T10:51:57.7809671Z Waiting for a runner to pick up this job... 2023-06-20T10:51:57.8929221Z Job is about to start running on the runner: self-hosted-ubuntu-2cpu-h85hh-4vcfw (repository) 2023-06-20T10:52:03.3731628Z Current runner version: '2.305.0' 2023-06-20T10:52:03.3736578Z Runner name: 'self-hosted-ubuntu-2cpu-h85hh-4vcfw' 2023-06-20T10:52:03.3736994Z Runner group name: 'Default' 2023-06-20T10:52:03.3737556Z Machine name: 'self-hosted-ubuntu-2cpu-h85hh-4vcfw' 2023-06-20T10:52:03.3739115Z ##[group]GITHUB_TOKEN Permissions ... 2023-06-20T10:52:03.7808225Z Download action repository 'actions/checkout@v3' (SHA:c85c95e3d7251135ab7dc9ce3241c5835cc595a9) 2023-06-20T10:52:04.3591198Z Download action repository 'docker/setup-qemu-action@v2' (SHA:2b82ce82d56a2a04d2637cd93a637ae1b359c0a7) 2023-06-20T10:52:04.7359520Z Download action repository 'docker/setup-buildx-action@v2' (SHA:ecf95283f03858871ff00b787d79c419715afc34) 2023-06-20T10:52:05.1582998Z Download action repository 'docker/build-push-action@v4' (SHA:2eb1c1961a95fc15694676618e422e8ba1d63825) 2023-06-20T10:52:05.7055142Z Complete job name: docker 2023-06-20T10:52:05.7419089Z A job started hook has been configured by the self-hosted runner administrator 2023-06-20T10:52:05.7637641Z ##[group]Run '/etc/arc/hooks/job-started.sh' 2023-06-20T10:52:05.7653017Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2023-06-20T10:52:05.7653232Z ##[endgroup] 2023-06-20T10:52:05.7881526Z [0;37m2023-06-20 10:52:05.783 DEBUG --- Running ARC Job Started Hooks[0m 2023-06-20T10:52:05.7881946Z [0;37m2023-06-20 10:52:05.786 DEBUG --- Running hook: /etc/arc/hooks/job-started.d/update-status[0m 2023-06-20T10:52:05.8430080Z ##[group]Run actions/checkout@v3 2023-06-20T10:52:05.8430278Z with: 2023-06-20T10:52:05.8430441Z repository: hoprnet/hoprnet 2023-06-20T10:52:05.8430782Z token: *** 2023-06-20T10:52:05.8430938Z ssh-strict: true 2023-06-20T10:52:05.8431100Z persist-credentials: true 2023-06-20T10:52:05.8431263Z clean: true 2023-06-20T10:52:05.8431439Z sparse-checkout-cone-mode: true 2023-06-20T10:52:05.8431611Z fetch-depth: 1 2023-06-20T10:52:05.8431747Z lfs: false 2023-06-20T10:52:05.8431894Z submodules: false 2023-06-20T10:52:05.8432059Z set-safe-directory: true 2023-06-20T10:52:05.8432322Z ##[endgroup] 2023-06-20T10:52:05.9833031Z Syncing repository: hoprnet/hoprnet 2023-06-20T10:52:05.9834769Z ##[group]Getting Git version info 2023-06-20T10:52:05.9835319Z Working directory is '/runner/_work/hoprnet/hoprnet' 2023-06-20T10:52:05.9835877Z [command]/usr/bin/git version 2023-06-20T10:52:05.9836166Z git version 2.40.1 2023-06-20T10:52:05.9837237Z ##[endgroup] 2023-06-20T10:52:05.9851295Z Temporarily overriding HOME='/runner/_work/_temp/403d35d6-9e71-4e0c-aaef-03386c69791c' before making global git config changes 2023-06-20T10:52:05.9851847Z Adding repository directory to the temporary git global config as a safe directory 2023-06-20T10:52:05.9852502Z [command]/usr/bin/git config --global --add safe.directory /runner/_work/hoprnet/hoprnet 2023-06-20T10:52:05.9853436Z Deleting the contents of '/runner/_work/hoprnet/hoprnet' 2023-06-20T10:52:05.9854002Z ##[group]Initializing the repository 2023-06-20T10:52:05.9854344Z [command]/usr/bin/git init /runner/_work/hoprnet/hoprnet 2023-06-20T10:52:05.9854838Z hint: Using 'master' as the name for the initial branch. This default branch name 2023-06-20T10:52:05.9855269Z hint: is subject to change. To configure the initial branch name to use in all 2023-06-20T10:52:05.9855939Z hint: of your new repositories, which will suppress this warning, call: 2023-06-20T10:52:05.9856246Z hint: 2023-06-20T10:52:05.9856629Z hint: git config --global init.defaultBranch