On Tue, Mar 06, 2012 at 04:13:45PM +1100, Scott Ferguson wrote: > Package: apt-cacher > Version: 1.7.3~rc4 > Justification: renders package unusable > Severity: grave > > *** Please type your report below this line *** > *some* clients fail to download packages. Some are pure Squeeze, others > include Squeeze-backports. All use apt (no aptitude, synaptic etc). I've > tried a number of repositories over the last four days. The error is the > same and I can't work out why it only seems to affect some boxen.
Just for me to be clear, on the boxen affected, this is for all requests on those boxes, not just some? > Example error message on clients (edited):- > Failed to fetch > http://http.us.debian.org/debian/pool/main/c/cairomm/libcairomm-1.0-1_1.8.4-3_i386.deb > > Connection failed > > Site is good, and on the same machine:- > # wget -t 0 > http://http.us.debian.org/debian/pool/main/c/cairomm/libcairomm-1.0-1_1.8.4-3_i386.deb > --2012-03-06 14:18:10-- > http://http.us.debian.org/debian/pool/main/c/cairomm/libcairomm-1.0-1_1.8.4-3_i386.deb > Resolving http.us.debian.org... 64.50.233.100, 64.50.236.52, > 128.30.2.36, ... > Connecting to http.us.debian.org|64.50.233.100|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 72176 (70K) [application/x-debian-package] > Saving to: `libcairomm-1.0-1_1.8.4-3_i386.deb' > > 100%[=========================================>] 72,176 40.8K/s > in 1.7s > > 2012-03-06 14:18:16 (40.8 KB/s) - `libcairomm-1.0-1_1.8.4-3_i386.deb' > saved [72176/72176] > > /var/log/apt-cacher/error.log (edited) shows:- > Tue Mar 6 14:12:11 2012|error [16392]: Failed to open/create > libcairomm-1.0-1_1.8.4-3_i386.deb for return: Permission denied at > /usr/sbin/apt-cacher line 696, <GEN91> line 4. > > There is no /var/cache/apt-cacher/packages/ Really? What is in /var/cache/apt-cacher? What are the permissions in there? This looks like a configuration error/installation error. Is there a directory in root '/packages'? > ===========/usr/sbin/apt-cacher lines 693-698 ===================== > # Open/create cached file > for (my $cached_file = "$cfg->{cache_dir}/packages/$cache->{name}") { > unlink $cached_file if $cache->{status} && $cache->{status} eq > 'NOCACHE'; # Ensure new file for Cache-Control: no-cache > sysopen($cache->{content}, $cached_file, O_RDWR|O_CREAT) > || die "Failed to open/create $cached_file for return: $!"; > } > ==================================================================== This should produce a die message which says Failed to open/create /var/cache/apt-cacher/packages/libcairomm-1.0-1_1.8.4-3_i386.deb for return..... But the one you quote is missing the full path. Did you edit that path out of the log message? If not, then cache_dir is not set, for some reason. But there is a default (/var/cache/apt-cacher/), so I can't see how it could not be set. > -- Configuration Files: > /etc/apt-cacher/apt-cacher.conf changed: > log_dir = /var/log/apt-cacher/ > group = www-data > user = www-data > allowed_hosts = 192.168.0.0/24 > generate_reports = 1 Is this really all that is in the config file? Could you check the setting of cache_dir when you point a browser to http://localhost:3142 Thanks Mark -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org