- Plesk for Linux
Note: This article has the reference to the issue with the fix available:
- #PPPM-7018 "On CloudLinux servers with enabled cagefs,
the cron job for renewing Let’s Encrypt certificates
failed with message ‘this program can not be run as root’."
- Plesk Onyx 17.5.3 Update 24 02 October 2017 (Linux)
WordPress instances or Let's Encrypt certificates scheduled update task at Tools & Settings > Scheduled tasks fails when started manually:
PLESK_ERROR: Task "/usr/local/psa/admin/bin/php -dauto_prepend_file=/usr/local/psa/admin/plib/sdk.php '/usr/local/psa/admin/plib/modules/wp-toolkit/scripts/instances-auto-update.php" completed with error in 0 seconds, output:This program can not be run as root
WordPress instance with Automatic updates set to minor is not updated (on the following example, to version 4.1.18):
CageFS is installed on the server:
# /usr/sbin/cagefsctl --cagefs-status
Each cron_task_executor runs inside CageFS and cannot be executed under root privileges.
This is Plesk bug with ID PPPM-7018 which was fixed in Plesk Onyx 17.5.3 Update 24.
For Plesk Onyx 17.5, install the latest Plesk micro-updates .
For Plesk Onyx 17.0 and earlier Plesk versions, consider upgrading to the latest Plesk version .
As a workaround:
Log in to Plesk server using SSH.
Download a patched copy of
# wget https://support.plesk.com/hc/en-us/article_attachments/115002390274/cron_task_executor.py.tar.gz
Unpack the patch (the existing file will be overwritten):
# tar -zxvf cron_task_executor.py.tar.gz