Hey!
I’ve got a problem during a build with Drone. I use a kubernetes setup and installed Drone and drone-runner-docker via Helm. Beside my other problem regarding HPA everything’s working so far except for this error: I cannot run RUN apk upgrade --no-cache, it hangs until the build is running in timeout.
Step 2/7 : RUN apk upgrade --no-cache
---> Running in e40c2117c10b
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
If I exec into the runner dind pod, I am enable to contact alpinelinux.org:
Thanks for reporting this. I wrote the drone-runner-docker Helm chart, so I appreciate the feedback.
Can you try running a step in a debian or ubuntu image, and just try running the apt-get update command? The problem you are seeing might be related to recent versions of alpine on docker. If that works, I need to do some research.
Step 2/7 : RUN apt update && apt upgrade -y
---> Running in 57a3dffe6d48
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://nginx.org/packages/debian buster InRelease [3601 B]
Get:2 http://nginx.org/packages/debian buster/nginx Sources [16.7 kB]
Get:3 http://nginx.org/packages/debian buster/nginx amd64 Packages [24.8 kB]
Get:4 http://deb.debian.org/debian buster InRelease [122 kB]
Err:4 http://deb.debian.org/debian buster InRelease
Connection failed [IP: 199.232.138.132 80]
Get:5 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:5 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:5 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:5 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Err:5 http://deb.debian.org/debian-security buster/updates InRelease
Could not connect to deb.debian.org:80 (199.232.138.132), connection timed out [IP: 199.232.138.132 80]
Err:6 http://deb.debian.org/debian buster-updates InRelease
Unable to connect to deb.debian.org:http: [IP: 199.232.138.132 80]
Fetched 45.1 kB in 3min 31s (214 B/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Connection failed [IP: 199.232.138.132 80]
W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease Could not connect to deb.debian.org:80 (199.232.138.132), connection timed out [IP: 199.232.138.132 80]
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease Unable to connect to deb.debian.org:http: [IP: 199.232.138.132 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
At least aptitude isn’t waiting I also switched dind image from alpine to Ubuntu I guess. No change. Next thing I gonna try is this. Maybe a MTU size Problem?
BR
panda
Tried these with mtu 1400 and 1280 - no success so far…
There is some info not covered in our conversation here, such as setting com.docker.network.driver.mtu for the docker runner. I believe that without that setting, other steps (not plugins/docker) in your pipeline would also have networking issues.
Let me know if the PR looks good and I’ll merge it.