cancel
Showing results for 
Search instead for 
Did you mean: 

Cronjob makes website crash after upgrading

Cronjob makes website crash after upgrading

Hello again,

I recently upgraded from Magento 1.9.3.2 to 1.9.3.6. There is now a serious issue with the cronjob. The cron seems to load indefinitely until the whole website gets unreachable ..

 

Here is the error I get in the system.log:

 

2017-11-08T16:40:19+00:00 ERR (3): Warning: shell_exec(): Unable to execute '/bin/sh '/html/development/my-site/cron.sh' 'cron.php' -malways 1 \> /dev/null 2\>\&1 \&'  in /html/development/my-site/cron.php on line 68

I temporarily disabled the cron with this line in the cron.php file:

 

$isShellDisabled = true;

The cronjob did work in the previous version. I don't unterstand what is causing this .. any idea ?

 

Thanks!

1 REPLY 1

Re: Cronjob makes website crash after upgrading

Hi @mardz,

 

Can you check if PHP safe_mode is Off & shell_exec() is not included in disable_functions in php.ini?
Then, you could check if cron.php has permissions to be executable and the cron command is properly written.