Jump to content

Cron Hanging at Automated Task: Starting SSL Sync After 7.8.1 Upgrade


Recommended Posts

Our Cron is hanging at Automated Task: Starting SSL Sync every day. Cron will not finish unless we manually run 

php -q /home/our-site-path/public_html/our-install/crons/cron.php all -F -vvv

Upon doing this, the cron will finish, but the next day it will hang again. Remind you, we did in fact update to the latest version 7.8.1

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @Revolution,

If the task is only failing when running automatically, we'll need to log the output to a file for review.

Enable Setup > General Settings > Other tab > Display Errors.

Then update the cron command to log output to a file:

php -q /path/to/cron.php -vvv >> /path/to/crons/crondebug.txt

Replace /path/to/ with your cron job command.

 

Next time the problem occurs, check the crondebug.txt file for an error.

Link to comment
Share on other sites

  • 6 months later...

I'm experiencing the same problem with the latest update. The  Cron is getting stuck at Automated Task: Starting SSL Sync every day.   the task is only failing when running automatically.

Does anyone have a solution to this please?

Edited by jackshreeve
asked if anyone solved this problem
Link to comment
Share on other sites

I managed to fix this by setting the permissions of cron.php to 755

I also made sure that the cron command was using the correct version of PHP

/opt/cpanel/ea-php73/root/usr/bin/php -q /home/PATH/TO/crons/cron.php all -F

n the above example, replace “ea-php99” with the PHP version assigned to the domain you wish to use. Look in the MultiPHP Manager for the actual PHP version assigned to a domain.

Edited by WHMCS ChrisD
Removed hyperlink at users request
Link to comment
Share on other sites

 
 
 
 
🤓
3
On 9/03/2020 at 5:51 AM, jackshreeve said:

I managed to fix this by setting the permissions of cron.php to 755

I also made sure that the cron command was using the correct version of PHP

/opt/cpanel/ea-php73/root/usr/bin/php -q /home/PATH/TO/crons/cron.php all -F

n the above example, replace “ea-php99” with the PHP version assigned to the domain you wish to use. Look in the MultiPHP Manager for the actual PHP version assigned to a domain.

Actually I've found out the cron command should not have the -F command. Otherwise this fix worked for me.

e.g.

/opt/cpanel/ea-php73/root/usr/bin/php -q /home/PATH/TO/crons/cron.php all

 

Edited by WHMCS ChrisD
Removed hyperlink from quote
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated