Connection failed while fetching the image from debian

I am running my pipeline sometimes it fails to fetch debain lib and getting connection failed issue and getting like
Error: Job failed : command terminated with exit code 100
Sometimes pipeline passes without any changes i am still confused why gitlab is acting like weird sometimes.

My docker file
FROM debian: stretch-slim
RUN apt-get update
&& apt-get install -qy --no-install-recommends
curl
&& apt-get -y auto-remove \

1 Like

Iā€™m getting the same issue. Running a pipeline with a GitLab Runner running in Kubernetes via GitLab Managed Apps. An example error:

E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/o/openldap/libldap-2.4-2_2.4.47+dfsg-3+deb10u6_amd64.deb  Connection failed [IP: xxx.xxx.xx.xxx 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Did you find a solution for this?

Has anyone found any solution to this problem?
The same thing happens to me randomly.

Fetched 10.4 MB in 3min 32s (49.2 kB/s)
E: Failed to fetch http://deb.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.12_all.deb  Connection failed [IP: 199.232.114.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/u/ucf/ucf_3.0038+nmu1_all.deb  Connection failed [IP: 199.232.114.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get update && apt-get install -y libgdiplus' returned a non-zero code: 100
Cleaning up file based variables
00:00
ERROR: Job failed: command terminated with exit code 100

This happens when I use docker in docker. Running:

RUN apt-get update && apt-get install -y libgdiplus