Package: apt-cacher-ng Version: 3.7.4-1~bpo11+1 Severity: normal Dear Maintainer, I have errors while updating apt database with several concurrent requests. I usually run apt update using Fabric framework on many servers in the same moment and apt-cacher-ng has a trouble with this. Apt shows that some Release file has invalid signature or some other problem with index files. I found this errors in error log:
ns1:/srv/cache/apt-cacher-ng/debrep/dists/bullseye# tail /var/log/apt-cacher-ng/apt-cacher.err Wed Oct 19 13:47:18 2022|Error creating file item for debrep/dists/bullseye-updates/InRelease -- check file permissions! Wed Oct 19 13:47:18 2022|Failure to move file /srv/cache/apt-cacher-ng/debrep/dists/bullseye-backports/InRelease out of the way or cannot create /srv/cache/apt-cacher-ng/debrep/dists/bullseye-backports/InRelease.1666180038 - errno: File exists Wed Oct 19 13:47:18 2022|Error creating file item for debrep/dists/bullseye-backports/InRelease -- check file permissions! Wed Oct 19 13:47:18 2022|Failure to move file /srv/cache/apt-cacher-ng/debsecrep/dists/bullseye-security/InRelease out of the way or cannot create /srv/cache/apt-cacher-ng/debsecrep/dists/bullseye-security/InRelease.1666180038 - errno: File exists Wed Oct 19 13:47:18 2022|Error creating file item for debsecrep/dists/bullseye-security/InRelease -- check file permissions! Wed Oct 19 13:47:18 2022|/srv/cache/apt-cacher-ng/adoptopenjdk/dists/bullseye/InRelease.1666180038 storage error [Checked size beyond EOF], check file AND directory permissions, last errno: File exists Wed Oct 19 13:47:18 2022|Failure to move file /srv/cache/apt-cacher-ng/debsecrep/dists/bullseye-security/InRelease out of the way or cannot create /srv/cache/apt-cacher-ng/debsecrep/dists/bullseye-security/InRelease.1666180038 - errno: File exists Wed Oct 19 13:47:18 2022|Error creating file item for debsecrep/dists/bullseye-security/InRelease -- check file permissions! Wed Oct 19 13:47:18 2022|Failure to move file /srv/cache/apt-cacher-ng/debrep/dists/bullseye/InRelease out of the way or cannot create /srv/cache/apt-cacher-ng/debrep/dists/bullseye/InRelease.1666180038 - errno: File exists Wed Oct 19 13:47:18 2022|Error creating file item for debrep/dists/bullseye/InRelease -- check file permissions! ns1:/srv/cache/apt-cacher-ng/debrep/dists/bullseye# ls -la total 3684 drwxr-xr-x 5 apt-cacher-ng apt-cacher-ng 4096 Oct 19 13:47 . drwxr-xr-x 15 apt-cacher-ng apt-cacher-ng 4096 Oct 13 18:35 .. drwxr-xr-x 5 apt-cacher-ng apt-cacher-ng 4096 Oct 14 06:25 contrib -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 19 13:47 InRelease -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Sep 27 16:49 InRelease.1664901121 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 4 22:03 InRelease.1664963050 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 5 11:44 InRelease.1664967465 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 32768 Oct 14 06:25 InRelease.1664967466 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 5 13:07 InRelease.1664968046 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 16384 Oct 14 06:25 InRelease.1664968047 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 5 14:27 InRelease.1664976362 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 5 15:26 InRelease.1664987237 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 5 18:27 InRelease.1665135746 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 7 11:42 InRelease.1665143341 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 7 14:27 InRelease.1665146115 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 7 14:35 InRelease.1665423845 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 16384 Oct 14 06:25 InRelease.1665423846 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 10 19:44 InRelease.1665917759 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 12:55 InRelease.1665917760 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 12:56 InRelease.1665922621 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 16384 Oct 16 14:17 InRelease.1665922622 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 14:17 InRelease.1665937102 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 18:18 InRelease.1665937103 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 18:18 InRelease.1665943973 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 20:12 InRelease.1665943974 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 16 20:12 InRelease.1666009621 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 17 14:35 InRelease.1666037442 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 17 22:10 InRelease.1666037443 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 17 22:55 InRelease.1666075608 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 18 08:46 InRelease.1666075609 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 32768 Oct 18 08:46 InRelease.1666080465 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 18 10:07 InRelease.1666168744 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 19 10:39 InRelease.1666168745 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 19 10:39 InRelease.1666169228 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 19 10:47 InRelease.1666169229 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 19 11:03 InRelease.1666176606 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 115947 Oct 19 12:50 InRelease.1666180038 -rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 163 Oct 19 14:09 InRelease.head drwxr-xr-x 5 apt-cacher-ng apt-cacher-ng 4096 Oct 13 10:32 main drwxr-xr-x 5 apt-cacher-ng apt-cacher-ng 4096 Oct 14 06:25 non-free ns1:/srv/cache/apt-cacher-ng/debrep/dists/bullseye# df /srv Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/ns1-srv 15375304 1673112 12899376 12% /srv Is it possible, that many concurrent requests go to apt-cacher-ng and it tries to download the new InRelease file several times and to do filesystem move operation in the same moment? Thanks for your work! -- Zito *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- Package-specific info: -- System Information: Debian Release: 11.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-18-amd64 (SMP w/4 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set 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.118 ii debconf [debconf-2.0] 1.5.77 ii dpkg 1.20.12 ii libbz2-1.0 1.0.8-4 ii libc-ares2 1.17.1-1+deb11u1 ii libc6 2.31-13+deb11u4 ii libevent-2.1-7 2.1.12-stable-1 ii libevent-pthreads-2.1-7 2.1.12-stable-1 ii libfuse2 2.9.9-5 ii libgcc-s1 10.2.1-6 ii liblzma5 5.2.5-2.1~deb11u1 ii libssl1.1 1.1.1n-0+deb11u3 ii libstdc++6 10.2.1-6 ii libsystemd0 247.3-7+deb11u1 ii libwrap0 7.6.q-31 ii lsb-base 11.1.0 ii zlib1g 1:1.2.11.dfsg-2+deb11u2 Versions of packages apt-cacher-ng recommends: ii ca-certificates 20210119 Versions of packages apt-cacher-ng suggests: pn avahi-daemon <none> pn doc-base <none> -- Configuration Files: /etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: '/etc/apt-cacher-ng/security.conf' -- debconf information: apt-cacher-ng/port: keep apt-cacher-ng/cachedir: keep apt-cacher-ng/proxy: keep apt-cacher-ng/gentargetmode: No automated setup apt-cacher-ng/bindaddress: keep * apt-cacher-ng/tunnelenable: false