Package: apt-cacher-ng Version: 3.7.4-1+b2 Severity: normal /etc/cron.daily/apt-cacher-ng seems to work when run through Vixie-cron + run-parts but fails when run through systemd-cron.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040304 After a lot of trial and error I still can't grasp what ACNG expected in the environment. I works ok when run manually from a root shell. > Could not make a valid request to the server. > Please visit > http://UNIX-DOMAIN-SOCKET/acng-report.html?doExpire=Start+Expiration&abortOnErrors=aOe > and check special conditions. Providing your own .timer & .service for the daily task would solve this problem but also make this job easier to debug. Greetings, Here are the generated .timer & .service that trigger this behaviour. # /run/systemd/generator/cron-daily-apt-cacher-ng.timer [Unit] Description=[Timer] "/etc/cron.daily/apt-cacher-ng" Documentation=man:systemd-crontab-generator(8) PartOf=cron.target SourcePath=/etc/cron.daily/apt-cacher-ng [Timer] OnCalendar=*-*-* 6:10:0 Persistent=true # /run/systemd/generator/cron-daily-apt-cacher-ng.service [Unit] Description=[Cron] "/etc/cron.daily/apt-cacher-ng" Documentation=man:systemd-crontab-generator(8) SourcePath=/etc/cron.daily/apt-cacher-ng OnFailure=cron-failure@%i.service [Service] Type=oneshot IgnoreSIGPIPE=false KillMode=process # -> does it needs "forking" ??? ExecStart=/etc/cron.daily/apt-cacher-ng User=root -- Package-specific info: -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing'), (450, 'unstable'), (400, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.4.0-2-amd64 (SMP w/6 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apt-cacher-ng depends on: ii adduser 3.137 ii debconf [debconf-2.0] 1.5.82 ii dpkg 1.21.22 ii libbz2-1.0 1.0.8-5+b1 ii libc-ares2 1.19.1-3 ii libc6 2.37-7 ii libevent-2.1-7 2.1.12-stable-8 ii libevent-pthreads-2.1-7 2.1.12-stable-8 ii libfuse2 2.9.9-6+b1 ii libgcc-s1 13.2.0-1 ii liblzma5 5.4.1-0.2 ii libssl3 3.0.9-1 ii libstdc++6 13.2.0-1 ii libsystemd0 254-1 ii libwrap0 7.6.q-32 ii lsb-base 11.6 ii sysvinit-utils [lsb-base] 3.07-1 ii zlib1g 1:1.2.13.dfsg-1 Versions of packages apt-cacher-ng recommends: ii ca-certificates 20230311 Versions of packages apt-cacher-ng suggests: ii avahi-daemon 0.8-10 pn doc-base <none> -- Configuration Files: /etc/apt-cacher-ng/security.conf [Errno 13] Permission non accordée: '/etc/apt-cacher-ng/security.conf' -- debconf information: apt-cacher-ng/port: keep apt-cacher-ng/cachedir: keep apt-cacher-ng/bindaddress: keep apt-cacher-ng/gentargetmode: No automated setup apt-cacher-ng/proxy: keep * apt-cacher-ng/tunnelenable: false

