Public bug reported:

Binary package hint: cron

cron is working perfectly for a regular user, but anything I add to
root's crontab doesn't get run.

I tried the forum first, and most of this information is there as well:
http://ubuntuforums.org/showthread.php?p=2591332

I tripple checked that the last character in root's crontab is a line
break.

[EMAIL PROTECTED]:/tmp# dpkg-query -l|grep cron
ii  cron                           3.0pl1-100ubuntu1                          
management of regular background processing
[EMAIL PROTECTED]:/tmp# uname -a
Linux svn 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686 GNU/Linux

[EMAIL PROTECTED]:/tmp$ crontab -l
# m h  dom mon dow   command
* * * * * /bin/echo "Hello World, I'm working" >> /tmp/cronlog.harris.txt
[EMAIL PROTECTED]:/tmp$ sudo -s
[EMAIL PROTECTED]:/tmp# crontab -l
# m h  dom mon dow   command
* * * * * /bin/echo "Hello World, I'm working" >> /tmp/cronlog.txt


[EMAIL PROTECTED]:/tmp# ll
total 28
-rw-r--r-- 1 harris domain users    25 2007-05-02 15:06 cronlog.harris.txt
drwx------ 2 root   root         16384 2007-04-20 06:59 lost+found
-rw-r--r-- 1 root   root          1322 2007-05-02 11:49 svn_backup.erout
-rw-r--r-- 1 root   root             0 2007-05-01 16:23 svn_backup.stout
drwxr-xr-x 3 root   root          4096 2007-05-01 09:18 vmware-config0
[EMAIL PROTECTED]:/tmp# ll
total 28
-rw-r--r-- 1 harris domain users    50 2007-05-02 15:07 cronlog.harris.txt
drwx------ 2 root   root         16384 2007-04-20 06:59 lost+found
-rw-r--r-- 1 root   root          1322 2007-05-02 11:49 svn_backup.erout
-rw-r--r-- 1 root   root             0 2007-05-01 16:23 svn_backup.stout
drwxr-xr-x 3 root   root          4096 2007-05-01 09:18 vmware-config0
[EMAIL PROTECTED]:/tmp# cat cronlog.harris.txt
Hello World, I'm working
Hello World, I'm working
Hello World, I'm working

/etc/cron.allow and /etc/cron.deny don't exist. I uncommented the line
in syslog.conf to log cron to its own file but left the other reference
to cron in the messages section.

/etc/syslog.conf (abreviated w/ only cron related info):
Code:

cron.*                          /var/log/cron.log

*.=info;*.=notice;*.=warn;\
        auth,authpriv.none;\
        cron,daemon.none;\
        mail,news.none          -/var/log/messages

/var/log/messages doesn't show anything related to cron, at least since the 
last time it rolled over.
/var/log/cron.log shows the user tasks running, and it shows when root edits 
crontab, but it doesnt show root's tasks running, nor does it show any cron 
related errors.

Here is a sample of cron.log:
May  4 08:49:01 svn /USR/SBIN/CRON[601]: (drosenbloom) CMD ('/usr/bin/mail -s 
test [EMAIL PROTECTED] < ""')
May  4 08:50:01 svn /USR/SBIN/CRON[607]: (drosenbloom) CMD ('/usr/bin/mail -s 
test [EMAIL PROTECTED] < ""')
May  4 08:51:01 svn /USR/SBIN/CRON[643]: (drosenbloom) CMD ('/usr/bin/mail -s 
test [EMAIL PROTECTED] < ""')
May  4 08:51:58 svn crontab[692]: (drosenbloom) BEGIN EDIT (drosenbloom)
May  4 08:52:01 svn /USR/SBIN/CRON[697]: (drosenbloom) CMD ('/usr/bin/mail -s 
test [EMAIL PROTECTED] < ""')
May  4 08:52:12 svn crontab[692]: (drosenbloom) REPLACE (drosenbloom)
May  4 08:52:12 svn crontab[692]: (drosenbloom) END EDIT (drosenbloom)
May  4 08:53:01 svn /usr/sbin/cron[10224]: (drosenbloom) RELOAD 
(crontabs/drosenbloom)
May  4 09:03:48 svn crontab[756]: (root) BEGIN EDIT (root)
May  4 09:03:58 svn crontab[756]: (root) END EDIT (root)
May  4 09:03:59 svn crontab[761]: (root) BEGIN EDIT (root)
May  4 09:04:06 svn crontab[761]: (root) REPLACE (root)
May  4 09:04:06 svn crontab[761]: (root) END EDIT (root)
May  4 09:05:01 svn /usr/sbin/cron[10224]: (root) RELOAD (crontabs/root)

** Affects: cron (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
root's crontab not running
https://bugs.launchpad.net/bugs/112355
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to