Daily Maintainance task is not executed automatically

Created:

2016-12-12 03:43:05 UTC

Modified:

2017-08-08 13:33:12 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Daily Maintainance task is not executed automatically

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Daily Maintainance task is not executed automatically. It works without any issues if started manually.

cron.daily script starts (Ubuntu):

# grep CRON /var/log/syslog | grep cron.daily
Jan 12 01:25:01 plesk CRON[31700]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))

On a RedHat-based OS, /var/log/cron is the log to check.

# grep 'Daily Maintainance' /var/log/plesk/panel.log
#

File 50plesk-daily exists and has correct permissions:

# ls -la /etc/cron.daily/50plesk-daily
-rwxr-xr-x 1 root root 445 Jan 6 12:53 /etc/cron.daily/50plesk-daily

Cause

/etc/cron.daily/50plesk-daily file is incorrect.

Resolution

Replace the content of /etc/cron.daily/50plesk-daily file with the following one:

#!/bin/sh
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.

# install_statistics
/opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1

# install_mysqldump
/opt/psa/bin/mysqldump.sh >/dev/null 2>&1

Additional info

DailyMaintainance task is not starting ( How to enable/disable debug logging in Plesk 11.5 and up? ):

Have more questions? Submit a request
Please sign in to leave a comment.