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
rootuser 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:
- Connect to the Plesk server via SSH.
- 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
-
Comments
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.
Please sign in to leave a comment.