Hallo,
* Steven Monai [Fri, Jun 21 2019, 10:13:47AM]:
> Package: apt-cacher-ng
> Version: 3.2-2
> Severity: normal
>
> Dear Maintainer,
>
> I am running apt-cacher-ng on buster. Fairly recently, I began to receive
> daily emails from cron with the following body:
>
>
> /etc/cron.daily/apt-cacher-ng:
> Error: cannot fetch 
> http://localhost:3142/acng-report.html?doExpire=Start+Expiration&abortOnErrors=aOe,
>  HTTP/1.1 502 Connection closed
> run-parts: /etc/cron.daily/apt-cacher-ng exited with return code 2
>
>
> I have tried running a cache cleanup via the web interface 
> http://myhost:3142/ .
> No good.
>
> I have also tried purging apt-cacher-ng, and then reinstalling, thinking
> that clearing the cache and resetting all configuration would solve the
> problem. No good.
>
> So I am at a loss. Somehow, the daily cron script for apt-cacher-ng now
> always fails, and it seems there is no way to fix it. Even purging the
> package, which should remove all state related to apt-cacher-ng, does not
> solve it. This suggests to me that something else on my server is breaking
> the cron script. But what could that be?
>
> I am running shorewall firewall, and I use /etc/{hosts.allow,hosts.deny}
> to limit network access to the proxy that apt-cacher-ng provides, but
> those have never caused an issue like this before.
>
> Any guidance would be appreciated.

Uhm, maybe some application (syscall) firewall. Is apparmor in the game?
Can you enter the web interface from a browser and run password-protected
tasks there?

Otherwise, time to dig in the mud:

First, set the Debug option in the config. 7 should do.
Also disable the password temporarily, in security.conf (restore later).
Call that URL from shell environment (with quotes due to &, of course).
Does this work?
If not, strace it. What happens with the connect call?
Also observe the daemon: strace -f -p $(pidof apt-cacher-ng)

Eventually check /var/log/apt-cacher-ng/apt-cacher.err for further
clues.

Please report whether this investigation provided you with any useful 
inspiration.

Good luck!
Eduard.

--
<BigAcE^23> ja dann gib mal bitte ne addy
<jjFux> Eine die kewl funzen tut?
<BigAcE^23> jupp

Reply via email to