Issues with dnf upgrade on Fedora 30 (Failed to synchronize cache for repo)

,

Observing the following when running sudo dnf -v upgrade

Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.2.5
cachedir: /var/cache/dnf
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Unknown configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
repo: using cache for: fedora-modular
fedora-modular: using metadata from Thu 25 Apr 2019 07:47:30 PM EDT.
repo: using cache for: updates-modular
updates-modular: using metadata from Thu 09 May 2019 10:52:19 PM EDT.
Fedora 30 - x86_64 - Updates                                                                                                                                   26 kB/s |  16 kB     00:00    
reviving: failed for 'updates', mismatched sha256 sum.
repo: downloading from remote: updates
Fedora 30 - x86_64 - Updates                                                                                                                                  187 kB/s | 341 kB     00:01    
Cannot download 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-f30&arch=x86_64': Yum repo downloading error: Downloading error(s): repodata/0978310fe47b07fc7fd0df959389a82d27887bb7e2c82fea0875883463483711-prestodelta.xml.zck - Not finished; repodata/491ab687aee1392591b20a065824656f1f690bbde3bbfcab8f7e6ebf9ae78705-updateinfo.xml.xz - Not finished.
Failed to synchronize cache for repo 'updates'
Error: Failed to synchronize cache for repo 'updates'

Link to the last few entries in dnf.librepo.log
https://paste.fedoraproject.org/paste/5gzFZUXaEfMcJGs4WODxrQ

it’s happening to me too…

could you please do:

dnf clean all

and start update again

Regards.,

2 Likes

I was able to update after doing dnf clean metadata

This seems to happen to me when I don’t do anything with dnf for a few hours or have the machine shut off overnight.

Thanks

1 Like

https://bugzilla.redhat.com/show_bug.cgi?id=1706627

3 Likes

I have the next debug info from “sudo dnf upgrade” with dnf version 4.2.5-1.
This is after “sudo dnf clean all”.
If I disable the updates-modular repo everything goes normal.

repo: downloading from remote: updates-modular
error: Status code: 416 for http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/30126167f1b43a2cc45cc66d78d8309b77e0f305a6e904789becdcd5ce2113f5-filelists.xml.zck (http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/30126167f1b43a2cc45cc66d78d8309b77e0f305a6e904789becdcd5ce2113f5-filelists.xml.zck).
error: Status code: 416 for http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/51695fc3c5bb13ceb7370e0e6b8c7bbf7221cc342c9a4685b02a8e5847aab543-primary.xml.zck (http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/51695fc3c5bb13ceb7370e0e6b8c7bbf7221cc342c9a4685b02a8e5847aab543-primary.xml.zck).
error: Status code: 404 for https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/8a06651420595346477cefcefc38772406f08266c787fd88be07dba4b06626af-updateinfo.xml.xz (https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/8a06651420595346477cefcefc38772406f08266c787fd88be07dba4b06626af-updateinfo.xml.xz).
error: Curl error (23): Failed writing received data to disk/application for https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/30126167f1b43a2cc45cc66d78d8309b77e0f305a6e904789becdcd5ce2113f5-filelists.xml.zck [Failed writing body (0 != 420)] (https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/30126167f1b43a2cc45cc66d78d8309b77e0f305a6e904789becdcd5ce2113f5-filelists.xml.zck).
error: Curl error (23): Failed writing received data to disk/application for https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/51695fc3c5bb13ceb7370e0e6b8c7bbf7221cc342c9a4685b02a8e5847aab543-primary.xml.zck [Failed writing body (0 != 418)] (https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/51695fc3c5bb13ceb7370e0e6b8c7bbf7221cc342c9a4685b02a8e5847aab543-primary.xml.zck).
Fedora Modular 30 - x86_64 - Updates                                                                                                 171 kB/s | 220 kB     00:01    
Cannot download 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-f30&arch=x86_64': Yum repo downloading error: Downloading error(s): repodata/51695fc3c5bb13ceb7370e0e6b8c7bbf7221cc342c9a4685b02a8e5847aab543-primary.xml.zck - Download failed: Curl error (23): Failed writing received data to disk/application for https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/51695fc3c5bb13ceb7370e0e6b8c7bbf7221cc342c9a4685b02a8e5847aab543-primary.xml.zck [Failed writing body (0 != 418)]; repodata/30126167f1b43a2cc45cc66d78d8309b77e0f305a6e904789becdcd5ce2113f5-filelists.xml.zck - Download failed: Curl error (23): Failed writing received data to disk/application for https://ftp.halifax.rwth-aachen.de/fedora/linux/updates/30/Modular/x86_64/repodata/30126167f1b43a2cc45cc66d78d8309b77e0f305a6e904789becdcd5ce2113f5-filelists.xml.zck [Failed writing body (0 != 420)].
Failed to synchronize cache for repo 'updates-modular'
Error: Failed to synchronize cache for repo 'updates-modular'

New error today:

repo: downloading from remote: updates-modular
error: Status code: 416 for http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/fbe6dae685b58131848ae7f2fd81f2d38e7f40f4676fb6692a0e8d1fb17f4639-filelists.xml.zck (http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/fbe6dae685b58131848ae7f2fd81f2d38e7f40f4676fb6692a0e8d1fb17f4639-filelists.xml.zck).
error: Status code: 416 for http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/26837fbc77ffea5762ca0695549a739bee16f7304fbd0f4b593a54474535e9b3-primary.xml.zck (http://ftp.cica.es/fedora/linux/updates/30/Modular/x86_64/repodata/26837fbc77ffea5762ca0695549a739bee16f7304fbd0f4b593a54474535e9b3-primary.xml.zck).
error: Zchunk header checksum didn't match expected checksum (http://distrib-coffee.ipsl.jussieu.fr/pub/linux/fedora/linux/updates/30/Modular/x86_64/repodata/26837fbc77ffea5762ca0695549a739bee16f7304fbd0f4b593a54474535e9b3-primary.xml.zck).
error: Zchunk header checksum didn't match expected checksum (http://distrib-coffee.ipsl.jussieu.fr/pub/linux/fedora/linux/updates/30/Modular/x86_64/repodata/fbe6dae685b58131848ae7f2fd81f2d38e7f40f4676fb6692a0e8d1fb17f4639-filelists.xml.zck).
Fedora Modular 30 - x86_64 - Updates                                                                                                 1.4 MB/s | 947 kB     00:00    
Cannot download 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-f30&arch=x86_64': Checksum error /var/cache/dnf/updates-modular-783da5de2e38c644/repodata/26837fbc77ffea5762ca0695549a739bee16f7304fbd0f4b593a54474535e9b3-primary.xml.zck: Unable to read zchunk lead.
Failed to synchronize cache for repo 'updates-modular'
Error: Failed to synchronize cache for repo 'updates-modular'

Setting zchunk=False in /etc/dnf/dnf.conf also seems to work. This would need to be set back after this is corrected.

2 Likes

I can confirm using “zchunk = False” in /etc/dnf/dnf.conf works for me.
If I remove “zchunk = False” the error comes back again.

3 Likes

If anyone is using max_parallel_downloads=1 you may want to try removing it or changing it to 2. (believe it defaults to 3)

Is your system up to date? There were zchunk related issues before the release but they were fixed.

Yes it is, it’s this https://bugzilla.redhat.com/show_bug.cgi?id=1706627

FYI, I usually set that because my internet isn’t the greatest and multiple downloads end up timing out.

1 Like

for me setting fastestmirror=false in dnf.conf did the trick, if I’ve got error execute dnf clean all or retry and problem solved whithout touch zchunk that was introducing in :fedora: 30 to reduce the compression and performance in dnf.

Regards.,

1 Like

great!! works fine …now… thnx

1 Like

The fix is in update-testing you can do:

sudo dnf update --enablerepo=updates-testing dnf\* zchunk\* librepo\*

you can test it and provide karma with your fas → https://discussion.fedoraproject.org/t/how-can-i-test-updates-and-provide-karma/61065

NOTE

don’t forget to reverse changed in /etc/dnf/dnf.conf after that

Regards.,

https://bugzilla.redhat.com/show_bug.cgi?id=1706627

Didn’t make it in yet.

— Edit ----- (LOL)
And it is
https://bodhi.fedoraproject.org/updates/FEDORA-2019-b74be9c74d

2 Likes