Package: apt-cacher
Version: 1.5.3
Severity: grave

It was working in sarge+testing mixed environment, but when I tried to
use it on clean testing I get the following.

First off all my config:
====
cache_dir=/var/cache/apt-cacher
[EMAIL PROTECTED]
daemon_port=9999
group=www-data
user=www-data
allowed_hosts=127.0.0.0/8, 172.16.0.0/24
denied_hosts=
allowed_hosts_6=fec0::/16
denied_hosts_6=
generate_reports=1
clean_cache=1
logdir=/var/log/apt-cacher
expire_hours=0
http_proxy=proxy.example.com:8080
use_proxy=0
http_proxy_auth=proxyuser:proxypass
use_proxy_auth=0
limit=0
debug=1
path_map = debian ftp.ru.debian.org/debian ; debian-security 
security.debian.org/debian-security
====

All I set was path_map and allowed_hosts.

Now when I run aptitude update all works fine, Packages files downloaded
(and cached in apt-cacher cache).

# LANG=C aptitude upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be upgraded:
  findutils [4.2.27-3 -> 4.2.28-1] <-57.3kB> grub [0.97-13 -> 0.97-15]
<+16.4kB> hddtemp [0.3-beta15-26 -> 0.3-beta15-27]
  libapache2-mod-php5 [5.1.4-0.1 -> 5.1.6-1] <+16.4kB>
libemail-address-perl [1.80-1 -> 1.870-1] <+4096B> libgnutls13 [1.4.2-1
-> 1.4.3-2]
  libgstreamer0.10-0 [0.10.9-1 -> 0.10.9-2] libkrb53 [1.4.4~beta1-1 ->
1.4.4-1] <-8192B> libssl0.9.7 [0.9.7i-1 -> 0.9.7i-2] <-683kB>
  libssl0.9.8 [0.9.8b-2 -> 0.9.8b-3] <-111kB> openssl [0.9.8b-2 ->
0.9.8b-3] <-77.8kB> php5-common [5.1.4-0.1 -> 5.1.6-1]
  python-tk [2.4.3-3 -> 2.4.3-5] system-tools-backends [1.4.2-2 ->
1.4.2-3] <-465kB> xmms [1:1.2.10+20060801-2 -> 1:1.2.10+20060901-1]
15 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.7MB of archives. After unpacking 1365kB will be freed.
Do you want to continue? [Y/n/?]
0% [Waiting for headers]


and aptitude hangs on "waiting for headers"

In /var/log/apt-cacher/log with debug=1 I see something like that:
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12918]: Connection from 172.16.0.2
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: New HTTP connection open
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: testing allowed_hosts
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: checking against 127.0.0.0/8
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: checking against 
172.16.0.0/24
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: testing denied_hosts 
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Client 172.16.0.2 passed 
access control rules
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Processing a new request line
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12918]: registred child process: 
12943
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: got: GET 
http://172.16.0.2:9999/debian/pool/main/p/php5/libapache2-mod-php5_5.1.6-1_i386.deb
 HTTP/1.1
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Processing a new request line
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: got: Host: 172.16.0.2:9999
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Processing a new request line
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: got: User-Agent: Debian 
APT-HTTP/1.3
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Processing a new request line
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: got: 
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: new filename with just 
basename: libapache2-mod-php5_5.1.6-1_i386.deb
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: looking for 
/var/cache/apt-cacher/packages/libapache2-mod-php5_5.1.6-1_i386.deb
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Entering critical section : 
file download decission
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: Exiting critical section
Thu Sep 14 16:52:39 2006|172.16.0.2|debug [12943]: checks done, can return now
==end==


So it's totally unusable in default configuration.

PS Without apt-cacher aptitude works fine with that mirror. Changing
mirror doesn't change hangs with apt-cacher.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing-proposed-updates
  APT policy: (720, 'testing-proposed-updates'), (720, 'testing'), (670, 
'proposed-updates'), (670, 'stable'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-vserver-k7
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages apt-cacher depends on:
ii  bzip2                         1.0.3-6    high-quality block-sorting file co
ii  libwww-perl                   5.805-1    WWW client/server library for Perl
ii  perl                          5.8.8-6.1  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