Applicable to:
- Plesk for Linux
Symptoms
- Access to the server over shell is set to Forbidden or /bin/bash (chrooted) for a subscription user at Domains > example.com > Hosting & DNS > Hosting.
-
A scheduled task, which is set up to run from under this subscription user, fails with one of the following error messages:
PLESK_ERROR: Task /opt/plesk/php/7.2/bin/php -q /var/www/vhosts/example.com/wp-cron.php completed with error in 0 seconds, output:
-: /opt/plesk/php/7.2/bin/php: No such file or directory
PLESK_ERROR: user with id=11112 and name=`<user_name>` not found in chrooted passwd file
system error: No such file or directory
PLESK_ERROR: /var/www/vhosts/example.com/httpdocs/app/cake: /usr/bin/env: bad interpreter: No such file or directory
PLESK_ERROR: Task "php -q /var/www/vhosts/example.com/crons/cron.php" successfully completed in 0 seconds, output:
The file /var/www/vhosts/example.com/crons/cron.php is corrupted.
PLESK_ERROR: Task "wget --spider -O - https://example.com/api_provider/cron/order >/dev/null 2>&1" completed with error in 0 seconds.
Cause
System utilities (curl, wget, php, etc.) are not available for the subscription user either because this user does not have any shell enabled or the utility (which is used in the scheduled task) is not added to chrooted environment.
Resolution
Solution I:
Provide the system user with access to the server over SSH (for example, /bin/bash) at Domains > example.com > Hosting.
Solution II:
If access to the server over shell is set to /bin/bash (chrooted), add a required utility to chrooted environment.
Comments
Please sign in to leave a comment.