Package: apt-cacher
Version: 1.7.3~rc4
Justification: renders package unusable
Severity: grave

*** Please type your report below this line ***
*some* clients fail to download packages. Some are pure Squeeze, others
include Squeeze-backports. All use apt (no aptitude, synaptic etc). I've
tried a number of repositories over the last four days. The error is the
same and I can't work out why it only seems to affect some boxen.
Example error message on clients (edited):-
Failed to fetch
http://http.us.debian.org/debian/pool/main/c/cairomm/libcairomm-1.0-1_1.8.4-3_i386.deb
 
Connection failed

Site is good, and on the same machine:-
# wget -t 0
http://http.us.debian.org/debian/pool/main/c/cairomm/libcairomm-1.0-1_1.8.4-3_i386.deb
--2012-03-06 14:18:10-- 
http://http.us.debian.org/debian/pool/main/c/cairomm/libcairomm-1.0-1_1.8.4-3_i386.deb
Resolving http.us.debian.org... 64.50.233.100, 64.50.236.52,
128.30.2.36, ...
Connecting to http.us.debian.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 72176 (70K) [application/x-debian-package]
Saving to: `libcairomm-1.0-1_1.8.4-3_i386.deb'

100%[=========================================>] 72,176      40.8K/s  
in 1.7s   

2012-03-06 14:18:16 (40.8 KB/s) - `libcairomm-1.0-1_1.8.4-3_i386.deb'
saved [72176/72176]

/var/log/apt-cacher/error.log  (edited) shows:-
Tue Mar  6 14:12:11 2012|error [16392]: Failed to open/create
libcairomm-1.0-1_1.8.4-3_i386.deb for return: Permission denied at
/usr/sbin/apt-cacher line 696, <GEN91> line 4.

There is no /var/cache/apt-cacher/packages/

===========/usr/sbin/apt-cacher lines 693-698 =====================
    # Open/create cached file
    for (my $cached_file = "$cfg->{cache_dir}/packages/$cache->{name}") {
        unlink $cached_file if $cache->{status} && $cache->{status} eq
'NOCACHE'; # Ensure new file for Cache-Control: no-cache
        sysopen($cache->{content}, $cached_file, O_RDWR|O_CREAT)
          || die "Failed to open/create $cached_file for return: $!";
    }
====================================================================

I've tried different repositories - same type of errors on the same
clients. Likewise changing client IP addresses. If I duplicate
everything below /etc/apt from a working box nothing changes (same
error). The only thing I haven't been able to try is downloading the
exact same packages on a working box as on a non-working box.

Please let me know what additional logs, or config files I can attach,
or tests I can run.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-cacher depends on:
ii  debconf [debconf-2.0] 1.5.36.1           Debian configuration
management sy
ii  dpkg                  1.15.8.12          Debian package management
system
ii  ed                    1.4-3              The classic UNIX line editor
ii  libfilesys-df-perl    0.92-3+b1          Module to obtain filesystem
disk s
ii  libfreezethaw-perl    0.5001-1           module to serialize and
deserializ
ii  libio-interface-perl  1.05-1             socket methods to get/set
interfac
ii  libnetaddr-ip-perl    4.028+dfsg-1       IP address manipulation module
ii  libsys-syscall-perl   0.23-1             module to access system
calls that
ii  libwww-curl-perl      4.12-1             Perl bindings to libcurl
ii  libwww-perl           5.836-1            Perl HTTP/WWW client/server
librar
ii  lsb-base              3.2-23.2squeeze1   Linux Standard Base 3.2
init scrip
ii  perl                  5.10.1-17squeeze3  Larry Wall's Practical
Extraction
ii  update-inetd          4.38+nmu1+squeeze1 inetd configuration file
updater

Versions of packages apt-cacher recommends:
ii  libberkeleydb-perl       0.42-1~squeeze1 use Berkeley DB 4 databases
from P

Versions of packages apt-cacher suggests:
pn  libio-socket-inet6-perl       <none>     (no description available)

-- Configuration Files:
/etc/apt-cacher/apt-cacher.conf changed:
log_dir = /var/log/apt-cacher/
group = www-data
user = www-data
allowed_hosts = 192.168.0.0/24
generate_reports = 1

/etc/default/apt-cacher changed:
AUTOSTART=1


-- debconf information:
* apt-cacher/mode: daemon






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to