Package: apt-cacher
Version: 1.7.11
Severity: normal

Client: jessie, just installed.

I *randomly* (i.e. from 2 to 5 files at every apt-get update run) get 
errors caused by apt issuing a range request for a file that it has 
already received fully.
I am not sure about who is at fault between apt and apt-cacher: if 
I issue the same range request to a normal mirror running Apache I get 
back the same error.

My workaround: I disabled support for range requests in apt-cacher.

What is ok the disk:

-rw-r--r-- 1 www-data www-data 3673 Aug 12 16:43 
packages/debian_dists_jessie-updates_main_binary-amd64_Packages.bz2


How apt-cacher answers a normal HEAD request:

Date: Wed, 12 Aug 2015 15:49:13 GMT
Via: 1.1 pxe.mil.seeweb.it:80 (apt-cacher/1.7.11)
Accept-Ranges: bytes
Age: 360
ETag: "11a597-e59-51d18daedee40"
Server: Apache
Content-Length: 3673
Content-Type: application/x-bzip2
Last-Modified: Wed, 12 Aug 2015 08:17:53 GMT



Debug output:

GET /debian/dists/jessie-updates/main/binary-amd64/Packages.bz2 HTTP/1.1
Host: debian.seeweb.it
Cache-Control: max-age=0
Range: bytes=3673-
If-Range: Wed, 12 Aug 2015 08:17:53 GMT
User-Agent: Debian APT-HTTP/1.3 (1.0.9.8)


Answer for: 
http://debian.seeweb.it/debian/dists/jessie-updates/main/binary-amd64/Packages.bz2
HTTP/1.1 416 Invalid range: 3673-
Connection: Keep-Alive
Date: Wed, 12 Aug 2015 15:23:01 GMT
Accept-Ranges: bytes
Server: apt-cacher/1.7.11
Content-Length: 0
Content-Range: bytes */3673

-- 
ciao,
Marco

Attachment: pgpYpoHBkbnef.pgp
Description: PGP signature

Reply via email to