Daily task failed with error: run-parts: /etc/cron.daily/50plesk-daily exited with return code 1

Created:

2016-11-16 12:47:48 UTC

Modified:

2017-08-08 13:31:13 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Daily task failed with error: run-parts: /etc/cron.daily/50plesk-daily exited with return code 1

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  • Daily task failed with the following error:

    /etc/cron.daily/50plesk-daily:
    + /opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php
    + /opt/psa/bin/mysqldump.sh
    run-parts: /etc/cron.daily/50plesk-daily exited with return code 1
  • Cannot log in to MySQL:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa
    ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)

Cause

Existing MySQL configuration file in /root directory.

Resolution

  • Check if there any .my.cnf file in /root directory:

    # ls -la /root | grep cnf
    -rw-r--r-- 1 root root 39 Aug 14 20:04 .my.cnf
  • Move this file:

    # mv /root/.my.cnf /root/.my.cnf.old
  • Make sure that it is possible to log in to MySQL database using the following command:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa
Have more questions? Submit a request
Please sign in to leave a comment.