• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

cron jobs not proucing expected output

F

freedominternet

Guest
We have recently moved server havng previously been on Plesk 9.5.4 on Debian. We are now running Plesk 10.1.1 on Centos5.

We have a number of Cron commands setup under various user accounts all of which are critical and must run as scheduled. The cron command is set to:

/usr/bin/php -q /var/www/vhosts/your_domain_name/httpdocs/cron.php

Normally this should run a sequence in php at the end of which an email is produced.

At present, the command works perfectly fine if it is run in SSH but when left to run through the Plesk Cron Tab, we get the following error sent via email instead:

execv("/bin/bash") failed
system error: No such file or directory

Using the following:

/usr/bin/curl http://www.your_domain_name/cron.php

also works in SSH but when left to run automatically as per above, nothing happens.

In both instances, the commands are logged in /var/logs/cron as expected so I know they are at least being executed on time but the expected results never appear.

If anyone can help with this please, it would be most appreciated.
 
It looks like problem in that there is used chrooted /bin/bash
But I'm not sure.
 
It looks like problem in that there is used chrooted /bin/bash
But I'm not sure.

Is there any reason why Plesk would cause such an error but the same command in SSH works fine?

I'm not 100% certain whether this is a Plesk issue or something else however the technician looking after the server seems to think it is being affected by the control panel given that SSH is working.

Could there be some permissions issues preventing the customer's control panel from running commands that would otherwise require root access to the SSH?

Are you able to provide an example of how you would have a PHP script execute using a cron job if the command is different from what I have specified above?
 
Back
Top