Hi

I fully agree.

Patch is welcome.

Regards,

// Ola

On Tue, Mar 21, 2006 at 10:57:39AM +0100, Marc Haber wrote:
> Package: cron-apt
> Version: 0.4.5
> Severity: minor
> 
> Hi,
> 
> I am running cron-apt on an hourly basis. This might lead to the
> following situation:
> 
> Prerequisite: One of the apt servers is down causing apt-get update to
> take a _loooong_ time.
> nn:00    cron-apt is started by cron, sleep time 3540 seconds
> nn:59    apt-get update starts, stalls due to the apt server being down
> nn+1:00  cron-apt is started by cron, sleep time 120 seconds
> nn+1:02  apt-get update starts, reports "can't obtain apt lock" due to
>          the still running apt from the last round
> 
> This happens surprisingly often and increases the number of e-mails
> generated since the "can't obtain apt lock" error message completely
> messes up diff handling.
> 
> cron-apt should be changed to do the following
> 
> sleep
> take out a lock
> check if lock successful
> if lock successful, continue
> if lock unsuccessful, terminate with a log message, but not messing up
> the diffs
> 
> Greetings
> Marc
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'stable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.16-zgsrv
> Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
> 
> Versions of packages cron-apt depends on:
> ii  apt                           0.6.43.3   Advanced front-end for dpkg
> ii  debianutils                   2.15.3     Miscellaneous utilities specific 
> t
> 
> Versions of packages cron-apt recommends:
> ii  liblockfile1     1.06.1                  NFS-safe locking library, 
> includes
> ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
> 
> -- no debconf information
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


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

Reply via email to