Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Email notifications are delayed

Oleg April 29, 2020

Hi!

Jira Server 8.8.0, CentOS 7, PostgreSQL 11.6. I use corporate internal SMTP server for outgoing emails. Default settings.

When I use email to users from admin page in JIRA it's happening instantly. But notifications about events from tasks are delayed to ~10 - ~15 min.

I read "Troubleshoot slow mail notifications in Jira server" but it not help me.

Mail Queue Service value: "0 * * * * ?"

I see in logs that it's not a network or mail server issue.

Example: event in task 2020-04-27 12:04, I received email 2020-04-27 12:11

In logs

atlassian-jira.log

2020-04-27 12:04:00,000+0600 Caesium-1-4 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:05:00,000+0600 Caesium-1-2 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:06:00,000+0600 Caesium-1-4 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:07:00,000+0600 Caesium-1-4 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:08:00,000+0600 Caesium-1-2 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:09:00,000+0600 Caesium-1-1 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:10:00,000+0600 Caesium-1-3 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:11:00,000+0600 Caesium-1-2 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Attempting to run mail queue service
2020-04-27 12:11:00,001+0600 Caesium-1-2 DEBUG anonymous Mail Queue Service [c.a.j.s.services.mail.MailQueueService] Starting to send items in the mail queue.

 

atlassian-jira-outgoing-mail.log

2020-04-27 12:11:00,001+0600 DEBUG [] Caesium-1-2 anonymous Mail Queue Service Sending: com.atlassian.jira.plugins.inform.batching.PostprocessingMailQueueItem@2587fa8a
2020-04-27 12:11:00,004+0600 DEBUG [] Sending mailitem com.atlassian.jira.plugins.inform.batching.PostprocessingMailQueueItem@2587fa8a anonymous Mail Queue Service Getting transport for protocol [smtp]
2020-04-27 12:11:00,004+0600 DEBUG [] Sending mailitem com.atlassian.jira.plugins.inform.batching.PostprocessingMailQueueItem@2587fa8a anonymous Mail Queue Service Got transport: [smtp://XXXXXXXXXXX]. Connecting
2020-04-27 12:11:00,015+0600 DEBUG [] Sending mailitem com.atlassian.jira.plugins.inform.batching.PostprocessingMailQueueItem@2587fa8a anonymous Mail Queue Service Sending message
2020-04-27 12:11:00,460+0600 DEBUG [] Sending mailitem com.atlassian.jira.plugins.inform.batching.PostprocessingMailQueueItem@2587fa8a anonymous Mail Queue Service Message was sent with Message-Id <JIRA.12321.1587297976000.745.1587967860002@Atlassian.JIRA>

 

1 answer

1 vote
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 30, 2020

Somewhat recently Jira starting batching email notifications in an effort to decrease the chattiness of Jira. Our system's interval is set to 10 minutes. You can check yours by accessing the Batching email notifications page (. or gg and then start typing Batching)

Oleg April 30, 2020

Yes! Thank you! Problem solved!

Like Payne likes this
Roma June 8, 2020

Hi, I have the same problem with the delay of emails with notifications that are delivered in a time that varies from 10/15 minutes up to the hour, how did you fix the problem? (Batching disabled or set a particular value? I currently have 10 minutes) thank you very much

Бородкин Олег
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2020

Hi! Disabled.

Like Roma likes this
Roma June 10, 2020

Hi, after disabling the batch I noticed that the mail queue is emptied randomly between 5 and 11 minutes while it should be emptied after one minute. What can it depend on? what checks can be carried out? Thanks

Oleg June 11, 2020
Roma June 15, 2020

Hi, thank you very much for the link, I made all the checks but unfortunately, from the logs, the "mail queue service" starts on average in the interval that can go from 10 minutes up to 30; what can it depend on? is the delay in service 0 * * * *?

Thanks a lot for other indications

Oleg June 15, 2020

Hi! Yes, I have "0 * * * * ?" in Mail Queue Service and disabled Batch. In log service starts every 1 minute. I didnt do any additional settings.

Like Roma likes this

Suggest an answer

Log in or Sign up to answer