Bug 1933264

Summary: certain mirror returns repository error "Server returned nothing"
Product: [Fedora] Fedora Reporter: legopad296 <legopad296>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: amatej, dmach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-01 15:27:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description legopad296 2021-02-26 11:35:22 UTC
I don't think it's a bug or version dependent.  Sometimes a repository server returns this and dnf stops update.  I want to know workaround.  Or I want to remove this site from the mirror list (apparently Chinese site).
-----------------------------------------------------
[tetsuji@maverick ~]$ sudo dnf -y --refresh --downloadonly update
Fedora 34 openh264 (From Cisco) - x86_64        2.3 kB/s | 989  B     00:00    
Fedora Modular 34 - x86_64                       56 kB/s | 6.5 kB     00:00    
Fedora Modular 34 - x86_64                      456 kB/s | 178 kB     00:00    
Fedora Modular 34 - x86_64 - Updates             53 kB/s | 6.3 kB     00:00    
Fedora Modular 34 - x86_64 - Test Updates        12 kB/s | 4.6 kB     00:00    
Fedora 34 - x86_64 - Test Updates                28 kB/s | 8.9 kB     00:00    
Fedora 34 - x86_64 - Test Updates               188 kB/s | 302 kB     00:01    
Errors during downloading metadata for repository 'updates-testing':
  - Curl error (52): Server returned nothing (no headers, no data) for http://mirror.sjtu.edu.cn/fedora/linux/updates/testing/34/Everything/x86_64/repodata/9ec668f6e2b5e84aa22352f2a298ff3c5eda6d0f20ab11afe24dfd8c19a3ac36-filelists.xml.zck [Empty reply from server]
  - Curl error (52): Server returned nothing (no headers, no data) for http://mirror.sjtu.edu.cn/fedora/linux/updates/testing/34/Everything/x86_64/repodata/187ece83b72d3fc9fddd76df7bcec92712f071374b60de70aafce394694d89c5-primary.xml.zck [Empty reply from server]
  - Zchunk error: Unable to find multipart download range

Error: Failed to download metadata for repo 'updates-testing': Yum repo downloading error: Downloading error: Unable to initialize zchunk file repodata/187ece83b72d3fc9fddd76df7bcec92712f071374b60de70aafce394694d89c5-primary.xml.zck: Unable to set zchunk file descriptor for repodata/187ece83b72d3fc9fddd76df7bcec92712f071374b60de70aafce394694d89c5-primary.xml.zck: Unable to find multipart download range

Comment 1 amatej 2021-03-01 13:49:45 UTC
As a workaround it might help to turn off zchunk by adding: zchunk=0 to dnf.conf.

Other than that I believe this bug is a duplicate of: https://bugzilla.redhat.com/show_bug.cgi?id=1927988

Comment 2 legopad296 2021-03-01 15:27:13 UTC
Thanks, this looks like a duplicate of that url.

BTW I modified .repo files so that baseurl is set to two fast mirrors in the US.  It works fine to me.

-Tetsuji

*** This bug has been marked as a duplicate of bug 1927988 ***