Using OAuth 2.0 for IMAP, logs show the error: BYE Session invalidated - AccessTokenExpired
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Summary
After setting up OAuth 2.0 for an IMAP account & Jira Mail Handler, the logs show errors about Tokens expiring:
1
2
2021-04-26 09:41:29,704-0400 ERROR [MSH_Mail] Caesium-1-3 anonymous MSH_Handler MSH_Handler[11208]: Messaging Exception in service 'com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl' when getting mail: * BYE Session invalidated - AccessTokenExpired
javax.mail.MessagingException: * BYE Session invalidated - AccessTokenExpired;
Environment
8.13.4
Cause
Tokens used in the OAuth 2.0 process are meant to expire as part of their regular use. When a token is found to be expired, the user account is re-authenticated and a new token is issued. This is an expected part of the OAuth process.
Solution
IFthe mail handler is working properly, this error can be ignored.
If the mail handler is not working properly, there are likely other errors that indicate the reason. This token expiration error is not likely an indicator of the cause of a failure.
Was this helpful?