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

[BUG] Docker distribution builds are failing #2023

Closed
reta opened this issue Jan 31, 2022 · 2 comments · Fixed by #2024
Closed

[BUG] Docker distribution builds are failing #2023

reta opened this issue Jan 31, 2022 · 2 comments · Fixed by #2024
Labels
bug Something isn't working untriaged

Comments

@reta
Copy link
Collaborator

reta commented Jan 31, 2022

Describe the bug

Docker distribution builds are failing across the board [1]

CentOS Linux 8 - AppStream                      144  B/s |  38  B     00:00    
| �[91mError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
| �[0myum error: retry 1 in 10s
| CentOS Linux 8 - AppStream                      176  B/s |  38  B     00:00    
| �[91mError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
| �[0myum error: retry 2 in 10s
| CentOS Linux 8 - AppStream                      228  B/s |  38  B     00:00    
| �[91mError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
| �[0myum error: retry 3 in 10s
| CentOS Linux 8 - AppStream                      209  B/s |  38  B     00:00    
| �[91mError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
| �[0myum error: retry 4 in 10s
| CentOS Linux 8 - AppStream                      405  B/s |  38  B     00:00    
| �[91mError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
| �[0myum error: retry 5 in 10s
| CentOS Linux 8 - AppStream                       86  B/s |  38  B     00:00    
| �[91mError: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
| �[0myum error: retry 6 in 10s

It seems like Centos 8, which we use for building Docker images is EOLed [3]. The workarounds for now are
a) use http://vault.centos.org for repositories
b) migrate from CentOS Linux 8 to CentOS Stream 8.
In the long term, we probably should change the base image.

[1] https://ci.opensearch.org/logs/ci/workflow/OpenSearch_CI/PR_Checks/Gradle_Check/gradle_check_2136.log
[2] https://forums.centos.org/viewtopic.php?f=54&t=78708
[3] https://www.centos.org/centos-linux-eol/

To Reproduce
Steps to reproduce the behavior: ./gradlew :distribution:docker:buildDockerImage

Expected behavior
The Docker image should be built successfully

Plugins
N/A

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):
CI or local builds

Additional context
N/A

@AnanthGopal
Copy link

I got the same error, i fixed this error by using below link

https://stackoverflow.com/questions/70926799/centos-through-vm-no-urls-in-mirrorlist

@Shashwat-05
Copy link

Shashwat-05 commented Feb 4, 2022

Centos reached the end of life on 31 Dec, 2021. So instead, centos:7 can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants