1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How to debug my daily cronjob

Discussion in 'Plesk for Linux - 8.x and Older' started by schnezler, Jun 17, 2007.

  1. schnezler

    schnezler Guest

    First some information about my system:
    I'm on a virtual server which comes by default with SuSE 9.3 Professional and a standard Plesk 8.0 installation which I've successfully upgraded to 8.1.1 using the Plesk updater.

    I think I have the same problem. I can't say exactly, but it maybe happening since I installed automatic backups or additional cron tasks for my domain.

    If I understand that right, the daily cron is executed by this shell script

    /usr/local/psa/bin/run-parts.sh /etc/psa/plesk-cron.daily

    The report that I've received by mail is:

    *** /etc/psa/plesk-cron.daily/50plesk-daily Failed (code=255) ***

    I've looked into the file 50plesk-daily and found these lines:


    # install_statistics
    /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1

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

    # install_autoreport daily
    /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/report/autoreport.php --auto daily >/dev/null 2>&1

    Because I'm relatively new to Linux, it seems impossible to me to find out if there is a log for this cron that tells me which line caused the error or if I have to replace >/dev/null by a log file myself to check for that?

    The easiest way I can imagine with my little knowledge - that's what I'm going to try after I've finished this post - is to run these lines from the shell myself to check for errors.

    Maybe you can tell me, where should I look first?

    I'm also wondering what code 255 is...