I installed acng yesterday. Nothing else has changed.
A script is fetching all of the required packages plus a few others for amd64,i386,arm64 and armel starting with sid all the way to jessie Rather complicated setup: (This does make sense although in this particular failure it looks excessively complicated) apt(aptmirror17) -> acng (localhost) -> squid (different host) -> apache(back on aptmirror17) downloaded all of the i386 packages and was fine for amd64 until 1659848478|O|404276|::1|aptmirror17.home.woodall.me.uk/local/pool/essential/sid/amd64/grep_3.7-1_amd64.deb 1659848478|E|632|::1|aptmirror17.home.woodall.me.uk/local/pool/essential/sid/amd64/gzip_1.12-1_amd64.deb [HTTP error, code: 502] 1659848478|E|632|::1|aptmirror17.home.woodall.me.uk/local/pool/essential/sid/amd64/hostname_3.23_amd64.deb [HTTP error, code: 502] etc I don't have the exact output from apt for this particular error but it will have been something like: Err:129 http://aptmirror17.home.woodall.me.uk/local buster/essential armel linux-image-4.19.0-21-rpi armel 4.19.249-2 502 Connection closed [IP: ::1 3128] ... Fetched 39.6 MB in 10s (4058 kB/s) E: Failed to fetch http://aptmirror17.home.woodall.me.uk/local/pool/essential/buster/armel/linux-image-4.19.0-21-rpi_4.19.249-2_armel.deb 502 Connection closed [IP: ::1 3128] I cannot see anything wrong in either of the squid or apache logs. Squid: 1659848477.523 100 2001:8b0:bfcd:100:MUNGED:7 TCP_REFRESH_UNMODIFIED/200 404354 GET http://aptmirror17.home.woodall.me.uk/local/pool/essential/sid/amd64/grep_3.7-1_amd64.deb - HIER_DIRECT/2001:8b0:bfcd:100:MUNGED:7 application/vnd.debian.binary-package 1659848477.539 63 2001:8b0:bfcd:100:MUNGED:7 TCP_REFRESH_UNMODIFIED/200 140762 GET http://aptmirror17.home.woodall.me.uk/local/pool/essential/sid/amd64/gzip_1.12-1_amd64.deb - HIER_DIRECT/2001:8b0:bfcd:100:MUNGED:7 application/vnd.debian.binary-package 1659848477.547 16 2001:8b0:bfcd:100:MUNGED:7 TCP_REFRESH_UNMODIFIED/200 15344 GET http://aptmirror17.home.woodall.me.uk/local/pool/essential/sid/amd64/hostname_3.23_amd64.deb - HIER_DIRECT/2001:8b0:bfcd:100:MUNGED:7 application/vnd.debian.binary-package Squid checking the file is unchanged is logged by apache. 2001:8b0:bfcd:100:MUNGED:8 - - [07/Aug/2022:05:01:17 +0000] "GET /local/pool/essential/sid/amd64/grep_3.7-1_amd64.deb HTTP/1.1" 304 - "-" "Apt-Cacher-NG/3.6.4" "aptmirror17.home.woodall.me.uk" 2001:8b0:bfcd:100:MUNGED:8 - - [07/Aug/2022:05:01:17 +0000] "GET /local/pool/essential/sid/amd64/gzip_1.12-1_amd64.deb HTTP/1.1" 304 - "-" "Apt-Cacher-NG/3.6.4" "aptmirror17.home.woodall.me.uk" 2001:8b0:bfcd:100:MUNGED:8 - - [07/Aug/2022:05:01:17 +0000] "GET /local/pool/essential/sid/amd64/hostname_3.23_amd64.deb HTTP/1.1" 304 - "-" "Apt-Cacher-NG/3.6.4" "aptmirror17.home.woodall.me.uk" ... It looks very much to me that acng is getting overloaded due to the amount of data it is writing. I've kept retrying and after about a dozen failures, all the data is now cached and I no longer get these 502 errors. FTAOD, this has worked flawlessly until I added acng into the mix. Anyone got any ideas? I can change logging on all parts of this chain. Two other acng questions: How can I disable expiry completely? I've set it to 40000 days currently. Can I disable caching for aptmirror17 specifically? The documentation isn't great... Tim.