Dnf/Yum stopped working on Fedora 36 image

Hi!

I have a Docker file that uses Fedora 36 docker image, this is the Dockerfile:

FROM fedora:36

RUN yum -y install \
	wget \
	git \
	gcc \
	gcc-c++ \
	autoconf \
	bison \
	flex \
	make \
	cmake \
	elfutils-devel \
	findutils \
	kmod \
	clang \
	llvm \
	python-lxml && yum clean all

ADD builder-entrypoint.sh /
WORKDIR /build/probe
ENTRYPOINT [ "/builder-entrypoint.sh" ]

When building the image it fails when trying to get the metalink from https://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64.

This is the error:

#7 3.560 Fedora 36 - x86_64                              142  B/s | 359  B     00:02
#7 3.565 Errors during downloading metadata for repository 'fedora':
#7 3.565   - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64 (IP: 152.19.134.198)
#7 3.593 Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64 (IP: 152.19.134.198)
#7 ERROR: process "/bin/sh -c yum -y install \twget \tgit \tgcc \tgcc-c++ \tautoconf \tbison \tflex \tmake \tcmake \telfutils-devel \tfindutils \tkmod \tclang \tllvm \tpython-lxml && yum clean all" did not complete successfully: exit code: 1
------
 > [2/4] RUN yum -y install 	wget 	git 	gcc 	gcc-c++ 	autoconf 	bison 	flex 	make 	cmake 	elfutils-devel 	findutils 	kmod 	clang 	llvm 	python-lxml && yum clean all:
------
process "/bin/sh -c yum -y install \twget \tgit \tgcc \tgcc-c++ \tautoconf \tbison \tflex \tmake \tcmake \telfutils-devel \tfindutils \tkmod \tclang \tllvm \tpython-lxml && yum clean all" did not complete successfully: exit code: 1

Trying with curl I’ll get the same error (Not Found 404):

 ➜ curl "https://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64" -v
*   Trying 18.159.254.57:443...
* Connected to mirrors.fedoraproject.org (18.159.254.57) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN: server accepted h2
* Server certificate:
*  subject: C=US; ST=North Carolina; L=Raleigh; O=Red Hat, Inc.; CN=*.fedoraproject.org
*  start date: Jan 16 00:00:00 2023 GMT
*  expire date: Jan 16 23:59:59 2024 GMT
*  subjectAltName: host "mirrors.fedoraproject.org" matched cert's "*.fedoraproject.org"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert Global G3 TLS ECC SHA384 2020 CA1
*  SSL certificate verify ok.
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /metalink?repo=fedora-36&arch=x86_64]
* h2h3 [:scheme: https]
* h2h3 [:authority: mirrors.fedoraproject.org]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x15600cc00)
> GET /metalink?repo=fedora-36&arch=x86_64 HTTP/2
> Host: mirrors.fedoraproject.org
> user-agent: curl/7.88.1
> accept: */*
>
< HTTP/2 404
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
< referrer-policy: same-origin
< content-type: application/metalink+xml
< content-length: 359
< date: Wed, 19 Jul 2023 10:53:33 GMT
< apptime: D=5125
< x-fedora-proxyserver: proxy36.fedoraproject.org
< x-fedora-requestid: ZLfAriMapO1s6NItkDCObgAAlAY
< server: Apache
<
<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/" type="dynamic" pubdate="Wed, 19 Jul 2023 10:53:34 GMT" generator="mirrormanager" xmlns:mm0="http://fedorahosted.org/mirrormanager">
<!-- pub/archive/fedora/linux/releases/36/Everything/x86_64/os/repodata/repomd.xml not found or has not metalink
-->
</metalink>
* Connection #0 to host mirrors.fedoraproject.org left intact

I understand that FC 36 is in EOL since 16th May 2023 but earlier releases like FC35, FC34 I can get the metalink without any problem.
There is any infra issue on your side?

Thanks,
Daniele

I can reproduce the issue for f36 (f35 and f37 work fine though). Seems to be infrastructure issue, tagging infrastructure-team

2 Likes

Thanks for reporting it. I am currently trying to fix it. Although I am unsure why it happened at all.

1 Like

Should be fixed.

I confirm it’s fixed, thanks a lot Adrian and Flow for the prompt reply and fix!

Hi,

For the past few days I observed a similar failure when updating a fresh fedora:36 Docker image in a GitLab pipeline (fedora: [36] (#5618640636) · Jobs · pygolo / py · GitLab):

Errors during downloading metadata for repository 'fedora-modular':
  - Status code: 404 for https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/releases/36/Modular/x86_64/os/repodata/repomd.xml (IP: 99.84.245.125)
  - Status code: 404 for http://mirror.rnet.missouri.edu/fedora/linux/releases/36/Modular/x86_64/os/repodata/repomd.xml (IP: 128.206.116.77)
  - Status code: 404 for http://dl.fedoraproject.org/pub/fedora/linux/releases/36/Modular/x86_64/os/repodata/repomd.xml (IP: 38.145.60.22)
  - Status code: 404 for https://dl.fedoraproject.org/pub/fedora/linux/releases/36/Modular/x86_64/os/repodata/repomd.xml (IP: 38.145.60.22)
Error: Failed to download metadata for repo 'fedora-modular': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Other jobs testing Fedora 35, 37, 38, and 39 work without issues.

It is 100% reproducible also locally. Could anybody please help? @adrian?

Many thanks!
Dom

Fedora is End Of Life (EOL)

The repository has been moved to

ATTENTION
======================================
The contents of this directory have been moved to our archives available at:

http://archives.fedoraproject.org/pub/archive/fedora/

If you are having troubles finding something there please stop by #fedora-admin on irc.freenode.net

This has also been reported at Issue #11646: Mirror issue with fedora 36 and fedora-modular repo - fedora-infrastructure - Pagure.io and should be solved.

1 Like

Yes, that did work indeed. Thank you!