Package: apt-cacher-ng Version: 0.7.27-1~bpo70+1 Severity: normal Hello:
I've set up acng in my small sheevaplug server so it now also does Debian archive caching. In addition to attached files in this report, local.conf file contains this: BindAddress: localhost trismegisto I've bound acng listening sockets to local network. And I've found it's not working as expected. For localhost, acng works as expected either downloading indexes or downloading packages. Cached repository packages integrity are ok, accoding to expire-caller. Problem arises when another host in the local network tries to fetch either indexes or packages from acng. Take this example: """ rasasi@portaka:~$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:55:26-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:55:25 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz.1” Packages.gz.1 100%[=================================================================================>] 409,18K --.-KB/s en 0,1s 2014-11-18 22:55:26 (3,06 MB/s) - “Packages.gz.1” guardado [419004/419004] rasasi@portaka:~$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:55:27-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:55:26 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz.2” Packages.gz.2 100%[=================================================================================>] 409,18K --.-KB/s en 0,1s 2014-11-18 22:55:27 (3,05 MB/s) - “Packages.gz.2” guardado [419004/419004] rasasi@portaka:~$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:55:27-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:55:26 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz.3” Packages.gz.3 100%[=================================================================================>] 409,18K --.-KB/s en 0,1s 2014-11-18 22:55:27 (2,90 MB/s) - “Packages.gz.3” guardado [419004/419004] rasasi@portaka:~$ gunzip -t Packages.gz.1 gzip: Packages.gz.1: invalid compressed data--format violated rasasi@portaka:~$ gunzip -t Packages.gz.2 gzip: Packages.gz.2: invalid compressed data--format violated rasasi@portaka:~$ gunzip -t Packages.gz rasasi@portaka:~$ ll Packages.gz* -rw-r--r-- 1 rasasi rasasi 419004 nov 18 21:11 Packages.gz -rw-r--r-- 1 rasasi rasasi 419004 nov 18 21:11 Packages.gz.1 -rw-r--r-- 1 rasasi rasasi 419004 nov 18 21:11 Packages.gz.2 -rw-r--r-- 1 rasasi rasasi 419004 nov 18 21:11 Packages.gz.3 rasasi@portaka:~$ md5sum Packages.gz* 8a46f58d441693107a95cc1e00fd2874 Packages.gz 61d448e96f484e172ff95d077f85eb2d Packages.gz.1 89ff90c68d1e41f5a0e12942806e2fdc Packages.gz.2 cd8e2c4897dc64239ff37757a587411a Packages.gz.3 """ Now same test from trismegisto: """ rasasi@trismegisto:/tmp$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:59:52-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20, 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:59:52 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz” 100%[=======================================================================================================================>] 419.004 --.-K/s en 0,01s 2014-11-18 22:59:52 (33,3 MB/s) - “Packages.gz” guardado [419004/419004] rasasi@trismegisto:/tmp$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:59:53-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20, 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:59:53 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz.1” 100%[=======================================================================================================================>] 419.004 --.-K/s en 0,01s 2014-11-18 22:59:53 (32,0 MB/s) - “Packages.gz.1” guardado [419004/419004] rasasi@trismegisto:/tmp$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:59:53-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20, 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:59:53 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz.2” 100%[=======================================================================================================================>] 419.004 --.-K/s en 0,01s 2014-11-18 22:59:53 (35,3 MB/s) - “Packages.gz.2” guardado [419004/419004] rasasi@trismegisto:/tmp$ wget -S http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz --2014-11-18 22:59:55-- http://trismegisto:3142/ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Resolviendo trismegisto (trismegisto)... 192.168.0.20, 192.168.0.20 Conectando con trismegisto (trismegisto)[192.168.0.20]:3142... conectado. Petición HTTP enviada, esperando respuesta... HTTP/1.1 200 OK Content-Length: 419004 Last-Modified: Tue, 18 Nov 2014 20:11:23 GMT Content-Type: application/x-gzip Date: Tue Nov 18 21:59:55 2014 Server: Debian Apt-Cacher NG/0.7.27 X-Original-Source: http://ftp.debian.org/debian/dists/experimental/main/binary-amd64/Packages.gz Connection: Keep-Alive Longitud: 419004 (409K) [application/x-gzip] Grabando a: “Packages.gz.3” 100%[=======================================================================================================================>] 419.004 --.-K/s en 0,01s 2014-11-18 22:59:55 (32,1 MB/s) - “Packages.gz.3” guardado [419004/419004] rasasi@trismegisto:/tmp$ md5sum Packages.gz* 8a46f58d441693107a95cc1e00fd2874 Packages.gz 8a46f58d441693107a95cc1e00fd2874 Packages.gz.1 8a46f58d441693107a95cc1e00fd2874 Packages.gz.2 8a46f58d441693107a95cc1e00fd2874 Packages.gz.3 rasasi@trismegisto:/tmp$ gunzip -t Packages.gz rasasi@trismegisto:/tmp$ """ As you can see when packages are downloaded from the acng host they are downloaded correctly which is not the case when downloaded from another host in the local network. Notes: 1- Sorry for the Spanish messages. 2- First download from portaka host was correct, unfortunately I lost that piece of log. That download retrieved Packages.gz 3- I may try version 0.8.0 as soon as c++ cross compiler is available again for armel. 4- trismegisto and portake are both hosts in the same local network. Their hostnames resolves to IPs in the 192.168.0.0/24 subnet. -- Package-specific info: -- System Information: Debian Release: 7.7 APT prefers stable APT policy: (500, 'stable') Architecture: armel (armv5tel) Kernel: Linux 3.16-0.bpo.2-kirkwood Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-cacher-ng depends on: ii adduser 3.113+nmu3 ii debconf [debconf-2.0] 1.5.49 ii dpkg 1.16.15 ii libbz2-1.0 1.0.6-4 ii libc6 2.13-38+deb7u6 ii libgcc1 1:4.7.2-5 ii liblzma5 5.1.1alpha+20120614-2 ii libssl1.0.0 1.0.1e-2+deb7u13 ii libstdc++6 4.7.2-5 ii libwrap0 7.6.q-24 ii zlib1g 1:1.2.7.dfsg-13 Versions of packages apt-cacher-ng recommends: ii ed 1.6-2 Versions of packages apt-cacher-ng suggests: pn avahi-daemon <none> ii curl 7.26.0-1+wheezy11 pn doc-base <none> pn libfuse2 <none> ii wget 1.13.4-3+deb7u2 -- Configuration Files: /etc/apt-cacher-ng/acng.conf changed: CacheDir: /var/cache/apt-cacher-ng LogDir: /var/log/apt-cacher-ng Port:3142 Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux Remap-fedora: file:fedora_mirrors # Fedora Linux Remap-epel: file:epel_mirrors # Fedora EPEL Remap-slrep: file:sl_mirrors # Scientific Linux Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo # Gentoo Archives ReportPage: acng-report.html ExTreshold: 4 LocalDirs: acng-doc /usr/share/doc/apt-cacher-ng ReuseConnections: 1 /etc/apt-cacher-ng/security.conf [Errno 13] Permiso denegado: u'/etc/apt- cacher-ng/security.conf' -- debconf information: apt-cacher-ng/bindaddress: keep apt-cacher-ng/cachedir: keep apt-cacher-ng/port: keep apt-cacher-ng/proxy: keep apt-cacher-ng/gentargetmode: No automated setup -- Raúl Sánchez Siles ----->Proud Debian user<----- Linux registered user #416098
signature.asc
Description: This is a digitally signed message part.