Package: apt-cacher-ng Version: 0.3.11-1 Severity: normal Hi,
I noticed that apt-cacher-ng's CPU usage goes to 100% and stays there after a few days of running. stracing it revealed the following: select(7, [6], [], NULL, NULL) = 1 (in [6]) accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open files) select(7, [6], [], NULL, NULL) = 1 (in [6]) accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open files) select(7, [6], [], NULL, NULL) = 1 (in [6]) accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open files) select(7, [6], [], NULL, NULL) = 1 (in [6]) accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open files) ... and so on. It had 1024 files open, 676 of which were pipes, 343 were sockets, and the rest was this: lr-x------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 0 -> /dev/null l-wx------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 123 -> /var/cache/apt-cacher-ng/debrep/dists/sid/main/source/Sources.diff/_actmp/tmp (deleted) lr-x------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 3 -> /var/lib/vservers/aptproxy-bud l-wx------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 4 -> /var/log/apt-cacher-ng/apt-cacher.err l-wx------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 5 -> /var/log/apt-cacher-ng/apt-cacher.log The last lines of the errorlog were: Tue May 19 17:16:48 2009|Not creating Unix Domain Socket, fifo_path not specified Tue May 19 17:18:25 2009|Not creating Unix Domain Socket, fifo_path not specified Wed May 20 10:15:03 2009|/var/cache/apt-cacher-ng/debrep/dists/unstable/Release.gpg storage error [503 Inconsistent file state]: File exists Wed May 20 11:24:34 2009|Error creating pipe file descriptors Wed May 20 11:25:34 2009|Error creating pipe file descriptors Wed May 20 11:26:34 2009|Error creating pipe file descriptors Wed May 20 11:27:34 2009|Error creating pipe file descriptors Wed May 20 11:28:34 2009|Error creating pipe file descriptors I'm running acng under runit, launching it with the following command line: exec chpst -u apt-cacher-ng apt-cacher-ng -c /etc/apt-cacher-ng ForeGround=1 My acng.conf reads as follows: CacheDir: /var/cache/apt-cacher-ng LogDir: /var/log/apt-cacher-ng Port:4128 Remap-debrep: file:deb_mirror*.gz /debian ; http://ftp.hu.debian.org/debian/ http://ftp.at.debian.org/debian/ http://ftp.kfki.hu/linux/debian/ http://ftp.externet.hu/debian/ Remap-uburep: file:ubuntu_mirrors /ubuntu ; http://hu.archive.ubuntu.com/ubuntu/ http://at.archive.ubuntu.com/ubuntu/ http://ftp.kfki.hu/linux/ubuntu/ Remap-debsec: /security.debian.org/debian-security /debian-security ; http://ftp2.de.debian.org/debian-security/ http://security.debian.org/debian-security/ Remap-debbackports: /backports.org/debian/ /debian-backports ; http://backports.org/debian/ Remap-debpeople: /people.debian.org/ /debian-people ; http://people.debian.org/ Remap-debmultimedia: /debian-multimedia file:marillat_mirrors ; file:marillat_mirrors Remap-skype: /download.skype.com/linux/repos/debian /skype ; http://download.skype.com/linux/repos/debian/ Remap-opera: /deb.opera.com/opera /opera ; http://deb.opera.com/opera/ Remap-volatile: /volatile.debian.org/debian-volatile/ /ftp2.de.debian.org/debian-volatile/ /debian-volatile ; http://volatile.debian.org/debian-volatile/ http://ftp2.de.debian.org/debian-volatile/ Remap-debsnap: /snapshot.debian.net /debian-snapshot ; http://snapshot.debian.net/ Remap-canonical: /archive.canonical.com/ubuntu /canonical ; http://archive.canonical.com/ubuntu/ Remap-grml: http://deb.grml.org/ /grml ; http://deb.grml.org/ Remap-igraph: http://cneurocvs.rmki.kfki.hu/ /igraph ; http://cneurocvs.rmki.kfki.hu/ Remap-inno: http://inno.bme.hu/debian/ /inno ; http://inno.bme.hu/debian/ Remap-debunofficial: http://ftp.debian-unofficial.org/debian/ /debian-unofficial ; http://ftp.debian-unofficial.org/debian/ Remap-backports: http://www.backports.org/debian /backports ; http://www.backports.org/debian/ Remap-gosa: http://oss.gonicus.de/debian /gosa ; http://oss.gonicus.de/debian/ Remap-virtualbox: http://download.virtualbox.org/virtualbox/debian /virtualbox /vbox ; http://download.virtualbox.org/virtualbox/debian Remap-av: http://debian.av.hu/ /av ; http://debian.av.hu/ ReportPage: acng-report.html ForeGround: 0 ExTreshold: 5 LogSubmittedOrigin: 1 -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29-vs2.3.0.36.9-pre4-stallion (SMP w/3 CPU cores) Best regards, Andras -- Andras Korn <korn at chardonnay.math.bme.hu> <http://chardonnay.math.bme.hu/~korn/> QOTD: Black holes really suck... -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org