apt-cacher-ng using all available CPU if a package is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt-cacher-ng
I noticed, apt-cacher-ng every day grabs all CPU resources and don't release it in many hours, untill I have to command /etc/init.
The problem was clear, then I look at file size, and try to unpack it myself:
ls -l /var/cache/
ntrepid-
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 983 2008-12-16 21:09 /var/cache/
y.ubuntu.
tar -vxjf /var/cache/
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
tar: Child returned status 2
So, I have to manually delete this file to "repair" apt-cacher-ng CPU usage. The problem was gone
Ubuntu 8.10
apt-cacher-ng version 0.2.1-1
Similar issue was reported to me by another user with many mirrors in his configuration. I guess this is one of the glitches that were fixed in the downloader code overhaul and maintainenance task optimizations applied after 0.2.2.
Feel free to test the current version from Debian Unstable, but beware of potential problems with compatibility. See Rolf's comments in https:/ /bugs.launchpad .net/ubuntu/ +source/ apt-cacher- ng/+bug/ 302693 for more details.
http:// packages. debian. org/sid/ apt-cacher- ng