pjs32 Posted February 8, 2008 Share Posted February 8, 2008 After the cron job runs we usually receive a email with a breakdown on what has happened - ie. 1 failed payment,1 suspension etc. But after upgrading to version 3.6 we are not receiving them -anyone else having the same problem? (We receive emails ok from the system but just not the cron breakdown ones) 0 Quote Link to comment Share on other sites More sharing options...
AVeal Posted February 8, 2008 Share Posted February 8, 2008 I haven't seemed to of received it either. However, you can view what emails were sent and such within the Email Message log. EDIT! Ignore me, I've received it.... It must be early morning blindness.... 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted February 8, 2008 Author Share Posted February 8, 2008 I have looked at the logs and there is no sign off it. 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted February 8, 2008 Share Posted February 8, 2008 I've been fighting with this problem already in the 3.5.1 version. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 8, 2008 WHMCS CEO Share Posted February 8, 2008 Often the cause of not getting the cron email report is it timing out. If you have a lot of accounts due for suspension or termination, or a low PHP max_execution setting it can easily timeout during the processing. Matt 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted February 8, 2008 Author Share Posted February 8, 2008 Thanks Matt - increasing the PHP max_execution fixed it! 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted February 8, 2008 Share Posted February 8, 2008 Matt, Is it possible to get the actions of this cron scipt logged? It would be very easy to debug it's actions if I could see what's causing the problems 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted February 9, 2008 Share Posted February 9, 2008 Hi, If there's someone who is still in problems with getting the cronjob activity report you may want to test these solutions. These steps may sound as basic stuff but they helped me. 1. If you want to override the PHP-settings only locally create a .htaccess file where you want to increase the max_execution_time and just to make sure, also the memory_limit value: php_value max_execution_time 400 php_value memory_limit 64M Change the values 400 and 64 to whatever you want. 2. I also changed the cron command a bit and I know use php -f /folder/folder/cron.php 0 Quote Link to comment Share on other sites More sharing options...
matiasoporto Posted February 9, 2008 Share Posted February 9, 2008 After upgrading to version 3.6 the same problem occurs to me that pjs32 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 10, 2008 Share Posted February 10, 2008 After upgrading to version 3.6 the same problem occurs to me that pjs32 Did you try the solution Matt posted? Often the cause of not getting the cron email report is it timing out. If you have a lot of accounts due for suspension or termination, or a low PHP max_execution setting it can easily timeout during the processing. 0 Quote Link to comment Share on other sites More sharing options...
X9Kevin Posted February 10, 2008 Share Posted February 10, 2008 I have ran into this same issue and I have all these php and mysql settings set very high. All set at 240 on a high powered vps where there is only our company site on it, so a busy server or used up resources could not be a problem. There is no reason I should need it set all the way up to 400 when before the upgrade this feature was working just fine. Also I noticed that I can not getting the order notification sent either. Something is just not right here with 3.6. I think this needs to be looked into further IMO. 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted February 10, 2008 Share Posted February 10, 2008 We are running/testing on 3.5.1 still and noticed that the Cron Job email was received but the test invoices to be sent out were not sent, BUT the BCC emails of what was supposed to be sent out WAS received. Very weird. I logged in a couple of hours later and force sent the Invoice as admin to the test user and it WAS then received, so there are no spam blocks stopping things either. Has anyone else seen similar things? Cheers, Paul 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted February 10, 2008 Share Posted February 10, 2008 From which version did you update to 3.6? I've had this problem since 3.5.1 and the weird part is that sometimes I can recieve the activity report and sometimes not. I mostly get it when I have just changed the time when the cron runs. 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted February 10, 2008 Share Posted February 10, 2008 One last notice to help to debug the code if there's really something wrong with the script. I noticed that I can only get the report delievered to my email if there has been none or only 1 activity done during the cronjob. For example if there's 2 due payment notices going on one day, I have to run the cronjob twice to get the email. I'm not sure i during the first run only one of the 2 notices are delievered to the customers, I have to look into that. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 10, 2008 WHMCS CEO Share Posted February 10, 2008 The only issue will be it timing out as I posted earlier in the topic. The fact that it's intermittent and only happens when there's multiple things to do would also support that. The cron does need some time to run when interfacing with remote servers. Matt 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted February 10, 2008 Share Posted February 10, 2008 We are running/testing on 3.5.1 still and noticed that the Cron Job email was received but the test invoices to be sent out were not sent, BUT the BCC emails of what was supposed to be sent out WAS received. Very weird. I logged in a couple of hours later and force sent the Invoice as admin to the test user and it WAS then received, so there are no spam blocks stopping things either. Has anyone else seen similar things? Cheers, Paul That sounds like an issue with your MTA rather than WHMCS - if the BCC was received then the email left WHMCS properly. 0 Quote Link to comment Share on other sites More sharing options...
Iceman Posted February 10, 2008 Share Posted February 10, 2008 That sounds like an issue with your MTA rather than WHMCS - if the BCC was received then the email left WHMCS properly. We are going to run some more tests to another couple of test users with differing email addresses and mail server locations. It may have been a weird coincidence. We will know more in a few days time. Cheers, Paul 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted February 10, 2008 Share Posted February 10, 2008 The only issue will be it timing out as I posted earlier in the topic. The fact that it's intermittent and only happens when there's multiple things to do would also support that. The cron does need some time to run when interfacing with remote servers. Matt Matt, could the problem be that the server is trying to connect with remote servers that are not configured right to whmcs? We had to choose just some of the control panels WHMCS supported to the server because the control panel we use is not supported by WHMCS(There was no option that the server doesn't use any control panel). At the moment we have set Directadmin as our control panel at the server section even though we don't use it. I just took off the automatic account suspension and some other features. I was wondering if the cron-script was trying to suspend some hosting account on the server thinking it's using directadmin and therefore it times out? Could this be possible? Because otherwise the max_executing_time should be enough, it's set to 400 seconds. 0 Quote Link to comment Share on other sites More sharing options...
Brett Posted February 10, 2008 Share Posted February 10, 2008 Since the upgrade, I have not received my cron report either. I have my script timeout set to 120 and I have not launched my site, so there should not be any maintenance going on. 0 Quote Link to comment Share on other sites More sharing options...
X9Kevin Posted February 10, 2008 Share Posted February 10, 2008 Ya I see no reason because of an upgrade all these values need to be adjusted if they worked fine in 3.5.1. Maybe instead of telling us to change these settings, Matt need to look at what has changed and fix the issue within the 3.6 system itself. 0 Quote Link to comment Share on other sites More sharing options...
tracktor Posted February 11, 2008 Share Posted February 11, 2008 Since the upgrade, I have not received my cron report either. I have my script timeout set to 120 and I have not launched my site, so there should not be any maintenance going on. I have the same issue 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted February 11, 2008 Share Posted February 11, 2008 I just noticed our cron didn't run today but was fine yesterday. The only thing that has been changed is that we have added a centovacast server. Before this, localhost was the only box whmc was looking at. Ill try and up the execution time and see what happens. Although the server is on the same vlan so responses should be fairly quick! 0 Quote Link to comment Share on other sites More sharing options...
X9Kevin Posted February 11, 2008 Share Posted February 11, 2008 I have raised all the PHP values to 400 and still no cron email. This is not a php setting issue. There is something wrong in the 3.6. Seems odd that all of a sudden most everyone is having this problem. 0 Quote Link to comment Share on other sites More sharing options...
railto Posted February 11, 2008 Share Posted February 11, 2008 our cron runs fine, not a problem at all, and yes, we are on 3.6 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 11, 2008 WHMCS CEO Share Posted February 11, 2008 There are no issues running the cron for the vast majority of users and there is no bug as far as I can tell - receiving the report intermittently all points towards timeouts. If you are having problems, you should open a ticket. Matt 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.