open-sw / pkg-cacher

This is a transparent cache for Debian and RedHat packages (.deb and .rpm). It is based on apt-cacher available on Debian. It has been enhanced to handle RedHat repositories and files whose names are the same but the contents are different.
15 stars 12 forks source link

Completely unusable for Fedora 31 repos #44

Open brianjmurrell opened 5 years ago

brianjmurrell commented 5 years ago

I think this project is at it's EOL for use with Fedora. Trying to upgrade to Fedora 31 through this proxy, it seems to constantly just stall out trying to fetch some metadata.

Sadly, about the next best thing seems to be Nexus. But that looks to be a big(ger than necessary) Java pig. :-(

brianjmurrell commented 5 years ago

Hrm. This might have been a case of an invalid (i.e. 0 bytes) file or two in the cache. This sort of thing really ought not to just stop pkg-cacher in it's tracks. Invalid files should be removed and progress allowed to continue.

ganto commented 4 years ago

Hmn, I think the issue is the new zchunk support in the recent Fedora releases. It seems dnf now does some HTTP range requests that are not properly handled by pkg-cacher.

I found that disabling zchunk in /etc/dnf/dnf.conf makes it work fine with pkg-cacher again:

[main]
...
zchunk=False
brianjmurrell commented 4 years ago

Yes, that work-around has worked-around a number of issues with pkg-cacher. Thanks!