Jump to content

Cron job not finishing


sloop

Recommended Posts

Ever since moving our whmcs install to a new server, the daily cron.php job dies after it starts running, and does not finish properly. All other whmcs functions and features work fine.

 

The server is running debian 6 64bit, with PHP 5.3.14. memory_limit set to 512MB and no other security features like suhosin.

 

When running cron.php from the command line, it will run for a few seconds and then die with no output at all. The WHMCS activity log does show that it started processing and it will charge 1 invoice before it stops:

 

example output:

 

07/01/2012 17:42	 Invoice Marked Paid - Invoice ID: xx2635    	System	
07/01/2012 17:42	 Added Invoice Payment - Invoice ID: xx2635      	System	
07/01/2012 17:42	 Added Transaction - Transaction ID: xx2091       	System	
07/01/2012 17:42	 Cron Job: Credit Card Processing     	System	
07/01/2012 17:42	 Cron Job: Adding Late Fees         	System	
07/01/2012 17:42	 Cron Job: Generating Invoices 	System	
07/01/2012 17:42	 Cron Job: Updating Currency Exchange Rates 	System	
07/01/2012 17:42	 Cron Job: Starting            System

 

If I run it again, it does the same thing, except processing for the next unpaid invoice

 

Any ideas of what else to check or how to debug? I have opened a ticket w/ WHMCS support but they have not been able to help so far.

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

The first thing to try is enabling display errors (http://forum.whmcs.com/showthread.php?21317-I-m-getting-a-blank-or-partially-loaded-page) then run the cron manually by visiting the cron.php file in your browser. If an error's occurring it should be displayed on-screen for you to resolve.

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