Jump to content

Cron Issues


Recommended Posts

I'm having issues with cron. Get the following errors in WHMCS

System Cron Tasks
The system cron does not appear to have completed successfully within the last 24 hours.
 
I ran this: 
php -q /home/USER/public_html/portal/crons/cron.php all --force -vvv

No issues and cron did its job.. But the next day, i get the same error above.

 

** System **

I have full root access.

cPanel/WHM - 76.0.12

WHMCS - 7.6.1

PHP 7.2 

 ionCube PHP Loader (enabled) - v10.2.4

 

 

Link to comment
Share on other sites

Hey Darren,

When you ran the force cron command, did it fully complete? Did you try enabling Display Errors and running the command to see if any errors come up?

It is also good to check your cron in your control panel to ensure it is running every 5 minutes. Some crons are only running once a day which can cause the daily cron tasks to not complete properly.

Another possible issue could be a time zone conflict. If you navigate to Setup > Automation Settings in your WHMCS admin area, the time in the green box should be within 5 minutes of the time in the upper right hand corner of your admin area. If it's not, this could mean your cron is not set to run every 5 minutes, or that there is a time zone conflict.

If you're still having issues after checking these things, feel free to open a ticket with us including your WHMCS admin and control panel logins. Our staff will be happy to take a look.

Link to comment
Share on other sites

  • 4 weeks later...

I'm having this exact same issue, except the PHP version is 7.0.
This is on a multi-php server, and the default is php 5.6, and this site was changed to php 7.0. As soon as that was done, the daily task fails via cron, though all other tasks work and running the cron via CLI completes without error. It worked fine on 5.6. The cron does appear to be calling the 5.6 php.ini file, but since it worked then, that shouldn't make any difference. I think.

Puzzling. Ticket in. 

Edited by bear
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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