Bug#526431: cron-apt: Updates but does not upgrade. Logfiles
Hi Henry Quoting "Henry Bremridge" : Ola Aghh... :) 1/ Keeping MAILON="always" Commenting out EXITON line Just commenting it out do not help as exit on error is the default. You need to set it to something else, but I do not remember right now the correct value. IF there is an error in the sources.list then cron-apt does not try and upgrade If all lines in sources.list work, then cron-apt works like a dream :-) 2/ All entries are going to syslog There are no files under /var/log/cron-apt Ok. Config file (to avoid doubt) that generated those logfiles was as follows 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" SYSLOGON="output" DEBUG="output" OPTIONS="-o quiet=1" DIFFIGNORE="^\(Get:[[:digit:]]\+\|Hit\|Ign\|Del\|Fetched\|Freed\|Reading\)[[:space:]]" Many thanks for your help You are perfectly welcome // Ola -- Henry On Thu, May 07, 2009 at 08:12:12AM +0200, Ola Lundqvist wrote: Hi Henry I have checked your log file now and that explains what happens. You have the following settings enabled: MAILON=error EXITON=error This means that an email is sent when an error occurs (check your mail settings if you have not got such) and that it should also exit on errors. So this is actually how it should work. I'm closing this bug now. Thanks a lot for the report and the help to collect information. It is always good to refresh the knowledge if my own software. :-) Best regards, // Ola -- --- Inguza Technology AB --- MSc in Information Technology / o...@inguza.comAnnebergsslingan 37\ | o...@debian.org 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 debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#526431: cron-apt: Updates but does not upgrade
Hi Henry In the first line of cron-apt binary you have a line telling #!/bin/bash (or #!/bin/sh). Change that line to #!/bin/bash -x Then run the command and give me the output. cron-apt > logfile.txt 2&>1 Best regards, // Ola Quoting "Henry Bremridge" : Ola Be glad to help if and where I can. When you say add a few "echo something" into cron-apt, please tell me EXACTLY what you want me to do. :) I am happy enough using the command line and I am happy enough to add things to a config file, but todate I have only followed "recipes". -- Henry On Mon, May 04, 2009 at 09:08:44AM +0200, Ola Lundqvist wrote: 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 -- --- Inguza Technology AB --- MSc in Information Technology / o...@inguza.comAnnebergsslingan 37\ | o...@debian.org 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 debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#526431: cron-apt: Updates but does not upgrade. Logfiles
Ola Many thanks for your help I attach - Logfile.txt. This should be the clean system with the failing lines in sources.list removed - Logfile_2.txt This is with a bad entry in sources.list One minor comment: aptitude (apt-get) did not fail because of the problem in the sources.list. If with the bad sources.list, I ran aptitude update aptitude full-upgrade Then all worked, albeit with error messages :) The problem seemed to be when called from cron-apt the notification of error messages blocked the program from running further -- Henry On Mon, May 04, 2009 at 04:08:46PM +0200, Ola Lundqvist wrote: > Hi Henry > > You have found the problem, so it is not so much for me to do. :-) > Basically cron-apt can only do that apt (or aptitude) can do and in this > case it fails because of a problem with the sources.list file. > > A bit interesting that it was not logged though. I think that can be > improved for later releases. I think it is because errors were not sent > to the logging process. > > If you run > apt-get > logfile.txt 2>&1 > > with the -x option enabled as I described in an earlier mail I think I > can tell that for sure. > > Best regards, > > // Ola > + export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin + PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin + UMASK_TIGHT=077 + UMASK_RELAXED=022 + umask 077 + STDOUT= + ALLCONFIGS= + '[' -n '' ']' + '[' -z '' ']' + CONFIG=/etc/cron-apt/config + ALLCONFIGS=/etc/cron-apt/config + LIBDIR=/var/lib/cron-apt + SHAREDIR=/usr/share/cron-apt ++ echo /etc/cron-apt/config ++ sed 's|/|_-_|g' + CONFIGDIRNAME=_-_etc_-_cron-apt_-_config ++ mktemp -d -t cron-apt.XX + TMPDIR=/tmp/cron-apt.R6pmmG + '[' 0 -ne 0 ']' + INITLOG=/tmp/cron-apt.R6pmmG/initlog + RUNERROR=/tmp/cron-apt.R6pmmG/runerror + RUNSYSLOG=/tmp/cron-apt.R6pmmG/runsyslog + RUNLOG=/tmp/cron-apt.R6pmmG/runlog + RUNMAIL=/tmp/cron-apt.R6pmmG/runmail + ACTIONERROR=/tmp/cron-apt.R6pmmG/actionerror + ACTIONSYSLOG=/tmp/cron-apt.R6pmmG/actionsyslog + ACTIONLOG=/tmp/cron-apt.R6pmmG/actionlog + ACTIONMAIL=/tmp/cron-apt.R6pmmG/actionmail + TEMP=/tmp/cron-apt.R6pmmG/temp + MAIL=/tmp/cron-apt.R6pmmG/mail + DIFF=/tmp/cron-apt.R6pmmG/difftemp + STATUS=/tmp/cron-apt.R6pmmG/status + LOCKFILE=/var/lib/cron-apt/lockfile + MAILCHDIR=/var/lib/cron-apt/_-_etc_-_cron-apt_-_config/mailchanges + ERROR=/tmp/cron-apt.R6pmmG/_-_etc_-_cron-apt_-_config-error + ACTIONDIR=/etc/cron-apt/action.d + ACTIONCONFDIR=/etc/cron-apt/config.d + MAILMSGDIR=/etc/cron-apt/mailmsg.d + MAILONMSGSDIR=/etc/cron-apt/mailonmsgs + SYSLOGONMSGSDIR=/etc/cron-apt/syslogonmsgs + REFRAINFILE=/etc/cron-apt/refrain + NOLOCKWARN= + ERRORMSGDIR=/etc/cron-apt/errormsg.d + SYSLOGMSGDIR=/etc/cron-apt/syslogmsg.d + LOGMSGDIR=/etc/cron-apt/logmsg.d + LOG=/var/log/cron-apt/log + DIFFONCHANGES=prepend + MAILTO=root + SYSLOGON=upgrade + MAILON=error + EXITON=error + DEBUG=verbose + OPTIONS='-o quiet=1' + DONTRUN= + RUNSLEEP=3600 + MINTMPDIRSIZE=10 + APTCOMMAND=/usr/bin/apt-get + HOSTNAME= + DIFFIGNORE= + DIFFONCHANGES=prepend + export DEBIAN_FRONTEND=noninteractive + DEBIAN_FRONTEND=noninteractive + export LANG=C + LANG=C + export LC_ALL=C + LC_ALL=C + for cfg in '$ALLCONFIGS' + '[' -f /etc/cron-apt/config ']' + . /etc/cron-apt/config ++ APTCOMMAND=/usr/bin/aptitude ++ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin ++ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin ++ 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 ++ SYSLOGON=output ++ EXITON=error ++ DEBUG=output ++ OPTIONS='-o quiet=1' ++ DIFFIGNORE='^\(Get:[[:digit:]]\+\|Hit\|Ign\|Del\|Fetched\|Freed\|Reading\)[[:space:]]' + '[' -t 0 ']' + RUNIMMEDIATELY=yes + test yes = yes + RUNSLEEP= + . /usr/share/cron-apt/functions + '[' -d /var/lib/cron-apt/_-_etc_-_cron-apt_-_config ']' + '[' -d /var/lib/cron-apt/_-_etc_-_cron-apt_-_config/mailchanges ']' + '[' -e /etc/cron-apt/refrain ']' + checktmpsize ++ stat --file-system --format=%S /tmp/cron-apt.R6pmmG + SSIZE=1024 ++ stat --file-system --format=%a /tmp/cron-apt.R6pmmG + FSCOUNT=358358 + '[' 358358 -lt 33554432 ']' + '[' 358358 -lt 10 ']' ++ date + echo 'CRON-APT RUN [/etc/cron-apt/config]: Mon May 4 15:15:55 BST 2009' + '[' -n '' ']' + checktmpsize ++ stat --file-system --format=%S /tmp/cron-apt.R6pmmG + SSIZE=1024 ++ stat --file-system --format=%a /tmp/cron-apt.R6pmmG + FSCOUNT=358357 + '[' 358357 -lt 33554432 ']' + '[' 358357 -lt 10 ']' + '[' -x /usr/bin/dotlockfile ']' + dotlockfile -l -p -r 10 /var/lib/cron-apt/lockfile + cp /tmp/cron-apt.R6pmmG/initlog /tmp/cron-apt.R6pmmG/runmail + cp /tmp/cron-apt.R6pmmG/initlog /tmp/cron-apt.R6pmmG/runlog + cp /tmp/cron-apt.R6pmmG/initlog /tmp/cron-apt.R6pmmG/runsyslog + cp /tmp/cron-apt.R6pmmG/initl
Bug#526431: cron-apt: Updates but does not upgrade. Logfiles
Hi Henry Yes the error messages may be the cause of this blocking. Interesting note. I'll look into this later today. Best regards, // Ola Quoting henryb...@fsfe.org: Ola Many thanks for your help I attach - Logfile.txt. This should be the clean system with the failing lines in sources.list removed - Logfile_2.txt This is with a bad entry in sources.list One minor comment: aptitude (apt-get) did not fail because of the problem in the sources.list. If with the bad sources.list, I ran aptitude update aptitude full-upgrade Then all worked, albeit with error messages :) The problem seemed to be when called from cron-apt the notification of error messages blocked the program from running further -- Henry On Mon, May 04, 2009 at 04:08:46PM +0200, Ola Lundqvist wrote: Hi Henry You have found the problem, so it is not so much for me to do. :-) Basically cron-apt can only do that apt (or aptitude) can do and in this case it fails because of a problem with the sources.list file. A bit interesting that it was not logged though. I think that can be improved for later releases. I think it is because errors were not sent to the logging process. If you run apt-get > logfile.txt 2>&1 with the -x option enabled as I described in an earlier mail I think I can tell that for sure. Best regards, // Ola -- --- Inguza Technology AB --- MSc in Information Technology / o...@inguza.comAnnebergsslingan 37\ | o...@debian.org 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 debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#526431: cron-apt: Updates but does not upgrade. Further data
Hi Henry You have found the problem, so it is not so much for me to do. :-) Basically cron-apt can only do that apt (or aptitude) can do and in this case it fails because of a problem with the sources.list file. A bit interesting that it was not logged though. I think that can be improved for later releases. I think it is because errors were not sent to the logging process. If you run apt-get > logfile.txt 2>&1 with the -x option enabled as I described in an earlier mail I think I can tell that for sure. Best regards, // Ola Quoting "Henry Bremridge" : Ola Apologies was a bit too quick to send the earlier message. 1/ If any line in /etc/apt/sources.list fails then the upgrade fails 2/ If sources.list "works" then cron-apt works 3/ I have tried this with both apt-get and aptitude My current system now is as follows - removed the secure-testing lines - reusing aptitude Again please advise if you wish me try anything else -- Henry Photocopies or faxes of my signature are not binding. This email has been signed with an electronic signature in accordance with subsection 7(3) of the Electronic Communications Act 2000. Digital Key Signature: GPG RSA 0xFB447AA1 Mon May 4 14:47:39 BST 2009 On Mon, May 04, 2009 at 02:40:36PM +0100, henryb...@fsfe.org wrote: Ola Solved I think. Second run worked: see below Just to be clear .. :) In file /usr/sbin/cron-apt I changed line 1 from #!/bin/sh to #!/bin/bash -x Then in root I ran the command cron-apt > logfile.txt 2&>1 First Run Logfile.txt: no contents /etc/cron-apt/log CRON-APT RUN [2]: Mon May 4 14:09:06 BST 2009 CRON-APT ACTION: 0-update CRON-APT LINE: /usr/bin/apt-get update -o quiet=2 W: Failed to fetch http://www.debian-multimedia.org/dists/testing/Release Unable to find expected entry contrib/binary-i386/Packages in Meta-index file (malformed Release file?) W: Failed to fetch http://secure-testing.debian.net/dists/testing/updates/main/binary-i386/Packages 404 Not Found W: Failed to fetch http://secure-testing.debian.net/dists/testing/updates/contrib/binary-i386/Packages 404 Not Found W: Failed to fetch http://secure-testing.debian.net/dists/testing/updates/non-free/binary-i386/Packages 404 Not Found W: Failed to fetch http://secure-testing.debian.net/dists/squeeze/updates/main/binary-i386/Packages 404 Not Found E: Some index files failed to download, they have been ignored, or old ones used instead. Second Run I changed the sources.list file removing the failed to fetch lines Then ran the command again here logfile.txt was again empty /etc/cron-apt/log was as follows CRON-APT RUN [2]: Mon May 4 14:25:09 BST 2009 CRON-APT ACTION: 0-update CRON-APT LINE: /usr/bin/apt-get update -o quiet=2 CRON-APT ACTION: 3-download CRON-APT LINE: /usr/bin/apt-get autoclean -y Reading package lists... Building dependency tree... Reading state information... CRON-APT LINE: /usr/bin/apt-get dist-upgrade -y -o APT::Get::Show-Upgraded=true Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ie all seemed to work At the moment I have kept the secure-testing lines removed Let me know what you want me to do next -- Henry On Mon, May 04, 2009 at 03:00:44PM +0200, Ola Lundqvist wrote: > Hi Henry > > In the first line of cron-apt binary you have a line telling #!/bin/bash > (or #!/bin/sh). > > Change that line to > #!/bin/bash -x > > Then run the command and give me the output. > > cron-apt > logfile.txt 2&>1 > > Best regards, > > // Ola > > Quoting "Henry Bremridge" : > >> Ola >> >> Be glad to help if and where I can. >> >> When you say add a few "echo something" into cron-apt, please tell me >> EXACTLY what you want me to do. >> >> :) I am happy enough using the command line and I am happy enough to add >> things to a config file, but todate I have only followed "recipes". >> >> -- >> Henry >> >> On Mon, May 04, 2009 at 09:08:44AM +0200, Ola Lundqvist wrote: >>> 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 >> > > > > -- > --- Inguza Technology AB --- MSc in Information Technology > / o...@inguza.comAnnebergsslingan 37\ > | o...@debian.org 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 / > -
Bug#526431: cron-apt: Updates but does not upgrade
Ola Be glad to help if and where I can. When you say add a few "echo something" into cron-apt, please tell me EXACTLY what you want me to do. :) I am happy enough using the command line and I am happy enough to add things to a config file, but todate I have only followed "recipes". -- Henry On Mon, May 04, 2009 at 09:08:44AM +0200, Ola Lundqvist wrote: > 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 signature.asc Description: Digital signature
Bug#526431: cron-apt: Updates but does not upgrade
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 henryb...@fsfe.org: 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, henryb...@fsfe.org 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-105management of regular background p > ii liblockfile1 1.08-3NFS-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 --- / o...@debian.org Annebergsslingan 37 \ | o...@inguza.com 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 / o...@inguza.comAnnebergsslingan 37\ | o...@debian.org 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 debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#526431: cron-apt: Updates but does not upgrade
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, henryb...@fsfe.org 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-105management of regular > > background p > > ii liblockfile1 1.08-3NFS-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 --- > / o...@debian.org Annebergsslingan 37 \ > | o...@inguza.com 654 65 KARLSTAD | > | http://inguza.com/ +46 (0)70-332 1551 | > \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / > --- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#526431: cron-apt: Updates but does not upgrade
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, henryb...@fsfe.org wrote: > > 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-105management of regular background > p > ii liblockfile1 1.08-3NFS-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 --- / o...@debian.org Annebergsslingan 37 \ | o...@inguza.com 654 65 KARLSTAD | | http://inguza.com/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#526431: cron-apt: Updates but does not upgrade
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-105management of regular background p ii liblockfile1 1.08-3NFS-safe locking library, includes ii mailx 1:20081101-2 Transitional package for mailx ren cron-apt suggests no packages. -- no debconf information -- Henry -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org