Bug#354428: Bug#354548: apt-cacher: cleanup fails when Packages.bz2 is empty

2006-03-09 Thread Ross Boylan
On Tue, Feb 28, 2006 at 09:22:44PM +0100, Eduard Bloch wrote:
> #include 
> * Andrew Schulman [Mon, Feb 27 2006, 05:19:13AM]:
> > Package: apt-cacher
> > Version: 1.5.1
> > Severity: normal
> > 
> > /etc/cron.daily/apt-cacher fails with:
> > 
> > bzcat: Compressed file ends unexpectedly;
> > perhaps it is corrupted?  *Possible* reason follows.
> > bzcat: Success
> > Input file = 
> > http.us.debian.org_debian_dists_.._project_experimental_contrib_binary-i386_Packages.bz2,
> >  output file = (stdout)
> 
> Hi people,
> 
> you all reported problems with apt-cacher with symptoms like those
> described above. Please test the new package available in
> http://rootfs.net/debs/apt-cacher_1.5.3_all.deb and report whether the
> problem is solved for you.
> 
> The update enjoyed my usual inspections and test parcour, however better
> make a backup copy of your cache before installing it:
> cp -la /var/cacher/apt-cacher /var/cacher/apt-cacher-backup
> (or similar command)
> 
> You can run the cleanup script manually as root or the correct user,
> /usr/share/apt-cacher/apt-cacher-cleanup.pl .
> 
> Eduard.

Sorry for the slow response, but the nuisance messages have
disappeared.  I believe that in my case the relevant files were
completely absent.

While looking at the apt-cacher-cleanup.pl code I noticed a few small
items in the comments:
1)
# add one argument like 1 to make it verbose
I tried this, but it didn't work.  I think the comment is obsolete,
and the way to get verbose is with -v (which did work for me).

2)
# do locking, not loosing files because someone redownloaded the index
files
That's "losing" I think.

3)
# file state decissions, lock that area
"decisions"

4)
# headers for previosly expired files
"previously"



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#354548: apt-cacher: cleanup fails when Packages.bz2 is empty

2006-02-28 Thread Andrew Schulman
> > /etc/cron.daily/apt-cacher fails with:
> >
> > bzcat: Compressed file ends unexpectedly;
> > perhaps it is corrupted?  *Possible* reason follows.
> > bzcat: Success
> > Input file =
> > http.us.debian.org_debian_dists_.._project_experimental_contrib_binary
> >-i386_Packages.bz2, output file = (stdout)
>
> Hi people,
>
> you all reported problems with apt-cacher with symptoms like those
> described above. Please test the new package available in
> http://rootfs.net/debs/apt-cacher_1.5.3_all.deb and report whether the
> problem is solved for you.

/usr/share/apt-cacher/apt-cacher-cleanup.pl works without error using that 
version.

Thanks.
Andrew.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#354428: Bug#354548: apt-cacher: cleanup fails when Packages.bz2 is empty

2006-02-28 Thread Eduard Bloch
#include 
* Andrew Schulman [Mon, Feb 27 2006, 05:19:13AM]:
> Package: apt-cacher
> Version: 1.5.1
> Severity: normal
> 
> /etc/cron.daily/apt-cacher fails with:
> 
> bzcat: Compressed file ends unexpectedly;
> perhaps it is corrupted?  *Possible* reason follows.
> bzcat: Success
> Input file = 
> http.us.debian.org_debian_dists_.._project_experimental_contrib_binary-i386_Packages.bz2,
>  output file = (stdout)

Hi people,

you all reported problems with apt-cacher with symptoms like those
described above. Please test the new package available in
http://rootfs.net/debs/apt-cacher_1.5.3_all.deb and report whether the
problem is solved for you.

The update enjoyed my usual inspections and test parcour, however better
make a backup copy of your cache before installing it:
cp -la /var/cacher/apt-cacher /var/cacher/apt-cacher-backup
(or similar command)

You can run the cleanup script manually as root or the correct user,
/usr/share/apt-cacher/apt-cacher-cleanup.pl .

Eduard.
-- 
 Overfiend: why dont you flame him? you are good at that.
 I have too much else to do.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#354548: apt-cacher: cleanup fails when Packages.bz2 is empty

2006-02-27 Thread Andrew Schulman
Package: apt-cacher
Version: 1.5.1
Severity: normal

/etc/cron.daily/apt-cacher fails with:

bzcat: Compressed file ends unexpectedly;
perhaps it is corrupted?  *Possible* reason follows.
bzcat: Success
Input file = 
http.us.debian.org_debian_dists_.._project_experimental_contrib_binary-i386_Packages.bz2,
 output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

Error processing 
http.us.debian.org_debian_dists_.._project_experimental_contrib_binary-i386_Packages.bz2
 in /var/cache/apt-cacher/packages, cleanup stopped


This error happens when Packages.bz2 is empty, and in these cases
there is always a non-empty Packages.gz file:

$ cd /var/cache/apt-cacher/packages
$ ls -s *.{bz2,gz}
   0 
http.us.debian.org_debian_dists_.._project_experimental_contrib_binary-i386_Packages.bz2
   4 
http.us.debian.org_debian_dists_.._project_experimental_contrib_binary-i386_Packages.gz
   0 
http.us.debian.org_debian_dists_.._project_experimental_main_binary-i386_Packages.bz2
 156 
http.us.debian.org_debian_dists_.._project_experimental_main_binary-i386_Packages.gz
   0 http.us.debian.org_debian_dists_stable_contrib_binary-i386_Packages.bz2
  56 http.us.debian.org_debian_dists_stable_contrib_binary-i386_Packages.gz
   0 http.us.debian.org_debian_dists_stable_main_binary-i386_Packages.bz2
3275 http.us.debian.org_debian_dists_stable_main_binary-i386_Packages.gz
   0 http.us.debian.org_debian_dists_stable_non-free_binary-i386_Packages.bz2
  60 http.us.debian.org_debian_dists_stable_non-free_binary-i386_Packages.gz
  44 http.us.debian.org_debian_dists_testing_contrib_binary-i386_Packages.bz2
2791 http.us.debian.org_debian_dists_testing_main_binary-i386_Packages.bz2
  56 http.us.debian.org_debian_dists_testing_non-free_binary-i386_Packages.bz2
  48 http.us.debian.org_debian_dists_unstable_contrib_binary-i386_Packages.bz2
2967 http.us.debian.org_debian_dists_unstable_main_binary-i386_Packages.bz2
  64 http.us.debian.org_debian_dists_unstable_non-free_binary-i386_Packages.bz2
   0 people.debian.org_~rdonald_nvidia_modules-unstable_i386_Packages.bz2
  12 people.debian.org_~rdonald_nvidia_modules-unstable_i386_Packages.gz
   0 repos.knio.it_dists_testing_contrib_binary-i386_Packages.bz2
   4 repos.knio.it_dists_testing_contrib_binary-i386_Packages.gz
   0 repos.knio.it_dists_testing_main_binary-i386_Packages.bz2
   8 repos.knio.it_dists_testing_main_binary-i386_Packages.gz
   0 repos.knio.it_dists_testing_non-free_binary-i386_Packages.bz2
   4 repos.knio.it_dists_testing_non-free_binary-i386_Packages.gz
   0 repos.knio.it_dists_unstable_contrib_binary-i386_Packages.bz2
   4 repos.knio.it_dists_unstable_contrib_binary-i386_Packages.gz
   0 repos.knio.it_dists_unstable_main_binary-i386_Packages.bz2
   8 repos.knio.it_dists_unstable_main_binary-i386_Packages.gz
   0 repos.knio.it_dists_unstable_non-free_binary-i386_Packages.bz2
   4 repos.knio.it_dists_unstable_non-free_binary-i386_Packages.gz


Note that before I upgraded apt-cacher to unstable, it would continue
the cleanup job after each of these errors, so it was possible to see
that I would get one of these error messages in exactly those cases
where Packages.bz2 was empty.

I don't know why I get a Packages.gz file from some sources, and a
(non-empty) Packages.bz2 from others.  If it's part of apt's
configuration, I can't find it.

I see that there is a .notify file in private/ for each of the empty
Packages.bz2 files.

I thought this bug might be related to #354428, but that looks to be a
more complicated problem.

Thanks,
Andrew.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (400, 'stable'), (200, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt-cacher depends on:
ii  bzip2 1.0.3-2high-quality block-sorting file co
ii  libwww-perl   5.803-4WWW client/server library for Perl
ii  perl  5.8.8-2Larry Wall's Practical Extraction 

apt-cacher recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]