Article ID: 1709, created on Feb 19, 2007, last review on May 10, 2014

  • Applies to:
  • Plesk for Linux/Unix

Symptoms

When I click "WatchDog" icon in Modules, the following error message cames out.

   ERROR: WDCPExc
    Up LevelUp Level
    Changing of crontab configuration failed.
    0: /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php:143
        set_cronjob_task(string '/usr/local/psa/libexec/modules/watchdog/cp/secur-check', string 'root', array)
    1: /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php:39
        set_secur_scan_cronjob(string 'weekly')
    2: /usr/local/psa/admin/plib/modules/watchdog/configure.php:26
        require_once(string '/usr/local/psa/admin/plib/modules/watchdog/configure.php')
    3: /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php:218
        wd__require_once(string 'configure.php')
    4: /usr/local/psa/admin/plib/modules/watchdog/preaction.php:24
        require_once(string '/usr/local/psa/admin/plib/modules/watchdog/preaction.php')
    5: /usr/local/psa/admin/htdocs/modules/watchdog/index.php:13



Resolution

Login as root to the server, open root user crontab with the 'crontab -e' command and make sure that the records' syntax is correct and there are no no any  special time specification "nicknames" like:

       @reboot
       @yearly
       @annually
       @monthly
       @weekly
       @daily
       @hourly

Plesk does not support them. Please use their alternatives, see "man 5 crontab":

       @yearly    :    Run once a year, ie.  "0 0 1 1 *".
       @annually  :    Run once a year, ie.  "0 0 1 1 *".
       @monthly   :    Run once a month, ie. "0 0 1 * *".
       @weekly    :    Run once a week, ie.  "0 0 * * 0".
       @daily     :    Run once a day, ie.   "0 0 * * *".
       @hourly    :    Run once an hour, ie. "0 * * * *".


If you need to set a scheduled task you can also do it through Plesk CP on the Server -> Scheduled Tasks page.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF