Plesk

Plesk administrator receives notification: your virus bases are not up to date

Symptoms

  1. Plesk administrator receives notification that Plesk Premium antivirus is not up to date:

    Dear Administrator, your virus bases are not up to date. Please run updating script manually or use cron for this purpose.

  2. The below information can be found in cron log:

    # grep "locked by another anacron" /var/log/cron
    # anacron[1401]: Job `cron.daily' locked by another anacron - skipping

  3. Statistics calculation task is running on the server:

    drweb 5949 0.0 0.0 386016 5808 ? Ss 2017 12:42 /opt/drweb/drwebd.real
    root 3475 0.0 0.0 19060 540 ? Ss 2017 0:00 /usr/sbin/anacron -s
    root 10926 0.0 0.0 106084 580 ? SN 2017 0:00 _ /bin/sh /etc/cron.daily/50plesk-daily
    root 12354 0.0 0.0 358892 1272 ? SN 2017 0:00 | _ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php
    /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/sbin/statistics --calculate-lis ,198,199,200,201,202,203,204,205,206,207,208,209,627,628,211,213,215,216,221,222,223,224,225,226,227,229,230,231,232,233,235,236,237,239,240 no-webstat
    root 12364 0.0 0.0 76420 1092 ? SN 2017 0:26 | _ /usr/local/psa/admin/bin/statistics_collector

Cause

Tasks in /etc/cron.daily are executed sequentially so antivirus updates task waits for Plesk Daily Maintenance task (50plesk-daily) to complete. On a server with significant number of subscriptions, daily statistics calculation task runs too long delaying the antivirus database update.

Resolution

Note: the "cron.daily locked by another anacron - skipping" log entry is expected and does not mean any issue

  1. Log in to Plesk server via SSH
  2. Update Plesk Premium antivirus bases:

    # /etc/cron.daily/drweb-update

  3. Create a symlink to start the database update task before the Daily Maintenance script:

    # ln -s /etc/cron.daily/drweb-update /etc/cron.daily/40drweb-update

Exit mobile version