Your message dated Sun, 10 Nov 2013 16:18:23 +0000
with message-id <[email protected]>
and subject line Bug#708884: fixed in apt-cacher 1.7.8
has caused the Debian Bug report #708884,
regarding apt-cacher: mishandles 404ing InRelease files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
708884: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708884
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt-cacher
Version: 1.7.6
Severity: normal

Dear Maintainer,

It appears that when an InRelease file disappears (as seems to have
happened to wheezy following its release), apt-cacher returns the old file
instead, albeit with the 404 message body overwriting the beginning of the
file:

    michael@wibble:~$ curl -sD - 
http://mirror.waia.asn.au/debian/dists/wheezy/InRelease|head -30
    HTTP/1.1 404 Not Found
    Date: Sun, 19 May 2013 11:11:31 GMT
    Server: Apache/2.2.14 (Ubuntu)
    Content-Length: 311
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    <p>The requested URL /debian/dists/wheezy/InRelease was not found on this 
server.</p>
    <hr>
    <address>Apache/2.2.14 (Ubuntu) Server at mirror.waia.asn.au Port 
80</address>
    </body></html>

    michael@wibble:~$ http_proxy=http://yipyip:3142/ curl -sD - 
http://mirror.waia.asn.au/debian/dists/wheezy/InRelease|head -30
    HTTP/1.1 200 OK
    Connection: Keep-Alive
    Date: Sun, 05 May 2013 20:45:05 GMT
    Via: 1.1 yipyip:3142 (apt-cacher/1.7.6)
    Accept-Ranges: bytes
    Age: 1175309
    ETag: "d9d2003-3cd11-4dbe02bfcfd00"
    Server: Apache/2.2.14 (Ubuntu)
    Content-Length: 249105
    Content-Type: text/plain
    Last-Modified: Sat, 04 May 2013 08:22:44 GMT
    Keep-Alive: timeout=15, max=100
    X-AptCacher-URL: http://mirror.waia.asn.au/debian/dists/wheezy/InRelease

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    <p>The requested URL /debian/dists/wheezy/InRelease was not found on this 
server.</p>
    <hr>
    <address>Apache/2.2.14 (Ubuntu) Server at mirror.waia.asn.au Port 
80</address>
    </body></html>
    n contrib non-free
    Description: Debian x.y Testing distribution - Not Released
    MD5Sum:
     814fc8da206fc61184e03e8b66c9fc5f 22154933 Contents-amd64.gz
     bb9b23179ec2f9ce47806464fe7712c3 21865030 Contents-armel.gz
     4252daaadc6253738435d158288c3edf 21757234 Contents-armhf.gz
     1e1cdd3d53cab26ef82bc738b41ebac7 22332659 Contents-i386.gz

While I unfortunately didn't have debugging enabled two weeks ago, I *can*
show you what error.log looks like fetching the file now:

    Sun May 19 04:37:43 2013|debug [25263]: New INETD connection
    Sun May 19 04:37:43 2013|debug [25263]: Processing a new request line
    Sun May 19 04:37:43 2013|debug [25263]: got: 'HEAD 
/mirror.waia.asn.au/debian/dists/wheezy/InRelease'
    Sun May 19 04:37:43 2013|debug [25263]: Processing a new request line
    Sun May 19 04:37:43 2013|debug [25263]: got: 'Cache-Control: max-age=0'
    Sun May 19 04:37:43 2013|debug [25263]: Processing a new request line
    Sun May 19 04:37:43 2013|debug [25263]: got: 'Connection: Close'
    Sun May 19 04:37:43 2013|debug [25263]: Processing a new request line
    Sun May 19 04:37:43 2013|debug [25263]: got: ''
    Sun May 19 04:37:43 2013|debug [25263]: Resolved request is 
http://mirror.waia.asn.au/debian/dists/wheezy/InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Index file: 
mirror.waia.asn.au_debian_dists_wheezy_InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Locked header 
/var/cache/apt-cacher/headers/mirror.waia.asn.au_debian_dists_wheezy_InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Freshness checks
    Sun May 19 04:37:43 2013|debug [25263]: Revalidating 
mirror.waia.asn.au_debian_dists_wheezy_InRelease. Age: 1122758
    Sun May 19 04:37:43 2013|debug [25263]: Sending If-Modified-Since request
    Sun May 19 04:37:43 2013|debug [25263]: fetcher: GET 
http://mirror.waia.asn.au/debian/dists/wheezy/InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Libcurl candidate: 
http://mirror.waia.asn.au/debian/dists/wheezy/InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Global lock: Connect libcurl
    Sun May 19 04:37:43 2013|debug [25263]: Connection to running libcurl 
process found on /var/cache/apt-cacher/libcurl.socket
    Sun May 19 04:37:43 2013|debug [25263]: Release global lock
    [skipped libcurl process doing its stuff here]
    Sun May 19 04:37:43 2013|debug [25263]: libcurl reading of headers 
complete: 404
    Sun May 19 04:37:43 2013|debug [25263]: Found EOF marker and status 0 (No 
error)
    Sun May 19 04:37:43 2013|debug [25263]: libcurl returned 404 for 
http://mirror.waia.asn.au/debian/dists/wheezy/InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Got 404
    Sun May 19 04:37:43 2013|debug [25263]: Complete check
    Sun May 19 04:37:43 2013|debug [25263]: cached file is complete: 249105
    Sun May 19 04:37:43 2013|debug [25263]: OFFLINE
    Sun May 19 04:37:43 2013|debug [25263]: Unlocked header, checks done, can 
return now
    Sun May 19 04:37:43 2013|debug [25263]: Response: 200 OK
    Sun May 19 04:37:43 2013|debug [25263]: Headers: Connection: Keep-Alive
    Date: Sun, 05 May 2013 20:45:05 GMT
    Via: 1.1 yipyip:3142 (apt-cacher/1.7.6)
    Accept-Ranges: bytes
    Age: 1122758
    ETag: "d9d2003-3cd11-4dbe02bfcfd00"
    Server: Apache/2.2.14 (Ubuntu)
    Content-Length: 249105
    Content-Type: text/plain
    Last-Modified: Sat, 04 May 2013 08:22:44 GMT
    Keep-Alive: timeout=15, max=100
    X-AptCacher-URL: http://mirror.waia.asn.au/debian/dists/wheezy/InRelease
    Sun May 19 04:37:43 2013|debug [25263]: Package sent
    Sun May 19 04:37:43 2013|debug [25263]: Processing a new request line
    Sun May 19 04:37:43 2013|debug [25263]: Clean up before exiting.

The result of this is expired release file errors from every apt-get
update since wheezy's release.

A glance at the code around line 770 suggests that all errors result in the
cached file being returned (and an 'OFFLINE' status). I'm not convinced
that this is a good idea, at least with 404s. :P

I suspect the returned cached file being contaminated by the 404 response
body is a separate bug...

-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable'), (490, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (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.49
ii  dpkg                   1.16.10
ii  ed                     1.6-2
ii  libfilesys-df-perl     0.92-4+b1
ii  libfreezethaw-perl     0.5001-1
ii  libio-interface-perl   1.06-1+b1
ii  libnetaddr-ip-perl     4.062+dfsg-1
ii  libsys-syscall-perl    0.23-1
ii  libwww-curl-perl       4.15-1+b2
ii  libwww-perl            6.04-1
ii  lsb-base               4.1+Debian8
ii  perl                   5.14.2-21
ii  ucf                    3.0025+nmu3
ii  update-inetd           4.43

Versions of packages apt-cacher recommends:
pn  libberkeleydb-perl  <none>

Versions of packages apt-cacher suggests:
ii  libio-socket-inet6-perl  2.69-2

-- Configuration Files:
/etc/apt-cacher/apt-cacher.conf changed:
group = www-data
user = www-data
debug=1
allowed_hosts=192.168.0.0/24,192.168.1.0/24,192.168.2.0/24,134.115.83.129,134.115.68.21
limit=10000k

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


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

--- End Message ---
--- Begin Message ---
Source: apt-cacher
Source-Version: 1.7.8

We believe that the bug you reported is fixed in the latest version of
apt-cacher, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mark Hindley <[email protected]> (supplier of updated apt-cacher package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 21 Oct 2013 16:42:46 +0100
Source: apt-cacher
Binary: apt-cacher
Architecture: source all
Version: 1.7.8
Distribution: unstable
Urgency: low
Maintainer: Mark Hindley <[email protected]>
Changed-By: Mark Hindley <[email protected]>
Description: 
 apt-cacher - Caching proxy for Debian package and source files
Closes: 689955 691351 691942 696523 699938 708884
Changes: 
 apt-cacher (1.7.8) unstable; urgency=low
 .
   * Use sed to insert version number when building, therefore no need
     to Build-Depend on perl any more.
   * Only write body to cached file on success (200).
   * Rework handling of If-Modified request response. Client errors also
     count as EXPIRED. Delete cached files in these circumstances (closes:
     #708884).
   * return_file() never returns a retry code, so don't test for it.
   * Update debian/control file description. Integrate experimental features
     (multi-distro, Debian Bugs SOAP and HTTPS CONNECT) as established.
   * Add Ubuntu 14.04 codename 'Trusty'.
 .
 apt-cacher (1.7.7) unstable; urgency=low
 .
   * Add Ubuntu 13.10 codename 'Saucy'.
   * Update to Standards version 3.9.4 (no changes).
   * Use /proc/self/fd directly rather than rely on /dev/fd which can be
     missing (closes: #699938).
   * In precache script, make example to generate fake package list
     architecture aware by using Dpkg::Arch. Add Suggests dependency on
     libdpkg-perl (closes: #696523).
   * Remove obsolete patch from patches/.
   * Use new function cache_size() to obtain cache usage for configuration
     item disk_usage_limit. Store cache size in shared mem and recaclulate
     on a sliding scale from 0-20 seconds (closes: #689955).
   * Don't use verbose _flock() in write_error_log() as it just makes
     debug logs too full.
   * Handle missing Last-Modified header: use the Date header to
     generate the If-Modified request.
   * Add Ubuntu 13.04 codename 'raring'.
   * Add Italian debconf translation. File from Beatrice Torracca
     (closes: #691351).
   * Added Japenese debconf translation from victory
     <[email protected]> (closes: #691942).
Checksums-Sha1: 
 1a0b2a7c33c283b92a98a11557f4d9219f0fdec2 817 apt-cacher_1.7.8.dsc
 4eceb234f4728bee005616869f7c7903f3694a4b 105722 apt-cacher_1.7.8.tar.gz
 7997d529ec06c11e53a83371060bc3c5cb1a7401 105462 apt-cacher_1.7.8_all.deb
Checksums-Sha256: 
 532cf431560cb9c09e3cbf65b0b838dbf4bb4d8ac0386d0ae1f2955a60b4ae99 817 
apt-cacher_1.7.8.dsc
 be89952c72272bac3bcff16d2cb4304b7d2fa969a30cb546770f5b8cc53f647e 105722 
apt-cacher_1.7.8.tar.gz
 59efa78490a92df22005b7997e31d0125b86e4f874607c06342fbdcfec579f0b 105462 
apt-cacher_1.7.8_all.deb
Files: 
 8743b9414d5a478e9abf97d50704c6de 817 net optional apt-cacher_1.7.8.dsc
 7666c3a90b27484b3315f2c3e1ce0a83 105722 net optional apt-cacher_1.7.8.tar.gz
 b7f187ca68759469106b70e2604627dd 105462 net optional apt-cacher_1.7.8_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iD8DBQFSf6564QZIHu3wCMURAoNjAJoCRar0mHWX4vCqf7PjszUe/yr8KQCfdysZ
rJ0xK4Mf/Qd/LFjZJLYv5JM=
=5Ubg
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to