Package: apt-cacher-ng
Version: 3.7.4-1+b2
Followup-For: Bug #1003865

Hi,

since I updated the host that my apt-cacher-ng runs on to bookworm, I
see this happen about once a week for all machines that get their
updates via this instance of apt-cacher-ng:

[2/4650]mh@banana:~ $ sudo apt update
Hit:1 http://debian-security.debian.zugschlus.de/debian-security 
bookworm-security InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://zg20150.debian.zugschlus.de/zg20150 bookworm-zg-stable InRelease
Hit:4 http://zg20150.debian.zugschlus.de/zg20150 bookworm-zg-unstable InRelease
Hit:5 http://debian.debian.zugschlus.de/debian bookworm InRelease
Hit:6 http://zg20150.debian.zugschlus.de/zg20150 sid-zg-stable InRelease
Get:7 http://debian.debian.zugschlus.de/debian experimental InRelease [109 kB]
Hit:8 http://zg20150.debian.zugschlus.de/zg20150 sid-zg-unstable InRelease
Get:9 http://debian.debian.zugschlus.de/debian sid InRelease [210 kB]
Err:7 http://debian.debian.zugschlus.de/debian experimental InRelease
  The following signatures were invalid: BADSIG 0E98404D386FA1D9 Debian Archive 
Automatic Signing Key (11/bullseye) <ftpmas...@debian.org>
Err:9 http://debian.debian.zugschlus.de/debian sid InRelease
  The following signatures were invalid: BADSIG 0E98404D386FA1D9 Debian Archive 
Automatic Signing Key (11/bullseye) <ftpmas...@debian.org>
Fetched 319 kB in 11s (29,1 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
29 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not 
updated and the previous index files will be used. GPG error: 
http://debian.debian.zugschlus.de/debian experimental InRelease: The following 
signatures were invalid: BADSIG 0E98404D386FA1D9 Debian Archive Automatic 
Signing Key (11/bullseye) <ftpmas...@debian.org>
W: An error occurred during the signature verification. The repository is not 
updated and the previous index files will be used. GPG error: 
http://debian.debian.zugschlus.de/debian sid InRelease: The following 
signatures were invalid: BADSIG 0E98404D386FA1D9 Debian Archive Automatic 
Signing Key (11/bullseye) <ftpmas...@debian.org>
W: Failed to fetch 
http://debian.debian.zugschlus.de/debian/dists/experimental/InRelease  The 
following signatures were invalid: BADSIG 0E98404D386FA1D9 Debian Archive 
Automatic Signing Key (11/bullseye) <ftpmas...@debian.org>
W: Failed to fetch http://debian.debian.zugschlus.de/debian/dists/sid/InRelease 
 The following signatures were invalid: BADSIG 0E98404D386FA1D9 Debian Archive 
Automatic Signing Key (11/bullseye) <ftpmas...@debian.org>
W: Some index files failed to download. They have been ignored, or old ones 
used instead.
[3/4650]mh@banana:~ $ 

debian.debian.zugschlus.de points to the IPv4 address of my apt-cacher-ng,
the relevant configuration line is
Remap-debian: debian ; debian.apt-cache.zugschlus.de/debian
and debian.apt-cache.zugschlus.de is a CNAME to ftp2.de.debian.org

On my machines on the Internet that don't use apt-cacher-ng,
debian.debian.zugschlus.de is directly a CNAME to ftp2.de.debian.org and
that works flawlessly even during the time when my apt-cacher-ng is
acting up.

I can fix the issue without deleting any files on my host, I call up my
apt-cacher-ng webpage /acng-report.html, click on "Start Scan and/or
Expiration" while keeping the defaults, tell acng to override the sanity
check and to go ahead anyway ("Override this check now"), wait, click on
"Check all", and then on "Delete selected files", and then "Delete now".

This makes the issue pretty clearly an acng issue.

Greetings
Marc


-- Package-specific info:

-- System Information:
Debian Release: 12.1
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.7-zgsrv20080 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en
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.134
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.18.1-3
ii  libc6                      2.36-9+deb12u1
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                  12.2.0-14
ii  liblzma5                   5.4.1-0.2
ii  libssl3                    3.0.9-1
ii  libstdc++6                 12.2.0-14
ii  libsystemd0                252.12-1~deb12u1
ii  libwrap0                   7.6.q-32
ii  sysvinit-utils [lsb-base]  3.06-4
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:
pn  avahi-daemon  <none>
pn  doc-base      <none>

-- Configuration Files:
/etc/apt-cacher-ng/acng.conf changed:
CacheDir: /var/cache/apt-cacher-ng
LogDir: /var/log/apt-cacher-ng
SupportDir: /usr/lib/apt-cacher-ng
Port:13142
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian 
Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu 
Archives
Remap-klxrep: file:kali_mirrors /kali ; file:backends_kali # Kali Linux Archives
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # 
incomplete, please create this file or specify preferred mirrors here
Remap-sfnet:  file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please 
create this file or specify preferred mirrors here
Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch 
Linux
Remap-fedora: file:fedora_mirrors # Fedora Linux
Remap-epel:   file:epel_mirrors # Fedora EPEL
Remap-slrep:  file:sl_mirrors # Scientific Linux
Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo # Gentoo 
Archives
Remap-secdeb: security.debian.org security.debian.org/debian-security 
deb.debian.org/debian-security /debian-security ; 
deb.debian.org/debian-security security.debian.org
Remap-debian: debian ; debian.apt-cache.zugschlus.de/debian
Remap-debiansecurity: debian-security ; 
debian-security.apt-cache.zugschlus.de/debian-security
Remap-zg20150: zg20150 ; zg20150.apt-cache.zugschlus.de/zg20150
ReportPage: acng-report.html
ExThreshold: 4
LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng

/etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: 
'/etc/apt-cacher-ng/security.conf'
/etc/logrotate.d/apt-cacher-ng changed:
/var/log/apt-cacher-ng/apt-cache*.log {
        su apt-cacher-ng apt-cacher-ng
        weekly
        missingok
        rotate 4
        nomail
        compress
        delaycompress
        notifempty
        create
        prerotate
            find /var/log/apt-cacher-ng -maxdepth 1 -type f -name 
'apt-cache*.log*' -ls > /home/mh/varlogaptcacherngaptcachelog-findls-$(date 
+%Y%m%d%H%M) | sort -k11
        endscript
        postrotate
                if [ -e /run/systemd/system ] ; then
                        if systemctl -q is-active apt-cacher-ng ; then 
systemctl kill --signal=USR1 apt-cacher-ng ; fi
                elif [ -s /var/run/apt-cacher-ng/pid ] ; then
                        kill -s USR1 "$(cat /var/run/apt-cacher-ng/pid)" 
2>/dev/null ||:
                fi
        endscript
}
/var/log/apt-cacher-ng/apt-cache*.err {
        su apt-cacher-ng apt-cacher-ng
        weekly
        notifempty
        missingok
        nomail
        rotate 4
        compress
        delaycompress
        create
        prerotate
            find /var/log/apt-cacher-ng -maxdepth 1 -type f -name 
'apt-cache*.err*' -ls > /home/mh/varlogaptcacherngaptcacheerr-findls-$(date 
+%Y%m%d%H%M) | sort -k11
        endscript
        postrotate
                if [ -e /run/systemd/system ] ; then
                        if systemctl -q is-active apt-cacher-ng ; then 
systemctl kill --signal=USR1 apt-cacher-ng ; fi
                elif [ -s /var/run/apt-cacher-ng/pid ] ; then
                        kill -s USR1 "$(cat /var/run/apt-cacher-ng/pid)" 
2>/dev/null ||:
                fi
        endscript
}


-- debconf information:
* apt-cacher-ng/bindaddress: keep
* apt-cacher-ng/cachedir: keep
* apt-cacher-ng/port: keep
  apt-cacher-ng/tunnelenable: false
* apt-cacher-ng/gentargetmode: No automated setup
* apt-cacher-ng/proxy: keep

Reply via email to