Control: 843834 + pending

Hallo,
* Paul Wise [Thu, Nov 10 2016, 01:03:15PM]:
> Package: apt-cacher-ng
> Version: 1-2
> Severity: important
> Usertags: cron
> 
> After the recent upgrade of acng to 1-2 I get this from the cron job:
> 
> /etc/cron.daily/apt-cacher-ng:
> Error: cannot fetch 
> http://chianamo:3142/acng-report.html?doExpire=Start+Expiration&abortOnErrors=aOe,
>  
> 
> The page works fine in my web browser.
> 
> If I run `acngtool maint` from the cron job as root it fails.
> If I run `acngtool maint` from the cron job as pabs it seems to work.
> 
> Based on strace it looks like the difference is that as root it tries
> to use the socket and that fails while as a user it gets permission
> denied and then connects to the TCP port instead.

Yeah, well, use of the socket was just ultima ratio in case it cannot
cannot go over the regular TCP/IP. Unfortunatelly, that is what was
broken, the identification of local IP address sucked and the lookup for
a known one (in BindAdresses config option) was not implemented.

I am changing this now. It will explore the best host address from
apt-cacher-ng config and also try localhost and only then go for the
socket.

Something is still broken in the communication via unix socket, it gets
stuck most of the times. But I have no motivation in debugging this now
because there is an ongoing rewrite of the core which redesigns the
related event exchange.

I guess everyone will be happy with the TCP socket communication for now.


Regards,
Eduard.

Reply via email to