Hallo, * Adam Borowski [Sat, May 28 2016, 01:26:13PM]: > Package: apt-cacher-ng > Version: 0.9.2-1 > Severity: normal > > Hi! > I just got the following mail from cron: > > /etc/cron.daily/apt-cacher-ng: > Maintenance Task: Expiration > See file /var/log/apt-cacher-ng/maint_1464409509.log.html for more details. > Server url: > http://localhost:3142//acng-report.html?doExpire=Start+Expiration&abortOnErrors=aOe
Oh, this double slash is another formating problem... > Problem with > ftp.debian-ports.org/debian/dists/unreleased/main/binary-x32/Packages.xz > Errors found, aborting expiration... I was planning to make a release soon. Thanks for suggesting more data for final tests. :-) > There are two problems here: > * the URL points to http://localhost which is useless unless you're sitting > on the apt cache box That hostname in the link comes from from reverse resolution of the incoming request's and the request is made from acngtool call from a cronjob. The tool OTOH checks the HOSTNAME environment variable and only uses "localhost" as fallback. I see different options here, use uname(2) or hostname(2), or even check apt-cacher-ng config to see which interfaces it's configured for (although this is error-prone since it doesn't have to refer to a single host). Which would you prefer? > * the URL starts an expiration run immediately, without a chance to set > options That can be changed... what do you imagine? Start no action at all? Or display the page as-is and gray out (disable controls) for those not covered by the URL? Regards, Eduard. -- Es muß für einen Architekten schon blöd sein, wenn ihm dauernd was einfällt.

