Jump to content

Last Automation Run: Never NEEDS ATTENTION


Recommended Posts

Hello.

I am having some sort of cronjob error it seems.

On the main Dashboard i can see the error " Last Automation Run: Never NEEDS ATTENTION"

Also in the "systemhealthandupdates" page there is an error :

"System Cron Tasks The system cron does not appear to have completed successfully within the last 24 hours. Check your activity logs or learn more about enabling the cron in our documentation."

 

I have gone through other posts regarding this issue but i couldn't find a solution.

In whmcs cron page it shows " Cron Status Ok Last Run: 06/06/2020 17:23"

I have tried activating the "Display Errors" checkbox in General settings->other tab, then running : /usr/bin/php -q /home2/myuser/whmcsdata/crons/cron.php --force -vvv

Then i checked the "System Activity Log" and it had "Domain Sync Cron: Completed".

But the error was still there.

 

What else should i try? and why does this happening?

Thanks

Edited by mycheapnet
Added tags
Link to comment
Share on other sites

Hello ChrisD,

Thank you for your reply.

I have ran the command, here are the results:

07/06/2020 07:12	
Domain Sync Cron: Completed
System	
07/06/2020 07:12	
Automated Task: Starting Domain Status Synchronisation
System	
07/06/2020 07:12	
Automated Task: Starting Domain Transfer Status Synchronisation
System	
07/06/2020 07:12	
Automated Task: Starting Tenant Usage Metrics
System	
07/06/2020 07:11	
General Settings Modified. Changes made: Display Errors Enabled.

The error remains.

Link to comment
Share on other sites

46 minutes ago, WHMCS ChrisD said:

What version of WHMCS are you running?  The fact its not outputting anything indicates the cron is not running, if you navigate in your WHMCS Admin Area to Setup > Automation Settings does your cron command you are using match what it shows on there also its -F not --F

My version is 7.10.2

The cron command is the same as in the Automation Settings.

Running it with -F changed nothing.

 

Also if the cron is not running, how did i get "Domain Sync Cron: Completed"  after running the command?

Edited by mycheapnet
Link to comment
Share on other sites

I figured this out.

To anyone who encounter with the same problem:

Make sure that "max_execution_time" is not lower than 300, mine had the value of 30 and i have changed it to 600.

Increase your "memory_limit", mine had 128mb (which is the bare minimum) and i have set it to 512mb.

To change those settings i used the "PHP Selector" addon in my cpanel.

 

Also you have to wait to the time that was set in your "Scheduling" section of the "Automation Settings" in your whmcs.

Only at that time the daily automation will go off and the error will be gone.

Prier to that time it will work fine for you but the error will remain.

Edited by mycheapnet
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