Jump to content

WHMCS cron problem


mihdm

Recommended Posts

Hi all.

I have one trouble with my WHMCS cron.

 

He first worked only by half, then stopped.

When we noticed the problem I launch it 2 times manually from the browser.

After the first time, nothing happened, but after the second it worked until the end and sent a report to the Email.

 

The next day, when it launched itself - it worked 20 times, and sent to the each client the email notifications about invoice.

 

The next day the same thing happened. Please tell me what the problem is.

 

Thank U.

Link to comment
Share on other sites

is your WHMCS admin area use the default name "admin"? if yes then you need to change it to something else to prevent everyone from calling your cron.php file multiple times, check the following docs:

http://docs.whmcs.com/Further_Security_Steps#Change_your_WHMCS_Admin_Folder_Name

http://docs.whmcs.com/Further_Security_Steps#Move_the_crons_folder

 

also make sure that you set the cron job command to run once per day..

another thing is to check the Activity Log for any error due while the cron.php is working...

Link to comment
Share on other sites

Thank U, but all your suggestions are made.. And cron job command 100% run once per day

 

Here is a cut of WHMCS action log (Log going upwards):

.
.
.
[22/02/2015 08:09] Cron Job: Starting Generating Invoices
[22/02/2015 08:09] Cron Job: Done
[22/02/2015 08:08] Cron Job: Starting Updating Product Pricing for Current Exchange Rates
[22/02/2015 08:08] Cron Job: Running Pre-Cron Hooks
[22/02/2015 08:08] Cron Job: Starting


[22/02/2015 08:07] Cron Job: Terminating Service - Service ID: 2812
.
.
.
[22/02/2015 07:59] Cron Job: ERROR: Manual Suspension Required - (Curl Error) couldn't connect to host - code: 7
[22/02/2015 07:58] Cron Job: Suspending Service - Service ID: 2815
[22/02/2015 07:58] Cron Job: ERROR: Manual Suspension Required - (Curl Error) couldn't connect to host - code: 7
[22/02/2015 07:58] Cron Job: Running Usage Stats Update for Server ID 2
[22/02/2015 07:58] Cron Job: Running Usage Stats Update for Server ID 23
[22/02/2015 07:57] Cron Job: Running Usage Stats Update for Server ID 20
[22/02/2015 07:57] Cron Job: Running Usage Stats Update for Server ID 7
[22/02/2015 07:57] Cron Job: Running Usage Stats Update for Server ID 24
[22/02/2015 07:57] Cron Job: Starting Updating Disk & Bandwidth Usage Stats
[22/02/2015 07:57] Cron Job: Starting Processing Email Marketer Rules
[22/02/2015 07:57] Cron Job: Processed 0 Pending Affiliate Payments
[22/02/2015 07:57] Cron Job: Starting Processing Delayed Affiliate Commissions
[22/02/2015 07:57] Cron Job: Processed 0 Ticket Closures
[22/02/2015 07:56] Cron Job: Starting Auto Closing Inactive Tickets
[22/02/2015 07:56] Cron Job: Processed 0 Terminations
[22/02/2015 07:56] Cron Job: Starting Performing Automated Fixed Term Service Terminations
[22/02/2015 07:56] Cron Job: Processed 0 Terminations
.
.
.
[22/02/2015 07:56] Cron Job: Starting Processing Overdue Suspensions
[22/02/2015 07:55] Cron Job: Sent 0 Notices
[22/02/2015 07:55] Cron Job: Starting Processing Domain Renewal Notices
[22/02/2015 07:55] Cron Job: Sent 22 Reminders
[22/02/2015 07:55] Cron Job: Sent Third Notice to User 
.
.
.
[22/02/2015 07:54] Cron Job: Sent First Notice to User 
[22/02/2015 07:54] Cron Job: Sent 18 Unpaid Invoice Payment Reminders to Invoice Numbers 9709,9712,9713,9715,9716,9717,9725,9726,9738,9740,9741,9742,9743,9744,9745,9746,9748,9752
[22/02/2015 07:54] Cron Job: Terminating Service - Service ID: 334
[22/02/2015 07:54] Cron Job: ERROR: Manual Terminate Required - (Curl Error) couldn't connect to host - code: 7
[22/02/2015 07:54] Cron Job: Starting Processing Invoice Reminder Notices
[22/02/2015 07:54] Cron Job: Starting Processing Credit Card Charges
[22/02/2015 07:54] Cron Job: Late Invoice Fees added to 0 Invoices
[22/02/2015 07:54] Cron Job: Starting Applying Late Fees
[22/02/2015 07:54] Cron Job: 0 Invoices Created
[22/02/2015 07:54] Cron Job: Starting Generating Invoices


[22/02/2015 07:54] Cron Job: Done
[22/02/2015 07:53] Cron Job: Starting Updating Product Pricing for Current Exchange Rates
[22/02/2015 07:53] Cron Job: Running Pre-Cron Hooks
[22/02/2015 07:53] Cron Job: Starting

Is it normal that after "Cron Job: Starting" goes "Cron Job: Done" and after "Done" goes cron actions ?

Link to comment
Share on other sites

Thank you for help. Now it fixed and cron worked only one time.

 

But there is another problem.. Cron worked only by half, and stopped..

Here is a cut of action log:

25/02/2015 04:11	Email Sent to User (Upcoming Domain Renewal Notice) - User ID: 2136
25/02/2015 04:11	Domain Renewed Successfully - Domain ID: 2622 - Domain: domain
25/02/2015 04:11	Running Automatic Domain Renewal on Payment
25/02/2015 04:11	Email Sent to User (Invoice Payment Confirmation) - User ID: 2136
25/02/2015 04:11	Invoice Marked Paid - Invoice ID: 9936
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2136
25/02/2015 04:11	Created Invoice - Invoice ID: 9936
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 1019
25/02/2015 04:11	Created Invoice - Invoice ID: 9935
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2202
25/02/2015 04:11	Created Invoice - Invoice ID: 9934
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2316
25/02/2015 04:11	Created Invoice - Invoice ID: 9933
25/02/2015 04:11	Email Sent to User (Invoice Payment Confirmation) - User ID: 452
25/02/2015 04:11	Invoice Marked Paid - Invoice ID: 9932
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 452
25/02/2015 04:11	Credit Automatically Applied at Invoice Creation - Invoice ID: 9932 - Amount: 36.00
25/02/2015 04:11	Created Invoice - Invoice ID: 9932
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2572
25/02/2015 04:11	Credit Automatically Applied at Invoice Creation - Invoice ID: 9931 - Amount: 0.12
25/02/2015 04:11	Created Invoice - Invoice ID: 9931
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 1338
25/02/2015 04:11	Created Invoice - Invoice ID: 9930
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2091
25/02/2015 04:11	Created Invoice - Invoice ID: 9929
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 1275
25/02/2015 04:11	Created Invoice - Invoice ID: 9928
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2593
25/02/2015 04:11	Created Invoice - Invoice ID: 9927
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2385
25/02/2015 04:11	Created Invoice - Invoice ID: 9926
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 2073
25/02/2015 04:11	Created Invoice - Invoice ID: 9925
25/02/2015 04:11	Email Sent to User (Invoice Created) - User ID: 1001
25/02/2015 04:10	Created Invoice - Invoice ID: 9924
25/02/2015 04:10	Email Sent to User (Invoice Created) - User ID: 2279
25/02/2015 04:10	Created Invoice - Invoice ID: 9923
25/02/2015 04:10	Cron Job: Starting Generating Invoices
25/02/2015 04:10	Cron Job: Done
25/02/2015 04:10	Cron Job: Starting Updating Product Pricing for Current Exchange Rates
25/02/2015 04:10	Cron Job: Running Pre-Cron Hooks
25/02/2015 04:10	Cron Job: Starting

 

After "25/02/2015 04:11 Email Sent to User (Upcoming Domain Renewal Notice) - User ID: 2136" nothing happened.

Could you help me please..?

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