Webmin CronJobs not running

I setup a backup cronjob via webmin and it is not working. I’m using OpenSuse 11.4 and Webmin 1.550.
I can run the job manually in Webmin and the backup succeeds and I have made sure to include direct paths to the folders I’m backing up. When I put “crontab -l” in the terminal I get this:

myusername@linux-pb0l:~> crontab -l
no crontab for (my user name)

When I put “sudo crontab -l” in the terminal I get this:


myusername@linux-pb0l:~> sudo crontab -l
root's password:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXX5mqQ5r installed on Wed May  4 16:36:17 2011)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# (Cronie version 4.2)
# 58 13 * * * /etc/webmin/cluster-cron/cron.pl 1299878787-8864
40 16 * * * /etc/webmin/fsdump/backup.pl 180531299905516

Is webmin failing to write the cron tabs correctly? Any thought?
Thanks!
Ben

backup.pl contains:

#!/usr/bin/perl
open(CONF, "/etc/webmin/miniserv.conf");
while(<CONF>) {
        $root = $1 if (/^root=(.*)/);
        }
close(CONF);
$ENV{'PERLLIB'} = "$root";
$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
$ENV{'WEBMIN_VAR'} = "/var/webmin";
chdir("$root/fsdump");
exec("$root/fsdump/backup.pl", @ARGV) || die "Failed to run $root/fsdump/backup.pl : $!";

The 180531299905516 file contains:

follow=
remount=0
beforefok=
rsh=/usr/bin/ssh
notape=0
file=/media/RD1000-500GB/testBackup.tar
reverify=1
dir=/home/myusername/Documents
email=me@email.com
after=umount /media/RD1000-500GB
xdev=0
id=180531299905516
extra=
gzip=0
fs=tar
enabled=1
links=0
before=
tabs=1
pass=mypassword
subject=Backup Successful
multi=0
afterfok=
label=TestBackup
update=0
exclude=
mins=40
hours=16
months=*
days=*
weekdays=*

Is the cron daemon actually running? Do

pidof cron

pidof cron returned this:

myusername@linux-pb0l:~> pidof cron
2797

I also checked in System services and the cron daemon says yes with no “*”.

I think I figured it out. It was AppArmor blocking it. Well 2 things were going on.

  1. Originaly AppArmor was blocking the cronjob.
  2. After I deactivated AppArmor I did a kernel update. The update erased “ntfs” from etc/filesystems.txt, which caused my backup to fail even though AppArmor had been deactivated.

Conclusion:
Once I deactivated AppArmor and restored “ntfs” to filesystem.txt, the backups have started to work fine! (FYI my backup drive is an ntfs dell RD100).
Refer to this link to see an alternative to deactivating AppArmor all together:
Samba setup help