Bug#897948: approx: jessie approx no longer retrieves files from /var/cache/approx

2018-05-25 Thread Edmund Biow
I upgraded my home server to current Debian stable stretch and it seems
to be working. I'm not completely convinced approx is always pulling
cached files from /var/cache/approx, but I have enabled logging and will
check the syslog if I see a suspicious situation and report back.

One observation I should add is that the man page still seem to refer to
the inetd version, and references now abandoned routines like approx-gc



Bug#897948: approx: jessie approx no longer retrieves files from /var/cache/approx

2018-05-05 Thread Eric Cooper
I would recommend installing the current version of approx if that's not
too disruptive. The approx-gc program has been replaced with a simple find
script that just removes old files, rather than trying to determine whether
they're still referenced from Packages files (that was the source of
several bugs).

If you can locate a package you know is in your approx cache, and can
reproduce the problem (missing the cache) by doing an "apt-get install
--reinstall ...", please send the log corresponding to that.  I can't see where
the problem is from the portion you posted.


Bug#897948: approx: jessie approx no longer retrieves files from /var/cache/approx

2018-05-04 Thread y
Package: approx
Version: 5.5-1
Severity: important

Dear Maintainer,

I have used approx for years to service a variety of Debian and Ubuntu 
computers. Recently I was trying to upgrade several computers and I noticed 
that I was downloading the packages off the net repeatedly and my rather 
pathetic DSL speed instead of getting files from my local server's cache at 11+ 
MBps. apt seems to imply that approx is working properly, e.g.
Get:1 http://server:/security/ jessie/updates/main perl amd64 
5.20.2-3+deb8u10

I enabled verbose logging in /etc/approx/approx.conf  /var/log/syslog seems to 
report that some of the files are being delivered from the cache and some are 
not. My experience is that the vast majority are not being cached, while some 
packages download at normal fast LAN speed. Here is a snippet of the syslog:

May  4 20:41:22 server approx[28108]:   close cache 
debian/pool/main/l/linux/linux-image-4.9.0-0.bpo.6-amd64_4.9.82-1+deb9u3~bpo8+1_amd64.deb
May  4 20:41:22 server approx[28108]:   setting mtime to Tue, 17 Apr 2018 
15:28:42 GMT
May  4 20:41:22 server approx[28108]: 
http://mirrors.kernel.org/debian//pool/main/l/linux/linux-image-4.9.0-0.bpo.6-amd64_4.9.82-1+deb9u3~bpo8+1_amd64.deb:
 delivered
May  4 20:41:22 server approx[28108]: Connection from 192.168.1.101 port 34662
May  4 20:41:22 server approx[28108]: Request: GET 
/debian/pool/main/l/linux-latest/linux-image-amd64_4.9%2b80%2bdeb9u4%7ebpo8%2b1_amd64.deb
May  4 20:41:22 server approx[28108]:   Host: server:
May  4 20:41:22 server approx[28108]:   User-Agent: Debian APT-HTTP/1.3 
(1.0.9.8.4)
May  4 20:41:22 server approx[28108]:   => cache miss
May  4 20:41:22 server approx[28108]: Command: /usr/bin/curl --fail --silent 
--header "Pragma: no-cache"  --include 
"http://mirrors.kernel.org/debian//pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb;
May  4 20:41:23 server approx[28108]:   HTTP/1.1 200 OK
May  4 20:41:23 server approx[28108]:   Server: nginx
May  4 20:41:23 server approx[28108]:   Date: Sat, 05 May 2018 03:41:22 GMT
May  4 20:41:23 server approx[28108]:   Content-Type: application/octet-stream
May  4 20:41:23 server approx[28108]:   Content-Length: 7332
May  4 20:41:23 server approx[28108]:   Last-Modified: Sun, 22 Apr 2018 
14:59:59 GMT
May  4 20:41:23 server approx[28108]:   Accept-Ranges: bytes
May  4 20:41:23 server approx[28108]:   X-Frame-Options: DENY
May  4 20:41:23 server approx[28108]:   X-Content-Type-Options: nosniff
May  4 20:41:23 server approx[28108]:   open cache 
debian/pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb
May  4 20:41:23 server approx[28108]: Proxy response
May  4 20:41:23 server approx[28108]:   Content-Type: text/plain
May  4 20:41:23 server approx[28108]:   Status: 200
May  4 20:41:23 server approx[28108]:   Last-Modified: Sun, 22 Apr 2018 
14:59:59 GMT
May  4 20:41:23 server approx[28108]:   Content-Length: 7332
May  4 20:41:23 server approx[28108]:   close cache 
debian/pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb
May  4 20:41:23 server approx[28108]:   setting mtime to Sun, 22 Apr 2018 
14:59:59 GMT
May  4 20:41:23 server approx[28108]: 
http://mirrors.kernel.org/debian//pool/main/l/linux-latest/linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb:
 delivered
May  4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662
May  4 20:41:23 server approx[28108]: Request: GET 
/security/pool/updates/main/l/linux/linux-libc-dev_3.16.56-1_amd64.deb
May  4 20:41:23 server approx[28108]:   Host: server:
May  4 20:41:23 server approx[28108]:   User-Agent: Debian APT-HTTP/1.3 
(1.0.9.8.4)
May  4 20:41:23 server approx[28108]:   => delivering from cache
May  4 20:41:23 server approx[28108]: Local response
May  4 20:41:23 server approx[28108]:   Last-Modified: Mon, 30 Apr 2018 
08:57:06 GMT
May  4 20:41:23 server approx[28108]:   Content-Type: text/plain
May  4 20:41:23 server approx[28108]:   Content-Length: 1096066
May  4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662
May  4 20:41:23 server approx[28108]: Request: GET 
/security/pool/updates/main/m/mysql-5.5/mysql-server-core-5.5_5.5.60-0%2bdeb8u1_amd64.deb
May  4 20:41:23 server approx[28108]:   Host: server:
May  4 20:41:23 server approx[28108]:   User-Agent: Debian APT-HTTP/1.3 
(1.0.9.8.4)
May  4 20:41:23 server approx[28108]:   => delivering from cache
May  4 20:41:23 server approx[28108]: Local response
May  4 20:41:23 server approx[28108]:   Last-Modified: Thu, 19 Apr 2018 
10:28:18 GMT
May  4 20:41:23 server approx[28108]:   Content-Type: text/plain
May  4 20:41:23 server approx[28108]:   Content-Length: 3416750
May  4 20:41:23 server approx[28108]: Connection from 192.168.1.101 port 34662
May  4 20:41:23 server approx[28108]: Request: GET 
/palemoon8/./amd64/palemoon_27.9.0%7erepack-1_amd64.deb
May  4 20:41:23 server approx[28108]:   Host: server:
May  4 20:41:23 server approx[28108]:   User-Agent: