Jump to content

Cron hanging up on CC processing


Dev@SH

Recommended Posts

Question:

 

Subject : Our daily cron job hangs up but not in a reproducible way.

 

Recently - we have noticed that our daily cron is having issues with completing. After examining the cron log (whmcscron.log), it appears that the cron job is failing while processing payments. The log does not state that is where it is getting hung up but the log looks like:

 

" Capture Successful (Time: 0.59 Memory: 70.55)

Processing Capture for Inv "

 

and

 

" Capture Successful (Time: 0.43 Memory: 66.90)

Processing Capture for Invoice #302561 (Time: 0 Memory:

 

The server has plenty of memory for PHP (4GB) and the cron to process and the max execution time is set to 18000.

 

As you can see, we enabled the 'debug' flag in the crontab but it really does not provide the best information.

 

Now - if we manually run the cron via cli, it seems to work just fine.

 

Again - there is no rhyme or reason as to when this will fail. We noticed this happening more and more frequently.

 

So, what are the next steps? Experienced something similar?

 

 

WHMCS version : 6.2.0

Edited by Dev@SH
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

As there output doesn't contain a PHP error, it's likely to be a code error, but does the problem always occur on invoices assigned to a particular payment gateway?

 

In my experience, the most likely cause would be some other kind of server usage limitation system that prevents long running scripts via crons. This is seemingly validated by the fact the corn runs fine from the command line.

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