Package: apt-cacher-ng
Version: 3.2-2
Severity: normal
Tags: ipv6

apt-cacher-ng does not deal well with dual-stack failures. At home I
regularly have trouble with my IPv6 connexions, which just hang. Most
applications are able to recover from this and fallback to IPv4, which
just works. This is therefore mostly transparent to users, at worst
there's a slight delay during the switchover.

The way to deal with this is documented in RFC 8305 and is generally
refered to as "happy eyeballs":

https://en.wikipedia.org/wiki/Happy_Eyeballs

In particular, when IPv6 fails, apt-cacher-ng fails with the mysterious:

Err :3 https://deb.debian.org/debian buster/main amd64 emacs-bin-common amd64 
1:26.1+1-3.2
  Reading from proxy failed - select (115: Opération maintenant en cours) [IP : 
192.168.0.3 3142]

That error is in french, but I think it translates to "Operation
currently in progress". The IP there (192.168.0.3) is the IP of the proxy.

When IPv6 returns, apt-cacher-ng magically recovers. But note that it
not only times out, it also totally fails during the IPv6 outage.

Normal `apt` connexions without the proxy have no such problems and can
fallback to IPv4 fairly quickly.

-- Package-specific info:

-- System Information:
Debian Release: 10.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /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.71
ii  dpkg                   1.19.7
ii  libbz2-1.0             1.0.6-9.2~deb10u1
ii  libc6                  2.28-10
ii  libgcc1                1:8.3.0-6
ii  liblzma5               5.2.4-1
ii  libssl1.1              1.1.1d-0+deb10u1
ii  libstdc++6             8.3.0-6
ii  libsystemd0            241-7~deb10u1
ii  libwrap0               7.6.q-28
ii  lsb-base               10.2019051400
ii  zlib1g                 1:1.2.11.dfsg-1

apt-cacher-ng recommends no packages.

Versions of packages apt-cacher-ng suggests:
ii  avahi-daemon  0.7-4+b1
ii  doc-base      0.10.8
ii  libfuse2      2.9.9-1

-- 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
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian 
Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu 
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 
deb.debian.org/debian-security
ReportPage: acng-report.html
ExThreshold: 4
LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng
PassThroughPattern: .* # allow CONNECT to everything

/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/gentargetmode: No automated setup
  apt-cacher-ng/bindaddress: keep
  apt-cacher-ng/proxy: keep
  apt-cacher-ng/tunnelenable: false
  apt-cacher-ng/cachedir: keep

Reply via email to