- 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 enabled 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 will be fixed in future Plesk updates.
As a workaround:
1. Log in to Plesk server using SSH .
2. Download a patched copy of
# wget https://support.plesk.com/hc/en-us/article_attachments/115002390274/cron_task_executor.py.tar.gz
3. Unpack the patch (the existing file will be overwritten):
# tar -zxvf cron_task_executor.py.tar.gz