Jump to content

Question

Posted

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

  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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>&1

Make sure there's a space at the end of your cron before you add this.

  • 0
Posted

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.

  • 0
Posted
  On 6/29/2014 at 3:07 PM, kikloo said:

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

  • 0
Posted
  On 6/29/2014 at 3:07 PM, kikloo said:

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 :)

  • 0
Posted

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.

  • 0
Posted
  On 7/2/2014 at 6:08 AM, kikloo said:

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. 

 

post-38-0-64745500-1404304615_thumb.png

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...