Public bug reported:

Hi there,

We have a frequent issue with apt-cacher-ng where it runs out of file
descriptors. This manifests as the following in the logs:

Tue May 19 06:04:14 2026|Error creating pipe file descriptors
Tue May 19 06:04:15 2026|PANIC! Error creating download job for 
repo.mysql.com/apt/ubuntu/dists/noble/InRelease

After investigating this we've found that when a number of machines
attempt to connect to apt-cacher it will fail to properly close some
proportion of the TCP connections that get opened. Specifically, they
will get stuck in the `CLOSE_WAIT` state. These phantom connections
start to accumulate, and eventually result in the process running out of
file descriptors.

As a work around we've ended up increasing the file limit for the
process, but this is not ideal.

It would be good to try and get this resolved, and I'm happy to provide
more information if needed.

Cheers,
Luke


Installed version from dpkg:

ii  apt-cacher-ng                    3.7.4-1ubuntu5
amd64        caching proxy server for software repositories

** Affects: apt-cacher-ng (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2158593

Title:
  apt-cacher-ng fd exhaustion due to unclosed TCP connections

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/2158593/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to