Jump to content

The system cron does not appear to have completed successfully within the last 24 hours.


Recommended Posts

I moved my crons dir up one directory non-public , but keep getting this error in the system health section.

 

My config has the path:

 

$crons_dir = '/home/username/crons/'; #Username was replaced with the username.

 

 

And in the crons dir I have the file config.php with the variable whmcspath pointing to the path of the whmcs install; My cron is setup firing 0 5 * * * php -q /home/username/crons/cron.php

 

(replaced username with proper user)

 

Any ideas why I keep getting this message in system health? This is latest version 7.1.0. (release.1)

Link to comment
Share on other sites

Hi Chris D.,

 

I have the same issue/ message that the daily system cron did not execute as expected.

 

My Health Status Summary says that the system cron has completed successfully within the last 24 hours and I do receive an email that all cron automation tasks have completed successfully. Automation settings show cron status ok. However, I also receive another email saying that the daily system cron did not execute as expected - WHMCS Daily System Cron Attention Needed.

 

I did set the cron job to run every hour and I've increased my maximum execution time and memory limit.

When running the cron manually via SSH, I get the following:

 

Executing Application Queue:

0/1

Ticket escalation rule

1/1

 

Executing System Queue:

No tasks to execute in queue.

(OK) complete

 

Followed by several ‘command not found’ entries.

 

I'm running out of ideas. Is the cron executing or not and why do I get mixed reports?

 

Thanks for your help.

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
Hi Chris D.,

 

I have the same issue/ message that the daily system cron did not execute as expected.

 

My Health Status Summary says that the system cron has completed successfully within the last 24 hours and I do receive an email that all cron automation tasks have completed successfully. Automation settings show cron status ok. However, I also receive another email saying that the daily system cron did not execute as expected - WHMCS Daily System Cron Attention Needed.

 

I did set the cron job to run every hour and I've increased my maximum execution time and memory limit.

When running the cron manually via SSH, I get the following:

 

Executing Application Queue:

0/1

Ticket escalation rule

1/1

 

Executing System Queue:

No tasks to execute in queue.

(OK) complete

 

Followed by several ‘command not found’ entries.

 

I'm running out of ideas. Is the cron executing or not and why do I get mixed reports?

 

Thanks for your help.

 

add this to the cron after /cron.php

skip --TicketEscalations >/dev/null 2>&1

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