Jump to content

Cron not completing; stops after 'Starting Processing Domain Renewal Notices'


Recommended Posts

Hi,

 

We are having some problems with the WHMCS cron. We are currently running it with the debug flag, and piping output to a log file. Each night, the cron seems to run up until its last output in the cron log file: "Starting Processing Domain Renewal Notices". After that, nothing. No 'Complete' message, yet no error messages either.

 

Does anyone have any advice for troubleshooting, other than enabling error reporting in our General settings? This is not an option for us.

 

As an aside, it would be great if we could override WHMCS' aggressive error handling. I'd love to be able to enable a level of error_reporting and error_logging without also enabling display_errors...

 

Thanks in advance.

Link to comment
Share on other sites

do you have SSH access? If so, try the following

#1: Grab your php cron path (setup -> automation settings -> 'Create the following Cron Job using PHP'

 

#2: Alter that and run via ssh.. See the following code:

php -q /home/user/public_html/crons/cron.php debug

 

If you post the output here, that's fine, just make sure you go through and remove any uniquely identifiable information in there, such as paths (/home/user/etc), usernames, etc.

Link to comment
Share on other sites

Hi,

 

We are already running the cron with the debug flag.

 

Furthermore i was able to use a tick function hack to force error logging, which has revealed no fatal errors when the script ends. Plenty of warnings, notices etc but no fatal error or exception whatsoever. Which leads me to believe there is some code doing an exit; or die; somewhere.

 

The last line in the cron log is:

Starting Processing Domain Renewal Notices (Time: 0 Memory: 0)

 

What is meant to happen at this point? Is it likely to run any custom code or invoke any of our custom hooks?

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