Error retrieving messages 'IMAPS': Could not select

Moderator: crythias

Post Reply
nltui
Znuny newbie
Posts: 33
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Error retrieving messages 'IMAPS': Could not select

Post by nltui »

Znuny 6.5.2

This just started happening. Nobody made any changes. Any insight would be helpful. Errors like this make it difficult to justify running our own ticketing system.

This mail account functions fine through Exchange, and the tokens seem to working and updating fine. Below is as much information as I can think of to give. Another mail account on the system is working fine.

otrs@bi-tickets:/opt/otrs/bin$ ./otrs.Console.pl Admin::OAuth2TokenManagement::ListTokenInformation
Token config 'foo.bar' (valid, ID 2)
Token information:
AuthorizationCode:
ChangeBy: 1
ChangeTime: 2024-01-30 11:10:28
CreateBy: 2
CreateTime: 2023-02-27 16:43:01
ErrorCode:
ErrorDescription:
ErrorMessage:
ID: 2
RefreshToken: 0.ARwAb35GRCxGok6CP3gA3lQ042CDUBR6G_9Nt0i2qkoUJ8wcAJo.AgABAAEAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P-jQS19z9d7B3gUFVC42Fm6kTDP5tVfbe3Ikx-NQ6zBwmgQ9t4k6gpoa5QDoLoudq9jip3ImvWl1FLX9VGBFBEiujE-4y6rK8WpvH9elhj3c2gA7b7Ffi2rhE__6ieWRTdsO4l1ymypXmxkbuI8GFUkeFBtIAhpyudJD7S6oIj0eWDR7JqIYTNnza39GjcsX4N_U1u-0C7calv9zfm6KO5t79U3WDr6Mhq5geDLmi-aYNH0uIlxNarrWIz3jyq8HZXqNQYvLKL_Pe31T7DAseTdS9H0Z07aOfI49ma6wSb6UxEKJjFDZAHWCYDAkfTtGCzPTNmjTG1tg4M-wnKRFGBkux8Jy817JsD7VPYfEN97lNP8C4DFaxnGkLT18emKSD1hiNqy-qWirrA1Row-SH45IkvD-dRFY4HGmsN6w-XrK7uX9iHPMXQh9Ac41P5UJFsAhDVLKXPAGCJs0eljSkOzUfcT60k5zEz4x96HV7WaaFtlExff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CJ3aWRzIjpbImI3OWZiZjRkLTNlZjktNDY4OS04MTQzLTc2YjE5NGU4NTUwOSJdfQ.lPrm23pBDn48_9a1NhG6NjXxLfy5x6qD_EQfV9n_1lJZXDfNgROVbmr21a4vBU5aCSD1eUg_6tjDJOcyxJCfMC5jNOhNhGdWcEqH_0jVCry_-hMO2fC9dUpinqE7iKWT4TloagZjDBdwMYWYeiguDcs0--g_lQouBRRn-ciibzig4JGN-dtGje_4xPxVh1-1BDnYpYnbKvtnOTCrwQ6_9As0tQQjc5BPVLVpsc8YKwbAuQW8PVpNpbAMH6E4-hLssiIhdNOuPOIjA0fsBtWiPytZcNOGhQqA9O6pupuhOYJvT9IWAxNKO0XdUi9mCROxycxP-hPjla8YeAA7ZzVkaw
TokenConfigID: 2
TokenExpirationDate: 2024-01-30 12:14:30

otrs@bi-tickets:/opt/otrs/bin$ ./otrs.Console.pl Admin::OAuth2TokenManagement::RequestTokenByRefreshToken foo.bar
Token for token config with name 'foo.bar' has been successfully retrieved/updated.
otrs@bi-tickets:/opt/otrs/bin$ ./otrs.Console.pl Maint::PostMaster::MailAccountFetch --debug

Spawning child process to fetch incoming messages from mail accounts...

outlook.office365.com (IMAPS)...
IMAPS: Connection to outlook.office365.com closed.

Started at Tue Jan 30 11:10:46 2024
Using Mail::IMAPClient version 3.42 on perl 5.032001
Connecting with IO::Socket::SSL PeerAddr outlook.office365.com PeerPort 993 Proto tcp Timeout 600 Debug 1 SSL_verify_mode 0
Connected to outlook.office365.com
Read: * OK The Microsoft Exchange IMAP4 service is ready. [QwBIADIAUABSADAAMgBDAEEAMAAwADIAMQAuAG4AYQBtAHAAcgBkADAAMgAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]
Sending: 1 AUTHENTICATE XOAUTH2
Sent 24 bytes
Read: +
Sending: [Redact: Count=1 Showcredentials=OFF]
Sent 3078 bytes
Read: 1 OK AUTHENTICATE completed.
Sending: 2 SELECT INBOX
Sent 16 bytes
Read: 2 BAD User is authenticated but not connected.
ERROR: 2 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
Mail::IMAPClient::__ANON__("2 BAD User is authenticated but not connected.\x{d}\x{a}") called at /usr/share/perl5/Mail/IMAPClient.pm line 1414
Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x5641eecf3be8), 2, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5641eecf3be8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5641eecf3be8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x5641eecf3be8), "INBOX") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 331
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 345
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "QueueID", 5, "AuthenticationType", "oauth2_token", "DispatchingBy", "Queue", "********ConfigID", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "********ConfigID", 2, "CreateTime", "2023-03-20 22:53:45", "AuthenticationType", "oauth2_token", "DispatchingBy", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x5641edfb2328), "Trusted", 1, "Login", "foo.bar\@my.ad.edu", "ValidID", 1, "ChangeTime", ...) called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 171
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 163
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8)) called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 461
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 455
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8), "--debug") called at /opt/znuny-6.5.2/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x5641ed7ac300), "Maint::PostMaster::MailAccountFetch", "--debug") called at ./otrs.Console.pl line 37
ERROR: 2 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1288.
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5641eecf3be8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x5641eecf3be8), "INBOX") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 331
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 345
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "QueueID", 5, "AuthenticationType", "oauth2_token", "DispatchingBy", "Queue", "********ConfigID", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "********ConfigID", 2, "CreateTime", "2023-03-20 22:53:45", "AuthenticationType", "oauth2_token", "DispatchingBy", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x5641edfb2328), "Trusted", 1, "Login", "foo.bar\@my.ad.edu", "ValidID", 1, "ChangeTime", ...) called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 171
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 163
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8)) called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 461
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 455
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8), "--debug") called at /opt/znuny-6.5.2/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x5641ed7ac300), "Maint::PostMaster::MailAccountFetch", "--debug") called at ./otrs.Console.pl line 37
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-0 Perl: 5.32.1 OS: linux Time: Tue Jan 30 11:10:46 2024

Message: Error while retrieving the messages 'IMAPS': Could not select:


Traceback (6066):
Module: Kernel::System::MailAccount::IMAP::_Fetch Line: 347
Module: Kernel::System::MailAccount::IMAP::Fetch Line: 157
Module: Kernel::System::MailAccount::MailAccountFetch Line: 649
Module: (eval) Line: 171
Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 163
Module: (eval) Line: 461
Module: Kernel::System::Console::BaseCommand::Execute Line: 455
Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
Module: ./otrs.Console.pl Line: 37

Sending: 3 CLOSE
Sent 9 bytes
Read: 3 BAD User is authenticated but not connected.
* BYE Connection closed. 14
ERROR: 3 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
Mail::IMAPClient::__ANON__("3 BAD User is authenticated but not connected.\x{d}\x{a}") called at /usr/share/perl5/Mail/IMAPClient.pm line 1414
Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x5641eecf3be8), 3, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5641eecf3be8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5641eecf3be8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5641eecf3be8)) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 521
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "QueueID", 5, "AuthenticationType", "oauth2_token", "DispatchingBy", "Queue", "********ConfigID", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "********ConfigID", 2, "CreateTime", "2023-03-20 22:53:45", "AuthenticationType", "oauth2_token", "DispatchingBy", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x5641edfb2328), "Trusted", 1, "Login", "foo.bar\@my.ad.edu", "ValidID", 1, "ChangeTime", ...) called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 171
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 163
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8)) called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 461
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 455
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8), "--debug") called at /opt/znuny-6.5.2/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x5641ed7ac300), "Maint::PostMaster::MailAccountFetch", "--debug") called at ./otrs.Console.pl line 37
ERROR: * BYE Connection closed. 14 at /usr/share/perl5/Mail/IMAPClient.pm line 1429.
Mail::IMAPClient::_get_response(Mail::IMAPClient=HASH(0x5641eecf3be8), 3, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5641eecf3be8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5641eecf3be8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5641eecf3be8)) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 521
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "QueueID", 5, "AuthenticationType", "oauth2_token", "DispatchingBy", "Queue", "********ConfigID", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "********ConfigID", 2, "CreateTime", "2023-03-20 22:53:45", "AuthenticationType", "oauth2_token", "DispatchingBy", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x5641edfb2328), "Trusted", 1, "Login", "foo.bar\@my.ad.edu", "ValidID", 1, "ChangeTime", ...) called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 171
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 163
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8)) called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 461
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 455
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8), "--debug") called at /opt/znuny-6.5.2/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x5641ed7ac300), "Maint::PostMaster::MailAccountFetch", "--debug") called at ./otrs.Console.pl line 37
ERROR: * BYE Connection closed. 14 at /usr/share/perl5/Mail/IMAPClient.pm line 1288.
Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5641eecf3be8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5641eecf3be8)) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 301
eval {...} called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 305
Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 521
Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "QueueID", 5, "AuthenticationType", "oauth2_token", "DispatchingBy", "Queue", "********ConfigID", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount/IMAP.pm line 157
Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPS=HASH(0x5641ee120e60), "********ConfigID", 2, "CreateTime", "2023-03-20 22:53:45", "AuthenticationType", "oauth2_token", "DispatchingBy", ...) called at /opt/znuny-6.5.2/Kernel/System/MailAccount.pm line 649
Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x5641edfb2328), "Trusted", 1, "Login", "foo.bar\@my.ad.edu", "ValidID", 1, "ChangeTime", ...) called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 171
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 163
Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8)) called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 461
eval {...} called at /opt/znuny-6.5.2/Kernel/System/Console/BaseCommand.pm line 455
Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x5641ed7b47c8), "--debug") called at /opt/znuny-6.5.2/Kernel/System/Console/InterfaceConsole.pm line 81
Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x5641ed7ac300), "Maint::PostMaster::MailAccountFetch", "--debug") called at ./otrs.Console.pl line 37
outlook.office365.com (IMAPS)...
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Error retrieving messages 'IMAPS': Could not select

Post by root »

Hello Neil,

"2 BAD User is authenticated but not connected." indicates that something changed on the O365 side. Often permissions. There are several entries in to MS TechNet for this error. Related and also possible: the user who retrieved the token requires to have and keep permissions for the mailbox.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
nltui
Znuny newbie
Posts: 33
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Re: Error retrieving messages 'IMAPS': Could not select

Post by nltui »

Someone had changed the domain on the username in AD and that is what caused the problem.

Thanks for the help.
Post Reply