kikloo Posted June 27, 2014 Report Posted June 27, 2014 Hi, Running cron every 5 mins is a very big problem. It keeps on sending email even if no action has been taken etc. It should only send email if there is something generated or some error or something. Thanks. Quote
0 Michael Posted June 27, 2014 Report Posted June 27, 2014 You need to explain your set-up because I've had no issues with the cron running every five minutes, but it depends on your server / blesta cron settings.. Quote
0 kikloo Posted June 27, 2014 Author Report Posted June 27, 2014 My setup is a standard setup. I don't know what to tell you, simple blesta running cron every 5 mins. which keeps on sending an email with details. Also cron is some how generating duplicate invoices. For eg. I added a service and also invoiced it while adding. Then added 2 more services and merged their details in the already existing invoice. All fine but cron ran and generated another invoice for the 2 more services i had added and got added into the invoice that got created earlier. Dunno what is happening. Quote
0 Tyson Posted June 27, 2014 Report Posted June 27, 2014 We really need more information to help determine what's going on with your system. How many cron jobs do you have setup for Blesta? Have you checked your cron logs to see what tasks have been run and what they've done? What emails have been sent that you think should not have been? The client mail log shows emails the client has received. You can check the company email templates for a list of templates, and determine which templates were used to send those emails. Michael 1 Quote
0 Greg-Mega Posted June 27, 2014 Report Posted June 27, 2014 Could be way off the mark here but is your cron set up in cPanel? you're probably receiving the cron email notification from that? it's at the very top of the cron jobs screen. http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/CronJobs#Adding a cron email This sends you an email every time a cron job is executed and includes its output if any, just get rid of it (leave blank and select update) to set it as blank. vaesir and Michael 2 Quote
0 Paul Posted June 28, 2014 Report Posted June 28, 2014 I think Greg-Mega is on target. You can add the following to the end of your cron to stop the emails >/dev/null 2>&1Make sure there's a space at the end of your cron before you add this. Quote
0 kikloo Posted June 29, 2014 Author Report Posted June 29, 2014 Hi, But then I won't see get the info on what blesta is doing. I need to know what blesta has done. As there is no other way to find out. Thanks. Quote
0 Paul Posted June 29, 2014 Report Posted June 29, 2014 Hi, But then I won't see get the info on what blesta is doing. I need to know what blesta has done. As there is no other way to find out. Thanks. Tools > Logs Michael 1 Quote
0 Michael Posted June 29, 2014 Report Posted June 29, 2014 Hi, But then I won't see get the info on what blesta is doing. I need to know what blesta has done. As there is no other way to find out. Thanks. As paul stated the logs are there for you, and also you can see if a cron job ran as on the automation page you can see the last run date and time Quote
0 kikloo Posted July 2, 2014 Author Report Posted July 2, 2014 Hi, Do you get emails from cron and if yes have you also disabled them ? Do you even check the cron email sent by Blesta every 5 mins ? Thanks. Quote
0 Michael Posted July 2, 2014 Report Posted July 2, 2014 Hi, Do you get emails from cron and if yes have you also disabled them ? Do you even check the cron email sent by Blesta every 5 mins ? Thanks. I don't because I don't have a email on the cron job. kikloo 1 Quote
Question
kikloo
Hi,
Running cron every 5 mins is a very big problem. It keeps on sending email even if no action has been taken etc. It should only send email if there is something generated or some error or something.
Thanks.
10 answers to this question
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.