Package: apt-cacher
Version: 1.5.3
Severity: important

Hi,

This is the same issue I sent you some private mail about earlier,
but it does seem to be resolving itself into a repeatable bug, so
I'm opening a report.

There would seem to be some relationship to one or more existing
reports, but as the symptoms are again different, I'll keep this
separate and let you decide the lines to merge on.

Here is an example:

 The following NEW packages will be installed:
  debconf-doc gkdebconf libcairo-perl libglib-perl libgnome2-canvas-perl 
libgnome2-perl
  libgnome2-vfs-perl libgtk2-perl libterm-readline-gnu-perl
 0 upgraded, 9 newly installed, 0 to remove and 1 not upgraded.
 Need to get 2574kB of archives.
 After unpacking 8290kB of additional disk space will be used.
 Do you want to continue [Y/n]?
 Get:1 http://apt-cache.shelbyville.oz unstable/main debconf-doc 1.5.0 [157kB]
 Err http://apt-cache.shelbyville.oz unstable/main debconf-doc 1.5.0
  Connection timed out
 Get:2 http://apt-cache.shelbyville.oz unstable/main gkdebconf 1.2.62 [110kB]
 ... <snip more ok downloads>
 Get:9 http://apt-cache.shelbyville.oz unstable/main libterm-readline-gnu-perl 
1.16-1 [117kB]
 Fetched 2417kB in 5m14s (7692B/s)
 Failed to fetch 
http://apt-cache.shelbyville.oz:8000/http.us.debian.org/debian/pool/main/d/debconf/debconf-doc_1.5.0_all.deb
  Connection timed out
 E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?

Ok, looks like a 'normal' network error at this stage...
Try it again:

 The following NEW packages will be installed:
  debconf-doc gkdebconf libcairo-perl libglib-perl libgnome2-canvas-perl 
libgnome2-perl
  libgnome2-vfs-perl libgtk2-perl libterm-readline-gnu-perl
 0 upgraded, 9 newly installed, 0 to remove and 1 not upgraded.
 Need to get 157kB/2574kB of archives.
 After unpacking 8290kB of additional disk space will be used.
 Do you want to continue [Y/n]?
 Get:1 http://apt-cache.shelbyville.oz unstable/main debconf-doc 1.5.0 [157kB]
 0% [1 debconf-doc 165]

This time it hangs solid at that point until it times out again.
Note that apt does not know the size of the file it is expecting
in the progess meter.  Subsequent retries consistently stop at
exactly this point.  In my cache now is:

-rw-r--r-- 1 www-data www-data 228 2006-05-10 12:11 
./headers/debconf-doc_1.5.0_all.deb
-rw-r--r-- 1 www-data www-data 165 2006-05-10 12:11 
./packages/debconf-doc_1.5.0_all.deb
-rw-r--r-- 1 www-data www-data  72 2006-05-10 12:11 
./private/debconf-doc_1.5.0_all.deb.complete

Removing those files clears the problem, and a subsequent retry
will then have the normal chance of success.

Variations on the theme:

1. If the user doing the download interrupts it themselves (eg. ^C, or any
   stronger signal), then similar results occur for the package if the
   cache was scoring a 'miss' for it and in the process of retrieving it.

2. The download does not hang 'short', but instead overruns, and reports
   (sometimes far) greater data transferred than the actual size of the
   package.  I suspect that apt-cacher is actually downloading other
   packages during that time, but streams it all to apt as the same
   'unknown size' package.

In every case, manually finding and removing the offending files from
the cache clears the problem.  But that is a fairly major usability
stopper in any case where the end users aren't also admin, hence the
choice of 'important' status.

Other than this, it seems to be working quite nicely.  Thanks very much!

  Ron


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-amd64-k8-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt-cacher depends on:
ii  bzip2                         1.0.3-2    high-quality block-sorting file co
ii  libwww-perl                   5.805-1    WWW client/server library for Perl
ii  perl                          5.8.8-4    Larry Wall's Practical Extraction 

apt-cacher recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to