We have 4 GMail OAuth2 token records in Znuny. Everything worked fine for about a week.
Today I've found 3 of 4 are broken. The record with ID 3 is fine.
Here's what happened in the log in chronological order:Last token request failed. Last (refresh) token request failed.
First: for ID 4
Code: Select all
[Tue Mar 14 19:00:22 2023][Error][Kernel::System::WebUserAgent::Request][246] Can't perform POST on https://oauth2.googleapis.com/token: 503 Service Unavailable
[Tue Mar 14 19:00:22 2023][Error][Kernel::System::OAuth2Token::RequestTokenByRefreshToken][963] Response for request for token config with ID 4 and request type 'TokenByRefre
shToken' was not '200 OK'. internal_failure
[Tue Mar 14 19:00:22 2023][Error][Kernel::System::OAuth2Token::GetToken][1187] Error requesting token by refresh token for token config with ID 4.
[Tue Mar 14 19:00:22 2023][Error][Kernel::System::CommunicationLog::_LogError][535] CommunicationLog(ID:11424,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:36982)::Kernel::System::MailAccount::POP3S => OAuth2 token could not be retrieved.
Second, for ID 1
Code: Select all
[Wed Mar 15 20:50:12 2023][Error][Kernel::System::WebUserAgent::Request][246] Can't perform POST on https://oauth2.googleapis.com/token: 400 Bad Request
[Wed Mar 15 20:50:12 2023][Error][Kernel::System::OAuth2Token::RequestTokenByRefreshToken][963] Response for request for token config with ID 1 and request type 'TokenByRefreshToken' was not '200 OK'. invalid_grant: Token has been expired or revoked.
[Wed Mar 15 20:50:12 2023][Error][Kernel::System::OAuth2Token::GetToken][1187] Error requesting token by refresh token for token config with ID 1.
[Wed Mar 15 20:50:12 2023][Error][Kernel::System::CommunicationLog::_LogError][535] CommunicationLog(ID:13590,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:43798)::Kernel::System::MailAccount::POP3S => OAuth2 token could not be retrieved.
Third, for ID 2
Code: Select all
[Thu Mar 16 08:30:07 2023][Error][Kernel::System::WebUserAgent::Request][246] Can't perform POST on https://oauth2.googleapis.com/token: 400 Bad Request
[Thu Mar 16 08:30:07 2023][Error][Kernel::System::OAuth2Token::RequestTokenByRefreshToken][963] Response for request for token config with ID 2 and request type 'TokenByRefreshToken' was not '200 OK'. invalid_grant: Token has been expired or revoked.
[Thu Mar 16 08:30:07 2023][Error][Kernel::System::OAuth2Token::GetToken][1187] Error requesting token by refresh token for token config with ID 2.
[Thu Mar 16 08:30:07 2023][Error][Kernel::System::CommunicationLog::_LogError][535] CommunicationLog(ID:14571,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:46878)::Kernel::System::MailAccount::POP3S => OAuth2 token could not be retrieved.
How do I fix all of this correctly?
Thank you!