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

Docker RPM repository symlink lead to 404 #753

Open
leleobhz opened this issue Aug 25, 2022 · 1 comment
Open

Docker RPM repository symlink lead to 404 #753

leleobhz opened this issue Aug 25, 2022 · 1 comment
Labels

Comments

@leleobhz
Copy link

Hello!

Upgrade a RPM Based distro lead to following issue:

- Status code: 404 for https://download.docker.com/linux/centos/9.0/x86_64/stable/repodata/repomd.xml (IP: 2600:9000:236a:2600:3:db06:4200:93a1)
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Change 9.0 to only 9 works. But at https://download.docker.com/linux/centos, 9.0 folder exists.

Can this be fixed?

@thaJeztah
Copy link
Member

thaJeztah commented Jan 5, 2023

Thanks for reporting, and apologies for the delay; looks indeed like some redirects are missing. For comparison; here's the redirects for CentOS 8.0;

curl -sI https://download.docker.com/linux/centos/8.0/x86_64/stable/repodata/repomd.xml | grep location:
# location: https://download.docker.com/linux/centos/8/x86_64/stable/repodata/repomd.xml
curl -sI https://download.docker.com/linux/centos/8.0/x86_64/stable/repodata/ | grep location:
# location: https://download.docker.com/linux/centos/8/x86_64/stable/repodata/
curl -sI https://download.docker.com/linux/centos/8.0/x86_64/stable/ | grep location:
# location: https://download.docker.com/linux/centos/8/x86_64/stable/
curl -sI https://download.docker.com/linux/centos/8.0/x86_64/ | grep location:
# location: https://download.docker.com/linux/centos/8/x86_64/
curl -sI https://download.docker.com/linux/centos/8.0/ | grep location:
# location: https://download.docker.com/linux/centos/8/

On CentOS 9.0 (and other 9** locations), those are missing:

curl -sI https://download.docker.com/linux/centos/9.0/x86_64/stable/repodata/repomd.xml | grep location:
# (no result)
curl -sI https://download.docker.com/linux/centos/9.0/x86_64/stable/repodata/ | grep location:
# (no result)
curl -sI https://download.docker.com/linux/centos/9.0/x86_64/stable/ | grep location:
# (no result)
curl -sI https://download.docker.com/linux/centos/9.0/x86_64/ | grep location:
# (no result)
curl -sI https://download.docker.com/linux/centos/9.0/ | grep location:
# location: /linux/centos/9/index.html

There is one redirect, but only for the index.html (so for browsing the location). I now seem to recall that the "index.html" redirect were added in a different part of the release pipeline, but the actual redirects for the packages to be configured elsewhere. I'd have to check with our infra team to find out where those are maintained.

@thaJeztah thaJeztah added the bug label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants