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>
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! Disabled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Examine your logs as I described. Maybe it will help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.