Health Check: Mail Error Queue

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

To use the health check for a mail error queue, upgrade the ATST plugin to at least version 1.53.2.

About the health check

This health check ensures the healthiness of email sending in Jira Data Center. Emails that couldn't be delivered to a recipient will appear in a mail error queue. Email sending is unhealthy when a mail error queue has any emails. 

In Jira Data Center, if you get a notification about a failed health check for a mail error queue but see that the check passed on the System tools page, this might indicate failures on another node. In this situation, we highly recommend checking the mail error queue on each node separately. This is a known issue and we’re working on improving the behavior of this health check and your experience with Jira.

Understanding the results

Jira Server

Icon

Result

What this means

 Pass

There are no emails in an error queue.

All emails have been delivered to recipients.

 Warning

There is a number of emails in the error queue.

An exact number of emails couldn't be delivered to recipients, and Jira won't retry sending. An administrator should troubleshoot the issue. Learn more in Troubleshooting.

Jira Data Center

Icon

Result

What this means

 Pass

There are no emails in the error queue on a particular node. If you get a notification about a failing health check for a mail error queue, verify the other nodes.

All emails have been delivered to recipients from this particular node.

 Warning

There is a number of emails in an error queue on a particular node.

An exact number couldn't be delivered to recipients from this particular node, and Jira won't retry sending. An administrator should troubleshoot the issue. Learn more in Troubleshooting.

What happens if I ignore the warning?

Emails in a mail error queue won't be sent to recipients. This means that some users may never get a Jira email notification intended for them.

Troubleshooting

As an immediate mitigation step, you might consider resending the mail error queue. To do so, go to Administration  and select System. Then, go to Mail queue and Error queue. Emails in a mail error queue won't be sent to recipients. This means that some users may never get a Jira email notification intended for them.

  • Take this step only as a temporary workaround since it won't resolve the underlying issue with sending emails.

  • In some situations, manually resending the mail error queue won't help, and emails might still pile up in the error queue. In these cases, don't try to resend the error queue several times. This action will generate more threads for Jira to process, causing potential performance issues.

To investigate the reason why issues are piling up in the Mail Error queue, we recommend checking the atlassian-jira-outgoing-mail.log file and check the KB articles listed below based on the errors found in these logs:

Providing data to Atlassian Support

If you still can't troubleshoot and fix the problem, create a support ticket at support.atlassian.com and attach the requested information. To get support:

  1. Go to Administration  > System > Logging and profiling.

    1. In the Outgoing mail section, select Enable.

    2. Select Enable debugging.

    3. Select Configure logging level for another package.

    4. Use com.atlassian.jira.service as the package name and select "DEBUG" for the Logging level.

  2. Wait for about 15 minutes so that we can collect enough logs.

  3. Go to Administration  > System > Troubleshooting and support tools > Create support zip.

    1. Select Customize zip, then select Thread dumps, and select Save.

    2. Select Create zip and download the support zip. In case you have a  Data Center cluster, repeat this step for each node.

  4. Run the following SQL query on the Jira database:

    select * from rundetails where job_id = 'com.atlassian.jira.service.JiraService:10000';
  5. Attach to the support ticket:

    1. The support zips.

    2. The result of the SQL query.


*To disable the additional logging, select Configure logging level for another package. > Use com.atlassian.jira.service as the package name and select "ERROR" for the logging level



Last modified on Nov 14, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.