Bug#1031283: apt-cacher-ng: 503 errors while installing many packages

2025-08-18 Thread Andreas Brogle
Package: apt-cacher-ng
Version: 3.7.5-1
Followup-For: Bug #1031283

Dear Maintainer,

my observation is independently of the repository.
That bug exists at least since 1 or 2 years.

apt-cacher-ng runs for about 10 minutes, then that error 503 occurs, when 
running an "apt update" or "apt upgrade".
It seems to be unpredictably and randomly.

Running "systemctl restart apt-cacher-ng.service" and starting apt again helps 
for about the next 10 minutes.
If the uprade process lasts longer, we have to repeat that many times.
After some circles we are successfully with the upgrade process.


-- Package-specific info:

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.15.10-1-siduction-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.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.152
ii  debconf [debconf-2.0]   1.5.91
ii  dpkg1.22.21
ii  libbz2-1.0  1.0.8-6
ii  libc6   2.41-12
ii  libcares2   1.34.5-1
ii  libevent-2.1-7t64   2.1.12-stable-10+b1
ii  libevent-pthreads-2.1-7t64  2.1.12-stable-10+b1
ii  libfuse2t64 2.9.9-9
ii  libgcc-s1   15.2.0-1
ii  liblzma55.8.1-1
ii  libssl3t64  3.5.2-1
ii  libstdc++6  15.2.0-1
ii  libsystemd0 258~rc2-2
ii  libwrap07.6.q-36
ii  sysvinit-utils [lsb-base]   3.14-4
ii  zlib1g  1:1.3.dfsg+really1.3.1-1+b1

Versions of packages apt-cacher-ng recommends:
ii  ca-certificates  20250419

Versions of packages apt-cacher-ng suggests:
pn  avahi-daemon  
ii  doc-base  0.11.2

-- Configuration Files:
/etc/apt-cacher-ng/security.conf [Errno 13] Keine Berechtigung: 
'/etc/apt-cacher-ng/security.conf'

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



Bug#1031283: apt-cacher-ng: 503 errors while installing many packages

2025-07-19 Thread Nikos Tsipinakis
Hi,

I have also run into this when using deb.debian.org as a package source, 
switching to a direct mirror (for me, linuxsoft.cern.ch/debian ) fixed this.

Hope this helps,

Cheers,
Nikos



Bug#1031283: apt-cacher-ng: 503 errors while installing many packages

2023-02-14 Thread Blomley, Edmund (IBPT)
Package: apt-cacher-ng
Version: 3.7.4-1

Dear Maintainer,

With the above version of apt-cacher-ng we encounter a bug while installing
packages. (In our scenario the apt-cacher-ng itself runs in a Docker image
based on ubuntu:jammy-20230126 (22.04 LTS)).

The below error message happens for many packages (below is a more complete
log):

E: Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/a/automake-1.16/automake_1.16.1-4
ubuntu6_all.deb  503  Connection closed, check DlMaxRetries [IP: x.x.x.x
3142]

This occurs reproducibly in scenarios where many packages will be installed
at a time (in our case while building docker images). This behaviour is not
100% reproducible and might not occur if only a low number of packages is
being installed. It also sometimes works without issues for a large number
of packages. But most of the times starts failing after 40-60 packages.

The only reliable workaround we found was "downgrading" the apt-cacher-ng
version to 3.6.4 (based on Debian 11, docker image
debian:bullseye-20230208). There is also an open bug report on the ubuntu
bug tracker:
https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1960264 but it
does not only occur with PPAs, but also regular repositories.

Below is the more detailed log for a situation with a low amount of packages
being installed.

[...]
0 upgraded, 63 newly installed, 0 to remove and 4 not upgraded.
Need to get 26.7 MB of archives.
After this operation, 133 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1
amd64 1.1.1f-1ubuntu2.17 [1322 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04.6 [717 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libexpat1
amd64 2.2.9-1ubuntu0.6 [74.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
python3.8-minimal amd64 3.8.10-0ubuntu1~20.04.6 [1901 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-minimal
amd64 3.8.2-0ubuntu2 [23.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 mime-support all
3.64ubuntu1 [30.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libmpdec2 amd64
2.4.2-3 [81.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 readline-common all
8.0-4 [53.5 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libreadline8 amd64
8.0-4 [131 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libsqlite3-0 amd64 3.31.1-4ubuntu0.5 [549 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libpython3.8-stdlib amd64 3.8.10-0ubuntu1~20.04.6 [1675 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8
amd64 3.8.10-0ubuntu1~20.04.6 [387 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 libpython3-stdlib
amd64 3.8.2-0ubuntu2 [7068 B]
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 python3 amd64
3.8.2-0ubuntu2 [47.6 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
perl-modules-5.30 all 5.30.0-9ubuntu0.3 [2739 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm6 amd64
1.18.1-5 [27.4 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm-compat4
amd64 1.18.1-5 [6244 B]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libperl5.30
amd64 5.30.0-9ubuntu0.3 [3951 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl amd64
5.30.0-9ubuntu0.3 [224 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl
amd64 1.1.1f-1ubuntu2.17 [622 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
ca-certificates all 20211016ubuntu0.20.04.1 [141 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
python3-pkg-resources all 45.2.0-1ubuntu0.1 [130 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libkrb5support0 amd64 1.17-6ubuntu4.2 [31.0 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libk5crypto3 amd64 1.17-6ubuntu4.2 [80.0 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libkeyutils1 amd64 1.6-6ubuntu1.1 [10.3 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5-3
amd64 1.17-6ubuntu4.2 [330 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libgssapi-krb5-2 amd64 1.17-6ubuntu4.2 [121 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal/main amd64 libpsl5 amd64
0.21.0-1ubuntu1 [51.5 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libbrotli1
amd64 1.0.7-6ubuntu0.1 [267 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libroken18-heimdal amd64 7.7.0+dfsg-1ubuntu1.4 [42.5 kB]
Get:31 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libasn1-8-heimdal amd64 7.7.0+dfsg-1ubuntu1.4 [181 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal-updates/main amd64
libheimbase1-heimdal amd64 7.7.0+dfsg-1ubuntu1.4 [30.4 kB]
Get:33 http://archive.ubuntu