On 13/01/2008, Mark Hindley <[EMAIL PROTECTED]> wrote: > > OK, there is some useful stuff in here. Is this with or without > checksumming?
On > > On Sun, Jan 13, 2008 at 05:02:29PM -0600, [EMAIL PROTECTED] wrote: > > > > I just turned debugging on and reloaded, not restarted, apt-cacher: > > $ tail -f /var/log/apt-cacher/error.log > > Sun Jan 13 10:38:16 2008|info [11743]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:17 2008|info [11751]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:18 2008|info [11764]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:20 2008|info [11791]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:22 2008|info [11824]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:24 2008|info [11850]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:43 2008|info [12176]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:51 2008|info [12235]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > Sun Jan 13 10:38:53 2008|info [12264]: Warning: no apt-cacher port > > found in /etc/inetd.conf > > I thought you said you were running in daemon mode. Is that right or > are you running from inetd? I'm running apt-cacher in daemon mode, it surprised me too. > > Can you verify what command line apt-cacher is executed with. Something > like ps -fC apt-cacher should work. /usr/bin/perl /usr/sbin/apt-cacher -R 3 -d -p /var/run/apt-cache > > If you are running in standalone daemon mode these lines above should > not be preset. > > > Sun Jan 13 16:48:57 2008|info [3227]: Got SIGHUP, reloading config > > Sun Jan 13 16:49:13 2008|debug [3227]: Connection from 127.0.0.1 > > Sun Jan 13 16:49:13 2008|debug [26788]: New Daemon connection > > Sun Jan 13 16:49:13 2008|debug [26788]: client is localhost > > Sun Jan 13 16:49:13 2008|debug [26788]: Client 127.0.0.1 passed access > > control rules > > Sun Jan 13 16:49:13 2008|debug [26788]: Processing a new request line > > Sun Jan 13 16:49:13 2008|debug [3227]: registred child process: 26788 > > Sun Jan 13 16:49:13 2008|debug [26788]: got: GET > > > /ftp.us.debian.org/debian/pool/main/m/mime-tools/libmime-perl_5.425-1_all.deb > > HTTP/1.1 > > Sun Jan 13 16:49:13 2008|debug [26788]: Processing a new request line > > Sun Jan 13 16:49:13 2008|debug [26788]: got: Host: localhost:3142 > > Sun Jan 13 16:49:13 2008|debug [26788]: Processing a new request line > > Sun Jan 13 16:49:13 2008|debug [26788]: got: Connection: keep-alive > > Sun Jan 13 16:49:13 2008|debug [26788]: Processing a new request line > > Sun Jan 13 16:49:13 2008|debug [26788]: got: User-Agent: Debian > > APT-HTTP/1.3 (0.7.9) > > Sun Jan 13 16:49:13 2008|debug [26788]: Processing a new request line > > Sun Jan 13 16:49:13 2008|debug [26788]: got: > > Sun Jan 13 16:49:13 2008|debug [26788]: Resolved request is > > > /ftp.us.debian.org/debian/pool/main/m/mime-tools/libmime-perl_5.425-1_all.deb > > Sun Jan 13 16:49:13 2008|debug [26788]: Testing URI: > > > ftp.us.debian.org/debian/pool/main/m/mime-tools/libmime-perl_5.425-1_all.deb > > on ftp.us.debian.org > > Sun Jan 13 16:49:13 2008|debug [26788]: new base file: > > libmime-perl_5.425-1_all.deb > > Sun Jan 13 16:49:13 2008|debug [26788]: looking for > > /var/cache/apt-cacher/packages/libmime-perl_5.425-1_all.deb > > Sun Jan 13 16:49:13 2008|debug [26788]: Entering critical section : > > file download decision > > Sun Jan 13 16:49:13 2008|debug [26788]: HIT > > Sun Jan 13 16:49:13 2008|debug [26788]: Exiting critical section > > Sun Jan 13 16:49:13 2008|debug [26788]: checks done, can return now > > Sun Jan 13 16:49:13 2008|debug [26788]: Entering critical section : > > reading the header file > > Sun Jan 13 16:49:13 2008|debug [26788]: Exiting critical section > > Sun Jan 13 16:49:13 2008|debug [26788]: Header sent: HTTP/1.1 200 OK > > Connection: Keep-Alive > > Accept-Ranges: bytes > > ETag: "91402-39a88-27d41200" > > Content-Length: 236168 > > Content-Type: text/plain > > Last-Modified: Thu, 27 Dec 2007 22:32:40 GMT > > > > Sun Jan 13 16:49:13 2008|debug [26788]: ready to send contents of > > /var/cache/apt-cacher/packages/libmime-perl_5.425-1_all.deb > > Sun Jan 13 16:49:13 2008|debug [26788]: opening file first: > > /var/cache/apt-cacher/packages/libmime-perl_5.425-1_all.deb > > Sun Jan 13 16:49:13 2008|debug [26788]: read 65536 bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: wrote 65536 (sum: 65536) bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: read 65536 bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: wrote 65536 (sum: 131072) bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: read 65536 bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: wrote 65536 (sum: 196608) bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: read 39560 bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: wrote 39560 (sum: 236168) bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: read 0 bytes > > Sun Jan 13 16:49:13 2008|debug [26788]: complete file found > > Sun Jan 13 16:49:13 2008|debug [26788]: read 0 bytes > > Here is the problem. 26788 should then report 'Package sent' and then exit. > Can't tell why it doesn't from this. Presumably access.log does not show > libmime-perl_5.425-1_all.deb being served It doesn't mention that file at all: $grep libmime-perl_5.425-1_all.deb /var/log/apt-cacher/access.log | grep 13 (13 because today, here is still the 13 of January) > > > > > > > Even though apt-cacher finds the local file it takes ages to send the > > data back. > > How long? There are no obvious delays in the error.log. Sometimes nothing is sent and after some minutes it _may_ send something. > > > And it starts a new child on every request it receives. > > That is the way it should work. I process per connection. If keep-alive > you can have multiple requests per connection, but otherwise, just 1. But the old ones aren't killed. > > Mark > Cheers, -- Atomo64 - Raphael Please avoid sending me Word, PowerPoint or Excel attachments. See http://www.gnu.org/philosophy/no-word-attachments.html Say NO to Microsoft Office broken standard. See http://www.noooxml.org/petition -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]