[Solved] Token has expired

Moderator: crythias

Post Reply
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

[Solved] Token has expired

Post by FSF »

Hello

Just now, after a reboot, I opened znuny and I saw a yellow banner with "token has expired". So I clicked on it and then clicked on "request new token"

After doing it, I have no more error message, the Oauth2 part is ok as the screenshot shows

Image

But I don't receive any mail in znuny anymore while it was working perfectly yesterday.

Thanks in advance for your help.
Last edited by FSF on 25 Apr 2023, 16:58, edited 1 time in total.
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

up
please can someone help me ?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Token has expired

Post by root »

Hi,

Have you checked the system log and communication log? Is there any error?

- 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 ?
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

Hi,

this is the errors i have in system logs into znuny web interface

Code: Select all

Thu Mar 30 08:40:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 08:30:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 08:20:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 08:10:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 08:00:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 07:50:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 07:40:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 07:30:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 07:20:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 07:10:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 07:00:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 06:50:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 06:40:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 06:30:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 06:20:09 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 06:10:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 06:00:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 05:50:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 05:40:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 05:30:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 05:20:03 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 05:10:23 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 05:00:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 04:50:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 04:40:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 04:30:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 04:20:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 04:10:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 04:02:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::SMIME::CustomerCertificate::Renew-38 	There was an error executing Execute() in Kernel::System::Console::Command::Maint::SMIME::CustomerCertificate::Renew: ERROR: OTRS-otrs.Console.pl-Maint::SMIME::CustomerCertificate::Renew-38 Perl: 5.32.1 OS: linux Time: Thu Mar 30 04:02:13 2023
Thu Mar 30 04:02:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::SMIME::CustomerCertificate::Renew-38 	/etc/ssl/private not writable!
Thu Mar 30 04:00:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 03:50:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 03:40:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 03:30:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 03:20:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 03:10:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 03:00:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 02:50:09 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 02:40:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 02:30:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 02:20:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 02:10:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 02:00:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 01:50:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 01:40:23 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 01:30:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 01:20:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 01:10:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 01:00:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 00:50:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 00:40:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 00:30:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 00:20:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 00:10:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Thu Mar 30 00:00:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 23:50:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 23:40:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 23:30:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 23:20:09 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 23:10:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 23:00:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 22:50:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 22:40:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 22:30:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 22:20:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 22:10:23 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 22:00:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 21:50:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 21:40:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 21:30:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 21:20:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 21:10:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 21:00:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 20:50:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 20:40:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 20:30:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 20:20:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 20:10:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 20:00:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 19:50:09 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 19:40:09 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 19:30:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 19:20:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 19:10:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 19:00:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 18:50:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 18:40:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 18:30:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 18:20:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 18:10:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	CommunicationLog(ID:1123211,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:2125614)::Kernel::System::MailAccount::IMAPTLS => IMAPTLS: Can't connect to outlook.office365.com: Unable to connect to outlook.office365.com:
Wed Mar 29 18:00:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 17:50:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 17:40:37 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	CommunicationLog(ID:1123208,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:2125611)::Kernel::System::MailAccount::IMAPTLS => Auth error: 2 NO AUTHENTICATE failed.
Wed Mar 29 17:30:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 17:20:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 17:10:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 17:00:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 16:50:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 16:40:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 16:30:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 16:20:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 16:10:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 16:00:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 15:50:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 15:40:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 15:30:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 15:20:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 15:10:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 15:00:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 14:50:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 14:40:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 14:30:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 14:20:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 14:10:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 14:00:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 13:50:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 13:40:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 13:30:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 13:20:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 13:10:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 13:00:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 12:50:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 12:40:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 12:30:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 12:20:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 12:10:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 12:00:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 11:50:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 11:40:23 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 11:30:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 11:20:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 11:10:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 11:00:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 10:50:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 10:40:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 10:30:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 10:20:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 10:10:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 10:00:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 09:50:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 09:40:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 09:38:55 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:55 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:55 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:55 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:55 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:55 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:54 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:38:54 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	/etc/ssl/private not writable!
Wed Mar 29 09:30:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 09:20:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 09:10:08 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 09:00:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 08:50:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 08:40:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 08:30:05 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 08:20:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 08:10:23 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 08:00:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 07:50:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	CommunicationLog(ID:1123149,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:2125552)::Kernel::System::MailAccount::IMAPTLS => IMAPTLS: Can't connect to outlook.office365.com: Unable to connect to outlook.office365.com:
Wed Mar 29 07:40:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 07:30:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 07:20:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 07:10:17 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 07:00:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 06:50:13 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	CommunicationLog(ID:1123143,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:2125546)::Kernel::System::MailAccount::IMAPTLS => IMAPTLS: Can't connect to outlook.office365.com: Unable to connect to outlook.office365.com:
Wed Mar 29 06:40:15 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 06:30:14 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 06:20:12 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 06:10:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 06:00:11 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 05:50:10 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 05:40:09 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 05:30:07 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 05:20:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 05:10:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 05:00:06 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 04:50:04 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 04:40:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 04:30:22 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 04:20:21 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 04:10:20 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 04:02:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::SMIME::CustomerCertificate::Renew-38 	There was an error executing Execute() in Kernel::System::Console::Command::Maint::SMIME::CustomerCertificate::Renew: ERROR: OTRS-otrs.Console.pl-Maint::SMIME::CustomerCertificate::Renew-38 Perl: 5.32.1 OS: linux Time: Wed Mar 29 04:02:16 2023
Wed Mar 29 04:02:16 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::SMIME::CustomerCertificate::Renew-38 	/etc/ssl/private not writable!
Wed Mar 29 04:00:19 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select:
Wed Mar 29 03:50:18 2023 (Europe/Paris) 	error 	OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 	Error while retrieving the messages 'IMAPTLS': Could not select: 
I just switched my interface from French to English and the system gives me again a token error:
Znuny token1.JPG
If I click on the error I arrive on this window, or there is no more error
Znuny token2.JPG
But I still have the same errors in the system logs.

In the communication logs here is what I have:
Znuny token3.JPG
I have not changed the email address znuny uses, nor changed his password
I didn't make any configuration changes since everything was working.

The only thing I did was, since I got the alert Loaded DateTime::TimeZone::Europe::Paris, which is from a different version (2022d) of the Olson database than this installation of DateTime::TimeZone (2022f).

Code: Select all

su -c 'bin/Cron.sh stop' - otrs
su -c 'bin/otrs.Daemon.pl stop' - otrs
cpan install DateTime::TimeZone
su -c 'bin/Cron.sh start' - otrs
su -c 'bin/otrs.Daemon.pl start' - otrs
I think I gave all the information and logs.

I hope you will find a solution.

Thank you
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Token has expired

Post by root »

Hi,

Have you checked viewtopic.php?t=43234 ?

- 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 ?
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

Hi

No I haven't seen it, I'll go and check it out

Edit:

Well indeed I have, it seems to me, a little problem:
Znuny token5.JPG
How to know which line to delete and especially how to delete it because I did not see a delete function ?

Postmaster only uses the main box
Znuny token6.JPG
You do not have the required permissions to view the files attached to this post.
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

hi

I have about the same info on the command:

Code: Select all

su -c "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --debug" -s /bin/bash otrs

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

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

Started at Fri Mar 31 08:49:40 2023
Using Mail::IMAPClient version 3.42 on perl 5.032001
Connecting with IO::Socket::IP PeerAddr outlook.office365.com PeerPort 143 Proto tcp Timeout 600 Debug 1
Connected to outlook.office365.com
Read:   * OK The Microsoft Exchange IMAP4 service is ready. [UABSADAAUAAyADYANABDAEEAMAAwADYAMwAuAEYAUgBBAFAAMgA2ADQALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
Sending: 1 STARTTLS
Sent 12 bytes
Read:   1 OK Begin TLS negotiation now.
Sending: 2 AUTHENTICATE XOAUTH2
Sent 24 bytes
Read:   +
Sending: [Redact: Count=2 Showcredentials=OFF]
Sent 2670 bytes
Read:   2 OK AUTHENTICATE completed.
Sending: 3 SELECT INBOX
Sent 16 bytes
Read:   3 BAD User is authenticated but not connected.
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(0x5628639ff4d8), 3, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5628639ff4d8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
        Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x5628639ff4d8), "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 331
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 345
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: 3 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1288.
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
        Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x5628639ff4d8), "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 331
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 345
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 Perl: 5.32.1 OS: linux Time: Fri Mar 31 08:49:43 2023

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


 Traceback (9013):
   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: 173
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 165
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: /opt/otrs/bin/otrs.Console.pl Line: 37

Sending: 4 CLOSE
Sent 9 bytes
Read:   4 BAD User is authenticated but not connected.
        * BYE Connection closed. 14
ERROR: 4 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
        Mail::IMAPClient::__ANON__("4 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(0x5628639ff4d8), 4, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
        Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5628639ff4d8)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/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(0x5628639ff4d8), 4, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
        Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5628639ff4d8)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/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(0x5628639ff4d8), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
        Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x5628639ff4d8)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "CMD", 1, "CreateTime", "2016-02-26 11:09:36", "Comment", "", "IMAPFolder", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x5628629ee5a8), "Comment", "", "IMAPFolder", "INBOX", "CMD", 1, "CreateTime", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x562862832f48), "QueueID", 0, "********ConfigID", 7, "DispatchingBy", "From", "ChangeTime", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x56285f896e88), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x562862087e20), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
Done.
In the post he says: "I granted my account full access on the znuny mailbox"

But where can I check this? and especially validate that my account has all the permissions?

Thank you in advance for your help
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Token has expired

Post by root »

FSF wrote: 31 Mar 2023, 08:56 But where can I check this? and especially validate that my account has all the permissions?
Hi,

Ask your O365 administrator

- 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 ?
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

Hello

Well, I worked on it and it's not going very well :(

the following command gives me this:

su -c "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch" -s /bin/bash otrs

Code: Select all

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

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

ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 Perl: 5.32.1 OS: linux Time: Thu Apr 13 08:50:04 2023

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

 Traceback (113026):
   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: 173
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 165
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: /opt/otrs/bin/otrs.Console.pl Line: 37

Done.
So I went into the microsoft 365 exchange configuration:

Transformed the mailbox into a shared mailbox, and added my office365 account in the delegation of this mailbox

the following command gives me this:

su -c "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --debug" -s /bin/bash otrs

Code: Select all

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

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

Started at Thu Apr 13 10:45:46 2023
Using Mail::IMAPClient version 3.42 on perl 5.032001
Connecting with IO::Socket::IP PeerAddr outlook.office365.com PeerPort 143 Proto tcp Timeout 600 Debug 1
Connected to outlook.office365.com
Read:   * OK The Microsoft Exchange IMAP4 service is ready. [UABBAFoAUAAyADYANABDAEEAMAAwADQAMgAuAEYAUgBBAFAAMgA2ADQALxxxxxxxxx]
Sending: 1 STARTTLS
Sent 12 bytes
Read:   1 OK Begin TLS negotiation now.
Sending: 2 AUTHENTICATE XOAUTH2
Sent 24 bytes
Read:   +
Sending: [Redact: Count=2 Showcredentials=OFF]
Sent 2670 bytes
Read:   2 OK AUTHENTICATE completed.
Sending: 3 SELECT INBOX
Sent 16 bytes
Read:   3 BAD User is authenticated but not connected.
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(0x55a792d24140), 3, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x55a792d24140), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55a792d24140), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
        Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x55a792d24140), "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 331
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 345
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x55a791b58440), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Login", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x55a7913ac748), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: 3 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1288.
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55a792d24140), "SELECT INBOX") called at /usr/share/perl5/Mail/IMAPClient.pm line 854
        Mail::IMAPClient::select(Mail::IMAPClient=HASH(0x55a792d24140), "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("select", "INBOX") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 331
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 345
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x55a791b58440), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Login", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x55a7913ac748), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-38 Perl: 5.32.1 OS: linux Time: Thu Apr 13 10:45:49 2023

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

 Traceback (113646):
   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: 173
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 165
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: /opt/otrs/bin/otrs.Console.pl Line: 37

Sending: 4 CLOSE
Sent 9 bytes
Read:   4 BAD User is authenticated but not connected.
        * BYE Connection closed. 14
ERROR: 4 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
        Mail::IMAPClient::__ANON__("4 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(0x55a792d24140), 4, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x55a792d24140), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55a792d24140), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
        Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x55a792d24140)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x55a791b58440), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Login", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x55a7913ac748), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/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(0x55a792d24140), 4, undef) called at /usr/share/perl5/Mail/IMAPClient.pm line 1340
        Mail::IMAPClient::_imap_command_do(Mail::IMAPClient=HASH(0x55a792d24140), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 1238
        Mail::IMAPClient::_imap_command(Mail::IMAPClient=HASH(0x55a792d24140), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
        Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x55a792d24140)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x55a791b58440), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Login", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x55a7913ac748), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/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(0x55a792d24140), "CLOSE") called at /usr/share/perl5/Mail/IMAPClient.pm line 2369
        Mail::IMAPClient::close(Mail::IMAPClient=HASH(0x55a792d24140)) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 301
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 305
        Kernel::System::MailAccount::IMAP::__ANON__("close") called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 521
        Kernel::System::MailAccount::IMAP::_Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount/IMAP.pm line 157
        Kernel::System::MailAccount::IMAP::Fetch(Kernel::System::MailAccount::IMAPTLS=HASH(0x55a791d13420), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Debug", ...) called at /opt/znuny-6.3.4/Kernel/System/MailAccount.pm line 649
        Kernel::System::MailAccount::MailAccountFetch(Kernel::System::MailAccount=HASH(0x55a791b58440), "ValidID", 1, "IMAPFolder", "INBOX", "Comment", "", "Login", ...) called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 173
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm line 165
        Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20)) called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 460
        eval {...} called at /opt/znuny-6.3.4/Kernel/System/Console/BaseCommand.pm line 454
        Kernel::System::Console::BaseCommand::Execute(Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch=HASH(0x55a78ebb9d20), "--debug") called at /opt/znuny-6.3.4/Kernel/System/Console/InterfaceConsole.pm line 81
        Kernel::System::Console::InterfaceConsole::Run(Kernel::System::Console::InterfaceConsole=HASH(0x55a7913ac748), "Maint::PostMaster::MailAccountFetch", "--debug") called at /opt/otrs/bin/otrs.Console.pl line 37
Done.
So how to get rid of these errors because I do not understand the origin of all this?

Code: Select all

Read:   3 BAD User is authenticated but not connected.
ERROR: 3 BAD User is authenticated but not connected. at /usr/share/perl5/Mail/IMAPClient.pm line 1378.
and

Code: Select all

Read:   4 BAD User is authenticated but not connected.
I am the only real user of this application, and yes there are other accounts but they are only read-only and can not do anything else

Thanks for your help
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

After trial and error I finally got Znuny working again :-o

So it finally reads the mail in the mailbox support@domain.com and create tickets

I think the problem is that the admin email is not support@domain.com but admin@domain.com, and admin@domain.com is the address of a standard mailing list used by IT members.

By adding the address support@domain.com in the admin mailing list, the connection was finally made.

So I wanted to change this address in "System Configuration / Core / Email / AdminEmail" to support@domain.com but I have this error:

Code: Select all

There was an error. Please save all settings you are editing and check the logs for more information.
Can not lock the deployment for UserID '2'!
log
Thu Apr 13 14:49:19 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	Can not lock the deployment for UserID '2'!
Thu Apr 13 14:49:19 2023 (Europe/Paris) 	error 	OTRS-CGI-38 	It's not possible to lock a deployment if a setting is currently locked (SendmailModule::Port).
How to know who is UserID '2'?

Thank you in advance
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Token has expired

Post by root »

FSF wrote: 13 Apr 2023, 15:04 How to know who is UserID '2'?

Thank you in advance
Hi,

How should we? It's your system. It's the first created user after the installation.

- 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 ?
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

Ok so i know which one it is

Thank you
FSF
Znuny newbie
Posts: 31
Joined: 08 Dec 2022, 12:13
Znuny Version: 6.0.37
Real Name: Frederic

Re: Token has expired

Post by FSF »

Hi

After more than 1 week of operation, I have no more communication problems and everything is green in Communication log.

Thanks for your patience :wink:
Post Reply