Centuran / OTRS-Community-Edition

((OTRS)) Community Edition is a freely available, open source, web-based ticketing system used for Help Desk, Customer Service, and IT Service Management purposes.
https://otrscommunityedition.com/
GNU General Public License v3.0
45 stars 10 forks source link

The Time-Piece module needed by the Sisimai is not installed #17

Open ikedas opened 1 year ago

ikedas commented 1 year ago

Version

OTRS Community Edition 6.0.40 (we upgraded from OTRS 5.0.42 today). CentOS 9 Stream.

Installation method

Manual, without RPM nor Installation script.

Problem

The system setting PostMaster::PreFilterModule contains the module Kernel::System::PostMaster::Filter::DetectBounceEmail.

In this case, OTRS fails to retrieve the message via IMAP and the following error log is shown:

May  6 11:00:02 xxxxxxx OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-1[106368]: [Error][Kernel::System::PostMaster::Run][Line:172]: Can't locate Time/Piece.pm in @INC (you may need to install the Time::Piece module) (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /opt/otrs/Kernel/cpan-lib/parent.pm line 16.#012BEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Sisimai/Time.pm line 2.#012Compilation failed in require at /opt/otrs/Kernel/cpan-lib/Sisimai/Data.pm line 9.#012BEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Sisimai/Data.pm line 9.#012Compilation failed in require at /opt/otrs/Kernel/System/PostMaster/Filter/DetectBounceEmail.pm line 15.#012BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/PostMaster/Filter/DetectBounceEmail.pm line 15.#012Compilation failed in require at /opt/otrs/Kernel/System/Main.pm line 86.
May  6 11:00:02 xxxxxxx OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-1[106368]: [Error][Kernel::System::MailAccount::IMAP::__ANON__][Line:330]: Error while executing 'IMAPS->get(6003)': Can't locate object method "get" via package "Mail::IMAPClient" at /opt/otrs/Kernel/System/MailAccount/IMAP.pm line 319.
May  6 11:00:02 xxxxxxx OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-1[106368]: [Error][Kernel::System::CommunicationLog::_LogError][Line:539]: CommunicationLog(ID:14,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:24)::Kernel::System::MailAccount::IMAPS => IMAPS: Failed to process message (saved as /opt/otrs/var/spool/problem-email-e720f7dbf9baa3fa32060d5efbf9a069).

After we installed the Time-Piece module, the problem went away.

Possible solution

Time-Piece module would be better to be included in the needed modules.