apt-cacher-ng behind apache2 proxypass. PDiff problems
Hi list,
I'm having trouble with next arch:
apt-cacher-ng <-> proxypass (apache2) <-> apt
apt-cacher-ng is configured by default, and apt works fine if I config
it to Acquire::Http::Proxy "http://apt-cacher:314"; and "deb
http://ftp.xx.debian.org/debian ..." line in sources.list
But I would like to config my systems with "deb http://debian/debian
..." without adding HTTP:PRoxy option
The proxypass config seems to be simple:
<VirtualHost *:80>
ServerName debian
DocumentRoot /srv/translations/
CustomLog /var/log/apache2/debian/access.log combined
ErrorLog /var/log/apache2/debian/error.log
ProxyRequests Off
RewriteEngine On
RewriteRule ^/debian/dists/.*/(main|contrib|non-free)/i18n/Translation-es.bz2$
/Translation-es.bz2 [PT]
RewriteRule ^/debian/dists/.*/(main|contrib|non-free)/i18n/Translation-es.gz$
/Translation-es.gz [PT]
# RewriteRule ^/debian/dists/.*/non-free/i18n/Translation-es.bz2$
/Translation-es.bz2 [PT]
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /debian/>
ProxyPass http://debian:3142/ftp.fi.debian.org/debian/ timeout=5
ProxyPassReverse http://debian:3142/ftp.fi.debian.org/debian/
</Location>
</VirtualHost>
As you can see I had to create Translation-es in local fs, because it
wont work inside proxypass ??
My problem now is with pdiff files (If I add Acquire::PDiffs "false";
to apt conf, it works fine). But by default:
# annotate-output apt-get -o Debug::pkgAcquire::Diffs=true update
10:24:40 I: Started apt-get -o Debug::pkgAcquire::Diffs=true update
10:24:40 O: Obj http://security.debian.org lenny/updates Release.gpg
10:24:40 O: Ign http://security.debian.org lenny/updates/main Translation-es
10:24:40 O: Ign http://security.debian.org lenny/updates/contrib Translation-es
10:24:40 O: Ign http://security.debian.org lenny/updates/non-free Translation-es
10:24:40 O: Obj http://security.debian.org lenny/updates Release
...
10:24:40 O: Obj http://debian lenny Release.gpg
10:24:40 O: Obj http://debian lenny/main Translation-es
10:24:40 O: Obj http://debian lenny/contrib Translation-es
10:24:40 O: Obj http://debian lenny/non-free Translation-es
...
10:24:41 E: pkgAcqDiffIndex:
http://debian/debian/dists/lenny/main/binary-amd64/Packages.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian_debian_dists_lenny_main_binary-amd64_Packages
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian_debian_dists_lenny_main_binary-amd64_Packages.IndexDiff
10:24:41 E: pkgAcqDiffIndex:
http://debian/debian/dists/lenny/contrib/binary-amd64/Packages.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian_debian_dists_lenny_contrib_binary-amd64_Packages
10:24:41 E: pkgAcqDiffIndex:
http://debian/debian/dists/lenny/non-free/binary-amd64/Packages.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian_debian_dists_lenny_non-free_binary-amd64_Packages
10:24:41 E: pkgAcqDiffIndex:
http://debian/debian/dists/lenny/main/source/Sources.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian_debian_dists_lenny_main_source_Sources
10:24:41 E: pkgAcqDiffIndex:
http://debian/debian/dists/lenny/contrib/source/Sources.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian_debian_dists_lenny_contrib_source_Sources
10:24:41 E: pkgAcqDiffIndex:
http://debian/debian/dists/lenny/non-free/source/Sources.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian_debian_dists_lenny_non-free_source_Sources
10:24:41 O: Obj http://debian lenny Release
10:24:41 O: Obj http://debian.fusionforge.org lenny Release.gpg
10:24:41 O: Ign http://debian.fusionforge.org lenny/main Translation-es
10:24:41 O: Obj http://debian.fusionforge.org lenny Release
10:24:41 E: pkgAcqDiffIndex:
http://debian.fusionforge.org/debian/dists/lenny/main/binary-amd64/Packages.diff/Index
10:24:41 E: pkgAcqIndexDiffs::pkgAcqIndexDiffs():
/var/lib/apt/lists/debian.fusionforge.org_debian_dists_lenny_main_binary-amd64_Packages
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian.fusionforge.org_debian_dists_lenny_main_binary-amd64_Packages.IndexDiff
10:24:41 E: pkgAcqDiffIndex failed:
http://debian.fusionforge.org/debian/dists/lenny/main/binary-amd64/Packages.diff/Index
10:24:41 E: Falling back to normal index file aquire
10:24:41 O: Ign http://debian.fusionforge.org lenny/main Packages/DiffIndex
10:24:41 O: Obj http://debian.fusionforge.org lenny/main Packages
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian_debian_dists_lenny_contrib_binary-amd64_Packages.IndexDiff
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian_debian_dists_lenny_non-free_binary-amd64_Packages.IndexDiff
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian_debian_dists_lenny_main_source_Sources.IndexDiff
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian_debian_dists_lenny_contrib_source_Sources.IndexDiff
10:24:41 E: Custom600Header-IMS:
/var/lib/apt/lists/debian_debian_dists_lenny_non-free_source_Sources.IndexDiff
10:24:41 E: pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/main/binary-amd64/Packages.diff/Index
10:24:41 E: Falling back to normal index file aquire
10:24:41 O: Ign http://debian lenny/main Packages/DiffIndex
------------ proxypass timeout seconds latter ----
10:24:46 E: pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/contrib/binary-amd64/Packages.diff/Index
10:24:46 E: Falling back to normal index file aquire
10:24:46 O: Ign http://debian lenny/contrib Packages/DiffIndex
10:24:47 E: pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/non-free/binary-amd64/Packages.diff/Index
10:24:47 E: Falling back to normal index file aquire
10:24:47 O: Ign http://debian lenny/non-free Packages/DiffIndex
------------ proxypass timeout seconds latter ----
10:24:52 E: pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/main/source/Sources.diff/Index
10:24:52 E: Falling back to normal index file aquire
10:24:52 O: Ign http://debian lenny/main Sources/DiffIndex
10:24:52 E: pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/contrib/source/Sources.diff/Index
10:24:52 E: Falling back to normal index file aquire
10:24:52 O: Ign http://debian lenny/contrib Sources/DiffIndex
------------ proxypass timeout seconds latter ----
10:24:57 E: pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/non-free/source/Sources.diff/Index
10:24:57 E: Falling back to normal index file aquire
10:24:57 O: Ign http://debian lenny/non-free Sources/DiffIndex
10:24:57 O: Obj http://debian lenny/main Packages
10:24:58 O: Obj http://debian lenny/contrib Packages
10:24:58 O: Obj http://debian lenny/non-free Packages
10:24:58 O: Obj http://debian lenny/main Sources
10:24:58 O: Obj http://debian lenny/contrib Sources
10:24:58 O: Obj http://debian lenny/non-free Sources
10:24:58 O: Leyendo lista de paquetes...
10:24:58 I: Finished with exitcode 0
If I remove timeout parameter, then it take 90 seconds in descarding
pkgAcqDiffIndex failed:
http://debian/debian/dists/lenny/contrib/binary-amd64/Packages.diff/Index
If I access to the file with wget, it returns 404:
$ time wget http://debian/debian/dists/lenny/non-free/source/Sources.diff/Index
--2009-07-03 12:44:24--
http://debian/debian/dists/lenny/non-free/source/Sources.diff/Index
Resolviendo debian... 192.168.110.110
Connecting to debian|192.168.110.110|:80... conectado.
Petición HTTP enviada, esperando respuesta... 404 Not Found
2009-07-03 12:44:24 ERROR 404: Not Found.
real 0m0.402s
user 0m0.000s
sys 0m0.004s
Any tip with apt-cacher-ng behind apache2 ?
Thank you!
Reply to: