docker-ce-packaging icon indicating copy to clipboard operation
docker-ce-packaging copied to clipboard

Docker RPM repository symlink lead to 404

Open leleobhz opened this issue 3 years ago • 1 comments

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?

leleobhz avatar Aug 25 '22 03:08 leleobhz

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 avatar Jan 05 '23 09:01 thaJeztah