Eduard, thank you for the fix.

I can confirm that Fedora (as well as CentOS) installations are now
working through apt-cacher-ng. There are a couple minor notes I'd
like to add here:

First, the default VfilePattern needs one more adjustment: the Fedora 20
installer will request a file named "treeinfo" if it can't find
".treeinfo". The change is as you'd expect; see the attached patch.
(Also fixed a nearby spelling error.)

    1409547840|I|537|A.B.C.D|fedora/.treeinfo
    1409547840|O|230|A.B.C.D|fedora/.treeinfo
    1409547840|E|420|A.B.C.D|403 Forbidden file type or location: 
/fedora/treeinfo

Second, I observed some Fedora installation failures with ~pre2-1 that
at first glance appeared the same as those I originally reported.
Instead of an erroneous 200 response, however, ACNG was returning "503
Service Unavailable". As that string does not appear in the source, the
error seemed to have come from the upstream server, and indeed changing
the server was enough to get a successful install. It appears that some
of the official Fedora mirror servers cannot handle the rapid succession
of partial requests made by the installer. One such faulty mirror is

    http://ftp.linux.ncsu.edu/pub/fedora/linux

and a mirror that worked for me is

    http://mirrors.kernel.org/fedora

(Because at least some mirrors have this problem, I can't use the
download.fedoraproject.org forwarding alias in the ACNG config.)
--- apt-cacher-ng-0.8.0~pre2/source/acfg_defaults.cc.orig	2014-08-31 00:33:53.000000000 -0400
+++ apt-cacher-ng-0.8.0~pre2/source/acfg_defaults.cc	2014-09-01 00:57:05.425780431 -0400
@@ -44,8 +44,8 @@
 		"|packages\\.[a-zA-Z][a-zA-Z]\\.gz|info\\.txt|license\\.tar\\.gz|license\\.zip" //opensuse
 		"|" ALXPATTERN // Arch Linux
 		"|metalink\\?repo|.*prestodelta\\.xml\\.gz|repodata/.*\\.(xml|sqlite)" COMPOPT // CentOS
-		"|\\.treeinfo|vmlinuz|(initrd|product|squashfs|updates)\\.img" // Fedora
-		")$" // end of only-filename paterns
+		"|\\.?treeinfo|vmlinuz|(initrd|product|squashfs|updates)\\.img" // Fedora
+		")$" // end of only-filename patterns
 		"|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*"); // d-i stuff but not containing a date (year number) in the revision directory (like "current", "beta", ...)
 
 //string wfilepat( VPATPREFIX  "(Release|Release\\.gpg|release|meta-release|Translation[^/]*\\.bz2)$");

Reply via email to