Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1041133: apt-cacher-ng: Cannot allocate memory error from client after network outage

547 views
Skip to first unread message

Russell Coker

unread,
Jul 14, 2023, 8:00:06 PM7/14/23
to
Package: apt-cacher-ng
Version: 3.7.4-1+b2
Severity: normal

Due to a power outage the system running apt-cacher-ng had been without
Internet access for a while, when access was restored systems connecting to it
got the following errors:

W: Failed to fetch http://ftp.au.debian.org/debian/dists/unstable/InRelease 503 Cannot allocate memory [IP: 10.0.0.1 3142]
W: Failed to fetch http://ftp.au.debian.org/debian/dists/bookworm/InRelease 503 Cannot allocate memory [IP: 10.0.0.1 3142]
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease 503 Cannot allocate memory [IP: 10.0.0.1 3142]

It didn't work until apt-cacher-ng had been restarted.

The error message displayed was wrong, but also apt-cacher-ng should have
realised that the network was back and connected to the outside world.

-- Package-specific info:

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

Kernel: Linux 6.1.0-10-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Enforcing - Policy name: default

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
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.6-1
ii libwrap0 7.6.q-32
ii lsb-base 11.6
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
BindAddress: localhost 10.0.0.1
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 cdn-fastly.deb.debian.org/debian-security ; deb.debian.org/debian-security security.debian.org cdn-fastly.deb.debian.org/debian-security
ReportPage: acng-report.html
ExThreshold: 4
FollowIndexFileRemoval: 1
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'

-- debconf-show failed
0 new messages