daily cron email with apt-cacher-cleanup.pl flock errors

Bug #174814 reported by Neal McBurnett
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-cacher (Debian)
New
Undecided
Unassigned
apt-cacher (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If apt-cacher has been installed but not yet configured or run (AUTOSTART=0 in /etc/defaults/apt-cacher), a daily email is sent to root looking like this:

Subject: Anacron job 'cron.daily' on tj
/etc/cron.daily/apt-cacher:
flock() on closed filehandle $lck at /usr/share/apt-cacher/apt-cacher-cleanup.pl line 121.
flock() on closed filehandle $lck at /usr/share/apt-cacher/apt-cacher-cleanup.pl line 123.

It is trying to lock the non-existent file /var/cache/apt-cacher/private/exlock

There is better error handling code around a similar flock statement in /usr/share/apt-cacher/apt-cacher-lib.pl
sub set_global_lock

Revision history for this message
Neal McBurnett (nealmcb) wrote :

Oh yeah - I'm using gutsy and apt-cacher 1.5.3

Revision history for this message
mune (mune) wrote :

I have the same email/error reporting; it is quite annoing.

Have you solved?

Thanks

Fede

Revision history for this message
flo-54321 (flo-54321) wrote :

I get the same error on a Debian etch system.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Have you tried apt-cacher-ng?

Revision history for this message
mune (mune) wrote :

I still have Ubuntu gutsy, but some updatee (= I don't know which one) removed the preblem.

Revision history for this message
Neal McBurnett (nealmcb) wrote :

Based on mune's comment I'm marking this "fix-released".

Changed in apt-cacher (Ubuntu):
status: New → Fix Released
Revision history for this message
mune (mune) wrote : Re: [Bug 174814] Re: daily cron email with apt-cacher-cleanup.pl flock errors

Il giorno dom, 21/03/2010 alle 18.30 +0000, Neal McBurnett ha scritto:
> Based on mune's comment I'm marking this "fix-released".
>
> ** Changed in: apt-cacher (Ubuntu)
> Status: New => Fix Released

Yes it's fixed.

--
Fede
________________________________________________________________________
       mune (at) fsfe.org Ing. Federico Munerotto
   home http://www.mune-web.eu
Public key http://www.mune-web.eu/personal/misc/pk/pk.html
Soprusi http://www.soprusi.org/
________________________________________________________________________
      posta firmata digitalmente | digitally signed message
________________________________________________________________________
Just to have it is enough.
Let me put it this way: today is going to be a learning experience.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.