#1050850 writes files to /var/cache/apt-cacher-ng/var/cache/apt-cacher-ng

Package:
apt-cacher-ng
Source:
apt-cacher-ng
Description:
caching proxy server for software repositories
Submitter:
Marc Haber
Date:
2026-01-10 10:58:42 UTC
Severity:
normal
#1050850#5
Date:
2023-08-30 08:07:44 UTC
From:
To:
Hi,

on my apt-cacher-ng installation, I see directories like
/var/cache/apt-cacher-ng/var/cache/apt-cacher-ng/zg20150/dists/bookworm-zg-unstable
(zg20150 is a local repository created by reprepro that holds my backports).

I sometimes see files like InRelease.1692725238.head in those
directories, but apt-cacher-ng does seem to clean those up as probably
intended.

Is the doubled "/var/cache/apt-cacher-ng" an intended path or is that
double insertion of the CacheDir value that is not intended?

Greetings
Marc

#1050850#10
Date:
2024-10-21 17:22:47 UTC
From:
To:
I'm on Ubuntu, and I'm also seeing the double var directory with both 3.7.4
and 3.7.5.  Here is some more information from what we've determined.

Building and installing 3.6.4 seems to resolve the issue.

Note that we are having issues with updates done through acng sometimes
hanging.  We run updates on around 100 systems, spread across 3 acng in
different environments, every morning.  This hanging is why we started
investigating and found the
/var/cache/apt-cacher-ng/var/cache/apt-cacher-ng directory.

If I "rm -rf /var/cache/apt-cacher-ng/var" and then restart apt-cacher-ng,
then run a bunch of updates on systems, when it gets to the dist-ugprade
part of our updates (we run them through Ansible using a playbook which
does a bunch of things), it creates that double-var directory.

I've checked the systemd file for something like a chroot, there doesn't
seem to be one.  It does have "RequiresMountsFor=/var/cache/apt-cacher-ng",
which IIUC should just wait for that mount to become available.

The acng.conf has a fully qualified var directory for CacheDir: "CacheDir:
/var/cache/apt-cacher-ng".

My acng process is running with a cwd of /

I think that's all the information I can add at this point.  We are
retro-grading to 3.6.4 as a solution.

Thanks,
Sean

#1050850#15
Date:
2026-01-10 10:10:29 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.