Error when trying to stop system backup cron

btaylor

Verified User
Joined
Jun 21, 2011
Messages
18
When trying to stop a system backup through Admin Tools->System backup->Uncheck "Use Cron for Backup" I am getting the following error.
----------------------------------------------------------------------------------
Error

Details

Error setting the cron: "./data/admin/root_cron.tmp":1: bad day-of-week errors in crontab file, can't install.
----------------------------------------------------------------------------------
The cron is set up to the default settings: Minute 0, Hour 5, Day of Month *, Month *, Day of Week 0

It is not set up any differently than other servers in which I can check and uncheck the box without issue.

Any help is appreciated.
 
/etc/crontab is also set up normally.

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
 
That command is not returning anything.

[root@server ~]# crontab -u admin -l
[root@server ~]#
 
Hi, yes I actually looked at that before posting this. There is no root_cron.tmp file. This file is also not on the other servers I compared to that are having no issues.

I also tried creating the file but it doesn't help.

Also it seems to just be the system backup. I can create and remove cron jobs in Admin/Backup Transfer without issue.
 
Debugging output not helpful from what I can tell but here it is:

Sockets::handshake - begin
Sockets::handshake - end
/CMD_SYSTEM_BACKUP
Post string: action=when&minute=0&hour=5&dayofmonth=*&month=*&dayofweek=0
Checking referer https://server.domain.com:2222/CMD_SYSTEM_BACKUP to server.domain.com:2222
Command::doCommand(/CMD_SYSTEM_BACKUP)
Command::doCommand(/CMD_SYSTEM_BACKUP) : finished
Command::run: finished /CMD_SYSTEM_BACKUP

The rest of the thread isn't helpful as I am using normal encoding and there didn't seem to be a resolution lol
 
I actually already tried that. Tried changing day of week only and a combination of different variables for all of them with the same result each time. Debug mode showed the same output except with the Post string variables changing with what I changed it to.
 
[root@server directadmin]# crontab -u diradmin -l
0 4 * * 2 echo "action=backup&id=2&owner=admin" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da
0 4 * * 4 echo "action=backup&id=3&owner=admin" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da
0 4 * * 6 echo "action=backup&id=4&owner=admin" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da
0 5 28 * * echo -e "action=backup&id=1&owner=afterdark2" >> /usr/local/directadmin/data/task.queue.da; /bin/chmod 600 /usr/local/directadmin/data/task.queue.da

[root@server directadmin]# crontab -l
0 5 * * 0 /usr/local/sysbk/sysbk -q
*/3 * * * /etc/rc.d/init.d/vm-pop3d restart
 
Code:
crontab -e

to update it. Or

Code:
cd /var/spool/cron/

modify /var/spool/cron/root

and re-start crond
 
Awesome! I was able to find that cron job in /var/spool/cron/root

Once i added the extra * I was able to stop the system backup without error.

Thanks so much for all your help guys!
 
Back
Top