Hello:

El Sábado 23 Mayo 2009, Eduard Bloch escribió:
> #include <i18n/hallo.h>
>
> * Raúl Sánchez Siles [Sat, May 23 2009, 12:21:32AM]:
[...]
> > aptitude -q -o Debug::Acquire::Http=true
> ...
>
> > HTTP/1.1 404 Not Found
> > Date: Fri May 22 21:53:47 2009
> > Server: Debian Apt-Cacher NG/0.3.11
> > Connection: keep-alive
>
> Ok, here is one little bug, some information is missing. Usually,
> X-Original-Source: should have appeared telling the original
> source where 404 came from.
>
> > 1243029227|M|Download of debrep/pool/main/d/dpkg/dpkg_1.15.1_amd64.deb
> > finished
> > 1243029227|I|468|127.0.0.1|debrep/pool/main/d/dpkg/dpkg_1.15.1_amd64.deb
> > 1243029227|O|119|127.0.0.1|debrep/pool/main/d/dpkg/dpkg_1.15.1_amd64.deb
> >
> >   But if I do:
> > wget http://ftp.gul.uc3m.es/debian/pool/main/d/dpkg/dpkg_1.15.1_amd64.deb
> > I do get the file.
> >
> >   Problem with this kind of issues is that mirrors are such a moving
> > target and it's difficult to reproduce, so adding instructions on the
> > acng would have
>
> Actually, they are not really moving that fast. According to the log,
> you got the file through some backend description. I.e. access to
> ftp.gul.uc3m.es was rerouted to some other one from your configuration,
> and I guess this mirror is broken. To get an idea, try:
>
> wget -S http://localhost:3142/ftp.gul.uc3m.es/debian/dists/unstable/Release
>
> and watch out for a header line like:
>
>   X-Original-Source:
> http://debian.netcologne.de/debian/dists/unstable/Release
>
> Then edit the Remap-... directive or the file referenced there and
> remove/replace the faulty mirror.
>
  I understand it now, indeed whereas I explicitly stated the mirror I wanted 
to use in my sources.list, the Remap option in acng.conf looks like this:
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian

  Where backends_debian pointed to a "bad" mirror: ftp.rediris.es so while I 
thought I was retrieving the file from the mirror I wanted (ftp.gul.uc3m.es) 
acng was actually trying to get it from ftp.rediris.es.

  The fix was removing backends_debian and running dpkg-reconfigure apt-cacher-
ng

  There are 2 problems with this as I see it:

  · Regular user, like me, would expect that if you explicitly tell the mirror 
you want to use in sources.list, you retrieve files from this specified one. 
This is true, unless file is already in the cache, in which case doesn't 
matter. I understand that remapping has precedence over user suggested mirror 
(as per documentation) but I'm not sure whether this should be the default.

  · I didn't tweak remap options so I assume those are the default ones, (find 
attached acng.conf). For any reason ftp.rediris.es , which was the mirror I 
formerly used until I stopped for its misbehaviour, remain on the 
backends_debian flie. I'm not sure BTW, if I did any acng upgrade since the 
change.
  I guess there should be an automatic method that updates backends_debian 
according to user suggestions, especially when faulty mirrors remain in there.

  Additionally, even documentation explains this case, I had to reread it 
several times to finally understand what Remap means. Sure I'm not that 
brilliant, but maybe a rephrase of the remap section would help. I'll try to 
think about this and come with some ideas.

  Taking all the above into account, I assume this bug it's not such. I 
acknowledge that this has been a "bad configuration problem". Still there are 4 
issues raising from this, so I'll await for your opinion on each on them. I 
wouldn't mind placing a bug report for each.

> Regards,
> Eduard.

  Thank you, regards,

-- 
     Raúl Sánchez Siles
----->Proud Debian user<-----
Linux registered user #416098
# Letter case in directive names does not matter. Must be separated with colons.
# Valid boolean values are a zero number for false, non-zero numbers for true.

CacheDir: /var/cache/apt-cacher-ng

# set empty to disable logging
LogDir: /var/log/apt-cacher-ng

# TCP (http) port
# Set to 9999 to emulate apt-proxy
Port:3142

# Addresses to bind/listen on. Multiple addresses must be separated by spaces.
# DNS resolution is performed. If multiple protocols are available for a
# hostname (i.e. IPv4 and IPv6) then both shall be supported.
#
# Default: not set, will listen on all interfaces.
#
# BindAddress: localhost 192.168.7.254

#Proxy: http://www-proxy.example.net:80
#proxy: http://username:proxypassw...@proxy.example.net:3128

# Repository remapping. See manual for details.
# In this example, backends file is generated during package installation.
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol

# Virtual page accessible in a web browser to see statistics and status
# information, i.e. under http://localhost:3142/acng-report.html
ReportPage: acng-report.html

# Socket file for accessing through local UNIX socket instead of TCP/IP. Can be
# used with inetd bridge or cron client.
# SocketPath:/var/run/apt-cacher-ng/socket

# Forces log file to be written to disk after every line when set to 1. Default
# is 0, buffer flush happens after client disconnects.
#
# (technically, this is an alias to the Debug option provided for convenience)
#
# UnbufferLogs: 0

# Set to 0 to store only type, time and transfer sizes.
# 1 -> client IP and relative local path are logged too
# VerboseLog: 1

# Don't detach from the console
# ForeGround: 1

# Store the pid of the daemon process therein
# PidFile: /var/run/apt-cacher-ng/pid

# Forbid outgoing connections, work around them or respond with 503 error
# offlinemode:0

# Forbid all downloads that don't run through preconfigured backends (.where)
#ForceManaged: 0

# Days before considering an unreferenced file expired (to be deleted).
# Warning: if the value is set too low and particular index files are not
# available for some days (mirror downtime) there is a risk of deletion of
# still usefull package files.
ExTreshold: 4

# Stop expiration when a critical problem appeared. Currently only failed
# refresh of an index file is considered as critical.
#
# WARNING: don't touch this option or set to a non-zero number.
# Anything else is DANGEROUS and may cause data loss.
#
# ExAbortOnProblems: 1

# Replace some Windows/DOS-FS incompatible chars when storing
# StupidFs: 0

# Don't touch this
# MaxSpareThreadSets: 2
#VfilePattern = 
(^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$
#PfilePattern = 
.*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz|ReleaseAnnouncement)$
# Whitelist for expiration, file types not to be removed even when being
# unreferenced. Default: same as VfilePattern which is a safe bed. When and
# only when the only used mirrors are official repositories (with working
# Release files) then it might be set to something more restrictive, like
# (^|.*?/)(Release|Release\.gpg|release|meta-release|Translation[^/]*\.bz2)$
#WfilePattern = 
(^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$

# Higher modes only working with the debug version
# Warning, writes a lot into apt-cacher.err logfile
# Value overwrites UnbufferLogs setting (aliased)
# Debug:11

# Usually, general purpose proxies like Squid expose the IP adress of the
# client user to the remote server using the X-Forwarded-For HTTP header. This
# behaviour can be optionally turned on with the Expose-Origin option.
# ExposeOrigin: 0

# When logging the originating IP address, trust the information supplied by
# the client in the X-Forwarded-For header.
# LogSubmittedOrigin: 0

# The version string reported to the peer, to be displayed as HTTP client (and
# version) in the logs of the mirror.
# WARNING: some archives use this header to detect/guess capabilities of the
# client (i.e. redirection support) and change the behaviour accordingly, while
# ACNG might not support the expected features. Expect side effects.
#
# UserAgent: Yet Another HTTP Client/1.2.3p4

# In some cases the Import and Expiration tasks might create fresh volatile
# data for internal use by reconstructing them using patch files. This
# by-product might be recompressed with bzip2 and with some luck the resulting
# file becomes identical to the *.bz2 file on the server, usable for APT
# clients trying to fetch the full .bz2 compressed version. Injection of the
# generated files into the cache has however a disadvantage on underpowered
# servers: bzip2 compession can create high load on the server system and the
# visible download of the busy .bz2 files also becomes slower.
#
# RecompBz2: 0

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to