mihdm Posted February 22, 2015 Share Posted February 22, 2015 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. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted February 22, 2015 Share Posted February 22, 2015 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... 0 Quote Link to comment Share on other sites More sharing options...
mihdm Posted February 23, 2015 Author Share Posted February 23, 2015 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 ? 0 Quote Link to comment Share on other sites More sharing options...
mihdm Posted February 23, 2015 Author Share Posted February 23, 2015 I noticed that every 15 minutes script runs again Maybe it can help... 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted February 23, 2015 Share Posted February 23, 2015 something not correct, first for the "(Curl Error) couldn't connect to host - code: 7" is related to the configuration of one of your Servers.. 0 Quote Link to comment Share on other sites More sharing options...
mihdm Posted February 25, 2015 Author Share Posted February 25, 2015 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..? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted February 25, 2015 Share Posted February 25, 2015 don't you get any errors? try to access Admin Area > Utilities > System > PHP Info , and search for " Memory_limit " what the value set for it? 0 Quote Link to comment Share on other sites More sharing options...
mihdm Posted February 25, 2015 Author Share Posted February 25, 2015 No, i didn't got any errors at WHMCS action log or from cron. Script just stopped Here are a values from PHP info: memory_limit 1024M 1024M We tried to raise memory limits from 512 to 1024, but it didn't help.. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 26, 2015 WHMCS Support Manager Share Posted February 26, 2015 Hi, Please enable the Setup > General Settings > Other tab > display Errors option. Then run the cron manually by visiting the cron.php file in your browser. Do you see any errors output on screen, or does the cron job complete successfully now? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.