Articles in this section

Scheduled Tasks list is empty in Plesk

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Scheduled Tasks list is empty in Plesk at Tools & Settings > Scheduled Tasks (Cron jobs).
  • The root user is not available in the System user drop-down list when creating a new scheduled task.

Cause

A security policy to forbid the creation of scheduled tasks and/or event handlers running on behalf of the root user is enabled on the server.

This policy hides all scheduled tasks executed by root and psaadm users. Though the tasks are not visible, but they are still executed.

Resolution

To disable this security policy, apply the following steps:

  1. Connect to the Plesk server via SSH.
  2. Remove the file /usr/local/psa/var/root.crontab.lock:
    • on CentOS/RHEL-based distributions:

      # rm -f /usr/local/psa/var/root.crontab.lock

    • on Debian/Ubuntu-based distributions:

      # rm -f /opt/psa/var/root.crontab.lock

Was this article helpful?

Comments

1 comment
Date Votes
  • This doesn't work:

    The file /opt/psa/var/root.crontab.lock is not available in my Plesk (Ubuntu 22).

    Scheduled tasks disappear every two days, and I need to restore from a backup.

    0

Please sign in to leave a comment.