Package: apt-cacher-ng
Version: 3.6-1
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear acng maintainer(s),

I run acng on my local system, to provide a shared cache between my host
and sbuild environments, and it suddenly started failing:

        $ sudo apt update
        Err:7 http://localhost:3142/debian bullseye InRelease
          502  Mirror blocked due to repeated errors [IP: 127.0.0.1 3142]
        Err:8 http://localhost:3142/debian experimental InRelease
          502  Mirror blocked due to repeated errors [IP: 127.0.0.1 3142]
        Err:9 http://localhost:3142/debian sid InRelease
          502  Mirror blocked due to repeated errors [IP: 127.0.0.1 3142]
        Get:10 https://deb.debian.org/debian-security bullseye-security 
InRelease [44,1 kB]
        [...]
        Fetched 53,0 kB in 1s (67,0 kB/s) 
        Reading package lists... Done
        Building dependency tree... Done
        1 package can be upgraded. Run 'apt list --upgradable' to see it.
        W: Failed to fetch 
http://localhost:3142/debian/dists/bullseye/InRelease  502  Mirror blocked due 
to repeated errors [IP: 127.0.0.1 3142]
        W: Failed to fetch 
http://localhost:3142/debian/dists/experimental/InRelease  502  Mirror blocked 
due to repeated errors [IP: 127.0.0.1 3142]
        W: Failed to fetch http://localhost:3142/debian/dists/sid/InRelease  
502  Mirror blocked due to repeated errors [IP: 127.0.0.1 3142]
        W: Some index files failed to download. They have been ignored, or old 
ones used instead.

This is what happens in syslog at the same time:

        systemd[1]: Started Apt-Cacher NG software download proxy.
        apt-cacher-ng[1540]: [warn] Call to getaddrinfo_async with no 
evdns_base configured.
        apt-cacher-ng[1540]: [warn] Call to getaddrinfo_async with no 
evdns_base configured.
        apt-cacher-ng[1540]: [warn] Call to getaddrinfo_async with no 
evdns_base configured.

This is occuring after just booting up, my laptop has Internet connectivity,
and acng is configured to use deb.d.o (with follow redirects on) which apt
is clearly managing to reach and use.

Reconfiguring acng to use the 2 backends for deb.d.o solved the issue for me.
(https://cdn-fastly.deb.debian.org/debian &
 https://dpvctowv9b08b.cloudfront.net/debian)

The warnings in syslogs do not occur after this configuration change.


Best,

  nicoo

- -- Package-specific info:

- -- System Information:
Debian Release: bullseye/sid
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.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.74
ii  dpkg                     1.20.7.1
ii  libbz2-1.0               1.0.8-4
ii  libc6                    2.31-9
ii  libevent-2.1-7           2.1.12-stable-1
ii  libevent-pthreads-2.1-7  2.1.12-stable-1
ii  libgcc-s1                10.2.1-6
ii  liblzma5                 5.2.5-1.0
ii  libssl1.1                1.1.1i-3
ii  libstdc++6               10.2.1-6
ii  libsystemd0              247.3-1
ii  libwrap0                 7.6.q-31
ii  lsb-base                 11.1.0
ii  zlib1g                   1:1.2.11.dfsg-2

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

Versions of packages apt-cacher-ng suggests:
pn  avahi-daemon  <none>
ii  doc-base      0.11.1
ii  libfuse2      2.9.9-3

- -- Configuration Files:
/etc/apt-cacher-ng/acng.conf changed:
CacheDir: /opt/deb/cache
LogDir: /var/log/apt-cacher-ng
SupportDir: /usr/lib/apt-cacher-ng
BindAddress: localhost
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
VerboseLog: 0
ForceManaged: 1
ExThreshold: 4
LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng
RedirMax: 5

/etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: 
'/etc/apt-cacher-ng/security.conf'

- -- debconf information excluded

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEU7EqA8ZVHYoLJhPE5vmO4pLV7MsFAmA1ACMRHG5pY29vQGRl
Ymlhbi5vcmcACgkQ5vmO4pLV7MugWA//dnYnZP5bI54Ft7aj/qenOPcZMDn2xbk6
nWDb2i9VQtVi30iuAiG1bx/JDxqEtVEDvJEPHufNfcV915BqQ2PA6zKmHqGh8olD
BihFTTmnvcBc+u6/0qS6sUMS56WnSeWkMhufKYmIcAGekyJzQCr4wz7tQMqMRnMa
unwqKSOWcySdVbFjZKttq6Z4aYcSz7G7VmRGcQ6Og1GM+g6PB6yENsNCy6aCq+YM
CfUNvzU83+SL4hzL75bwhbv7Gsd1af7OjDsamQxaij8j4sUAUXsXNRKGDWJEkhGZ
JXyCOV/mWFditygwnNAXVYRph6ZZHgsbCxLsKaRDbKNsiBX4fL8Yf6I2O7KcJskk
nrUGlk1hBJKkOqdfPxj31FkcsZ1pr8gtTXZ7hWbSLFaxvMr20yu6LSmcmd6dEl8+
GL03cLHJY3jXorBM1W+lNC1Z3zKDXbPCf4y+5xisNFwTk1LZjLkyOtxmdNBfiXDi
76wxE8b2PkIvnnS4Bxdxz4WUqM9kK+Kq7TkLWARnZ5VVI9hxij+8I9j9+t2fJhQu
9nWQ6nbaA5BpR17fpYcIybUdj8UY0F8rI7ThtleNMO7gGZiY26pgXtNG4vtXq0o6
2yDY5Kx8Vgm+GOvFz6HT9IbLcwLY7Cz7ohR7ewO5Y0a+dlZfPosg8gqVy8KE+l9B
3Mt5JTX8o7E=
=NcrE
-----END PGP SIGNATURE-----

Reply via email to