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

Build fails during sometimes docker build commands #5516

Open
pablomuri opened this issue Dec 15, 2023 · 0 comments
Open

Build fails during sometimes docker build commands #5516

pablomuri opened this issue Dec 15, 2023 · 0 comments

Comments

@pablomuri
Copy link
Collaborator

Some builds randomly fail when accessing remote repositories because of any network or server problem. A way to fix it would be adding some retry to the docker build command.

Examples:

[2023-12-13 17:02:23] Step 15/16 : RUN    wget -q https://github.com/OpenTSDB/opentsdb/releases/download/v2.3.0/opentsdb-2.3.0_all.deb     && apt-get update -q     && apt-get install -yq --no-install-recommends         gnuplot         gcc     && python3 -m pip install happybase==1.2.0     && dpkg -i opentsdb-2.3.0_all.deb     && chmod 777 /app/*     && rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/*
[2023-12-13 17:02:23]  ---> Running in 433c224e8e2c
[2023-12-13 17:02:25] The command '/bin/sh -c wget -q https://github.com/OpenTSDB/opentsdb/releases/download/v2.3.0/opentsdb-2.3.0_all.deb     && apt-get update -q     && apt-get install -yq --no-install-recommends         gnuplot         gcc     && python3 -m pip install happybase==1.2.0     && dpkg -i opentsdb-2.3.0_all.deb     && chmod 777 /app/*     && rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 4
[2023-12-13 17:02:25] generated.mk:8: recipe for target 'build-base' failed
[2023-12-13 17:02:25] make: *** [build-base] Error 4
[2023-12-12 16:10:19] Step 14/16 : RUN     export DEBIAN_FRONTEND=noninteractive &&     echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list &&     apt -y update &&     apt -y install net-tools telnet netcat &&     rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/*
[2023-12-12 16:10:19]  ---> Running in ca5b5eeab29a
[2023-12-12 16:10:19] [91m
[2023-12-12 16:10:19] WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
[2023-12-12 16:10:19] 
[2023-12-12 16:10:20] [0mIgn:1 https://artifacts.elastic.co/packages/5.x/apt stable InRelease
[2023-12-12 16:10:20] Err:2 https://artifacts.elastic.co/packages/5.x/apt stable Release
[2023-12-12 16:10:20]   503  Service Unavailable
[2023-12-12 16:10:20] Ign:3 http://archive.debian.org/debian stretch InRelease
[2023-12-12 16:10:20] Get:4 http://archive.debian.org/debian stretch Release [118 kB]
[2023-12-12 16:10:20] Get:5 http://archive.debian.org/debian stretch Release.gpg [3177 B]
[2023-12-12 16:10:20] Get:6 http://archive.debian.org/debian stretch/main amd64 Packages [7080 kB]
[2023-12-12 16:10:22] Reading package lists...
[2023-12-12 16:10:22] [91mE: The repository 'https://artifacts.elastic.co/packages/5.x/apt stable Release' does not have a Release file.
[2023-12-12 16:10:23] [0mThe command '/bin/sh -c export DEBIAN_FRONTEND=noninteractive &&     echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list &&     apt -y update &&     apt -y install net-tools telnet netcat &&     rm -rfv /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 100
[2023-12-12 16:10:23] generated.mk:8: recipe for target 'build-base' failed
[2023-12-12 16:10:23] make: *** [build-base] Error 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant