Bug 2343888

Summary: Cannot prepare internal mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=fedora-42&arch=x86_64 returns 404 HTTP error
Product: [Fedora] Fedora Reporter: Stas Sergeev <stsp2>
Component: dnf5Assignee: rpm-software-management
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: daniel.mach, jkolarik, jmracek, jrohel, mblaha, nsella, packaging-team-maint, pkratoch, ppisar, rpm-software-management
Target Milestone: ---Keywords: Upgrades
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-05 11:38:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stas Sergeev 2025-02-05 08:39:16 UTC
$ sudo dnf upgrade --refresh
$ sudo dnf system-upgrade download --releasever=42

>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-
>>> Ошибка Librepo: Cannot prepare internal mirrorlist: Status code: 404 f
Не удалось загрузить метаданные (metalink: "https://mirrors.fedoraproject.org/metalink?repo=fedora-42&arch=x86_64") для репозитория "fedora"
 Ошибка Librepo: Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-42&arch=x86_64 (IP: 18.159.254.57)

Reproducible: Always

Steps to Reproduce:
1. sudo dnf system-upgrade download --releasever=42

Actual Results:  
Aforementioned error

Expected Results:  
Probably no error

Comment 1 Petr Pisar 2025-02-05 11:38:43 UTC
Not a bug in DNF5. It's a fault of the mirror server:


$ wget -S 'https://mirrors.fedoraproject.org/metalink?repo=fedora-42&arch=x86_64'
# got header 359 bytes:
:status: 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: 151531
date: Wed, 05 Feb 2025 11:35:34 GMT
apptime: D=1980
x-fedora-proxyserver: proxy32.fedoraproject.org
x-fedora-requestid: Z6NNB03NF_SDcYMnwVeOzQAATgI
HTTP ERROR response 404  [https://mirrors.fedoraproject.org/metalink?repo=fedora-42&arch=x86_64]

Follow this Fedora infrastructure <https://pagure.io/fedora-infrastructure/issue/12384> ticket.