Backup Failed - Two Processes Running at the Same Time?

5 posts / 0 new
Last post
#1 Sun, 01/13/2013 - 22:49
MTUser2012

Backup Failed - Two Processes Running at the Same Time?

I have one scheduled back-up job at 3:30AM to backup all the virtual servers in Virtualmin. I get these emails telling me that backup has failed because there is already a backup process running. Later I get another email that says the backup process completed successfully.

To my knowledge, I only set up one backup with a single start time in the schedule. I don't see where the other process is coming from separated by a few minutes?

Sun, 01/13/2013 - 23:04
andreychek

Howdy,

Hmm... if you log into your server over SSH as root, what does this command output:

crontab -l | grep backup.pl

That should show which backup jobs are scheduled within cron.

-Eric

Sun, 01/13/2013 - 23:08 (Reply to #2)
MTUser2012

Here is the output of the command:

[root@server ~]# crontab -l | grep backup.pl
0,30 3 1,4,7,10,13,16,19,22,25,28 * * /etc/webmin/virtual-server/backup.pl --id 135550676332736
[root@server ~]#
Mon, 01/14/2013 - 08:46
andreychek

Ah, it looks like that one cron job is scheduled to run at both 3:00 and 3:30.

So at 3:00, it would fire off the backup process.

Then, at 3:30, you'd receive an error stating it was already running.

And finally, when the initial backup does actually complete, you'd receive an email stating that it was completed successfully.

To correct that, you can go into the Backup and Restore -> Scheduled Backups -> BACKUP_NAME -> Schedule and reporting, and tweak the scheduled backup time to make sure it's running just once a day.

-Eric

Mon, 01/14/2013 - 10:16 (Reply to #4)
MTUser2012

Thank you! Thank you!

With that information I went back to the complex schedule that I had set up, and now I could see that I must have had the command key held when I clicked 30 in the minutes. Zero is not supposed to be greyed out, it is just the default.

All fixed now. Great. Thank you.

Topic locked