Hi Henry

Interesting. I have to look into this. If you want to help you can put in a few "echo something" lines into cron-apt to determine where it exits.

Best regards,

// Ola

Quoting [email protected]:



On Sun, May 03, 2009 at 06:07:30PM +0200, Ola Lundqvist wrote:
Hi Henry

It must be so that the aptitude command make the program fail for some reason. Please try with apt-get instead of aptitude as command. Apt-get is much better at
handling non-interactive sessions than aptitude.

Best regards,

// Ola

On Fri, May 01, 2009 at 08:24:46AM +0100, [email protected] wrote:


Last night I commented out APTCOMMAND=/usr/bin/aptitude and replaced it
with /usr/bin/apt-get

No other changes

Update ran
Upgrade did not: this morning "aptitude full-upgrade" installed new
packages at the command prompt

ie no effect of the change.

--
Henry



> Package: cron-apt
> Version: 0.6.8
> Severity: normal
>
>
> After updating from Lenny to Squeeze last week, I realised that while packages
> were being downloaded, cron-apt was not upgrading any packages. Cron-apt
> was working normally on Lenny
>
> My /etc/config file is the following
>
>    APTCOMMAND=/usr/bin/aptitude
>    RUNSLEEP=3600
>    MINTMPDIRSIZE=10
>    ACTIONDIR="/etc/cron-apt/action.d"
>    NOLOCKWARN=""
>    ERROR="/var/log/cron-apt/error"
>    TEMP="/var/log/cron-apt/temp"
>    LOG="/var/log/cron-apt/log"
>    MAIL="/var/log/cron-apt/mail"
>    MAILTO="root"
>    MAILON="always"
>    DEBUG="output"
>    OPTIONS="-o quiet=1"
> DIFFIGNORE="^\(Get:[[:digit:]]\+\|Hit\|Ign\|Del\|Fetched\|Freed\|Reading\)[[:space:]]"
>
> My Var/log/cron-apt directory contains a file "log". No contents
>
> /var/log/syslog contains the following
>
> May 1 04:51:11 newdebian cron-apt: CRON-APT RUN [/etc/cron-apt/config]: Fri May 1 04:00:02 BST 2009 > May 1 04:51:11 newdebian cron-apt: CRON-APT SLEEP: 3008, Fri May 1 04:50:10 BST 2009
> May  1 04:51:11 newdebian cron-apt: CRON-APT ACTION: 0-update
> May 1 04:51:11 newdebian cron-apt: CRON-APT LINE: /usr/bin/aptitude update -o quiet=2
> May  1 04:51:11 newdebian cron-apt: Reading package lists...
>
>
> /etc/cron-apt/action.d/
>    0-update contains
>            update -o quiet=2
>    3-download contains
>            autoclean -y
>            dist-upgrade -y -o APT::Get::Show-Upgraded=true
>
> Ie it seems that the cron-apt is running the update but not the download
> commands. I have tried fiddling with commands but the output remains the
> same
>
> Not sure if this is a bug, but any assistance would be much appreciated
>
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.26-2-486
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages cron-apt depends on:
> ii  apt                           0.7.20.2   Advanced front-end for dpkg
>
> Versions of packages cron-apt recommends:
> ii  bsd-mailx [mailx]  8.1.2-0.20081101cvs-2 A simple mail user agent
> ii cron 3.0pl1-105 management of regular background p > ii liblockfile1 1.08-3 NFS-safe locking library, includes > ii mailx 1:20081101-2 Transitional package for mailx ren
>
> cron-apt suggests no packages.
>
> -- no debconf information
>
>
> --
> Henry
>
>
>

--
 --------------------- Ola Lundqvist ---------------------------
/  [email protected]                     Annebergsslingan 37      \
|  [email protected]                      654 65 KARLSTAD          |
|  http://inguza.com/                  +46 (0)70-332 1551       |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------





--
 --- Inguza Technology AB --- MSc in Information Technology ----
/  [email protected]                    Annebergsslingan 37        \
|  [email protected]                   654 65 KARLSTAD            |
|  http://inguza.com/                Mobile: +46 (0)70-332 1551 |
\  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