Bug 1957854

Summary: dnf update error - Unable to set zchunk file descriptor
Product: [Fedora] Fedora Reporter: vikram goyal <vikigoyal>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: amatej, dmach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---   
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-05-10 16:09:09 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:
Attachments:
Description Flags
dnf.librepo.log and dnf.log combined none

Description vikram goyal 2021-05-06 16:07:43 UTC
Created attachment 1780355 [details]
dnf.librepo.log and dnf.log combined

Description of problem:
Fedora 34 fresh install. dnf can't update with errors after installing auto downloaded updates.

Version-Release number of selected component (if applicable):
dnf-data-4.6.1-1.fc34.noarch
libdnf-0.60.0-1.fc34.x86_64
python3-libdnf-0.60.0-1.fc34.x86_64
python3-dnf-4.6.1-1.fc34.noarch
dnf-4.6.1-1.fc34.noarch
python3-dnf-plugins-core-4.0.19-1.fc34.noarch
dnf-plugins-core-4.0.19-1.fc34.noarch
python3-dnf-plugins-extras-common-4.0.13-3.fc34.noarch
python3-dnf-plugin-system-upgrade-4.0.13-3.fc34.noarch
zchunk-libs-1.1.9-2.fc34.x86_64

How reproducible:


Steps to Reproduce:
1.dnf clean all -> 15 files removed
2.dnf update

Actual results:
Error: Failed to download metadata for repo 'updates-modular': Yum repo downloading error: Downloading error: Unable to initialize zchunk file repodata/41a271c95fcfec5a929cf2ed048eff90f7c864acdd2ed3da58cadcae86ebe196-filelists.xml.zck: Unable to set zchunk file descriptor for repodata/41a271c95fcfec5a929cf2ed048eff90f7c864acdd2ed3da58cadcae86ebe196-filelists.xml.zck: Unable to find multipart download range

Expected results:


Additional info:
selinux is permissive for now.

Comment 1 vikram goyal 2021-05-06 16:45:33 UTC
setting zchunk=False in /etc/dnf/dnf.conf resolved the issue.

Comment 2 amatej 2021-05-10 16:09:09 UTC
I believe this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1927988 and it is definitely connected to the https://mirror.sjtu.edu.cn/fedora mirror.

I am still not sure about all the details (as described in the bz1927988 and also how come you were able to reproduce this even after doing dnf clean all) but it should be resolved by a fix from: https://github.com/zchunk/zchunk/issues/40, which is present in zchunk-1.1.11-1.fc34.

If you are able to reproduce this even with the new zchunk please let us know.

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