Problemmail oder Datenbankproblem?

Hilfe zu OTRS Problemen aller Art
Post Reply
ncmbu
Znuny advanced
Posts: 111
Joined: 23 Jun 2016, 17:11
Znuny Version: 5.0.23

Problemmail oder Datenbankproblem?

Post by ncmbu »

Hi,

habe im Log ein paar Fehlermeldungen gefunden, bei denen ich mir nicht sicher bin, was sie bedeuten, und ob Sie möglicherweise auf ein größeres Problem hindeuten; evtl. kann da jemand mal drüberschauen:

Code: Select all

[Fri Oct 28 16:02:59 2016] otrs.Console.pl: DBD::mysql::st execute failed: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' at /opt/otrs/Kernel/System/DB.pm line 666.
[Fri Oct 28 16:02:59 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
[Fri Oct 28 16:02:59 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-66 Perl: 5.10.1 OS: linux Time: Fri Oct 28 16:02:59 2016

 Message: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=', SQL: 'SELECT id FROM article WHERE ticket_id = ? AND a_message_id = ? AND a_from = ? AND a_subject = ? AND  incoming_time = ? ORDER BY id DESC LIMIT 1'

 Traceback (32192): 
   Module: Kernel::System::Ticket::Article::_ArticleGetId Line: 2010
   Module: Kernel::System::Ticket::Article::ArticleCreate Line: 302
   Module: Kernel::System::PostMaster::NewTicket::Run Line: 448
   Module: Kernel::System::PostMaster::Run Line: 372
   Module: Kernel::System::MailAccount::POP3::Fetch Line: 212
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94
   Module: (eval) Line: 444
   Module: Kernel::System::Console::BaseCommand::Execute Line: 438
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: bin/otrs.Console.pl Line: 38

[Fri Oct 28 16:02:59 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
[Fri Oct 28 16:02:59 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-66 Perl: 5.10.1 OS: linux Time: Fri Oct 28 16:02:59 2016

 Message: Can't get ArticleID from INSERT!

 Traceback (32192): 
   Module: Kernel::System::Ticket::Article::ArticleCreate Line: 312
   Module: Kernel::System::PostMaster::NewTicket::Run Line: 448
   Module: Kernel::System::PostMaster::Run Line: 372
   Module: Kernel::System::MailAccount::POP3::Fetch Line: 212
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94
   Module: (eval) Line: 444
   Module: Kernel::System::Console::BaseCommand::Execute Line: 438
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: bin/otrs.Console.pl Line: 38

[Fri Oct 28 16:03:01 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
[Fri Oct 28 16:03:01 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-66 Perl: 5.10.1 OS: linux Time: Fri Oct 28 16:03:01 2016

 Message: Can't process email with MessageID <<3908751477663045@web22o.yandex.ru>>! Please create a bug report with this email (From: Mert XXX <XXX@XXX.XXX.tr>, Located under var/spool/problem-email*) on http://bugs.otrs.org/!

 Traceback (32192): 
   Module: Kernel::System::PostMaster::NewTicket::Run Line: 476
   Module: Kernel::System::PostMaster::Run Line: 372
   Module: Kernel::System::MailAccount::POP3::Fetch Line: 212
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94
   Module: (eval) Line: 444
   Module: Kernel::System::Console::BaseCommand::Execute Line: 438
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: bin/otrs.Console.pl Line: 38

[Fri Oct 28 16:03:01 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
[Fri Oct 28 16:03:01 2016] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 212.
ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-66 Perl: 5.10.1 OS: linux Time: Fri Oct 28 16:03:01 2016

 Message: POP3: Can't process mail, mail saved (/opt/otrs/var/spool/problem-email-05fe908ee8f930d3cff8a13171ee5d79, report it on http://bugs.otrs.org/)!

 Traceback (32192): 
   Module: Kernel::System::MailAccount::POP3::Fetch Line: 215
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94
   Module: (eval) Line: 444
   Module: Kernel::System::Console::BaseCommand::Execute Line: 438
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: bin/otrs.Console.pl Line: 38
Mich irritiert hier besonders die Zeile: Message: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=', SQL: 'SELECT id FROM article WHERE ticket_id = ? AND a_message_id = ? AND a_from = ? AND a_subject = ? AND incoming_time = ? ORDER BY id DESC LIMIT 1', da die ja scheinbar auf ein Problem mit der Datenbank hinweist.

Was ich auch merkwürdig finde: Die angegebene problematische E-Mail, die unter /opt/otrs/var/spool/problem-email-05fe908ee8f930d3cff8a13171ee5d79 gespeichert wurde sieht total merkwürdig aus. Keine Header, keine Mail-typischen Abschnitte. Einfach nur (HTML-)Text.
ncmbu
Znuny advanced
Posts: 111
Joined: 23 Jun 2016, 17:11
Znuny Version: 5.0.23

Re: Problemmail oder Datenbankproblem?

Post by ncmbu »

Guten Morgen,
es geht offenbar weiter. Heute Nacht lief wohl ein Cronjob, der versucht hat, die Nachricht unter /opt/otrs/var/spool/problem-email-05fe908ee8f930d3cff8a13171ee5d79 erneut zu importieren, was natürlich nicht korrekt funktioniert hat (wie gesagt enthält diese Datei keinerlei Mailheader o.ä). Jetzt haben wir ein Ticket im System mit dem tollen Titel "Dieses Ticket hat keinen Titel oder Betreff ", welches den Inhalt dieser Datei enthält. Die Datei ist jedoch immer noch vorhanden, wird also vermutlich mit jedem Lauf des Cronjobs erneut importiert, wenn ich sie nicht entferne.

Habe ich hier nun einen Bug, oder ist irgendwas an der Datenbank fehlkonfiguriert und müsste geändert werden, damit dies nicht mehr vorkommt?
ncmbu
Znuny advanced
Posts: 111
Joined: 23 Jun 2016, 17:11
Znuny Version: 5.0.23

Re: Problemmail oder Datenbankproblem?

Post by ncmbu »

Hallo,
ich muss hier nochmal nachhaken, da sich in den letzten Tagen dieses Problem gehäuft hat.
Hat hier niemand eine Idee diesbezüglich? Sollte ich evtl. im englischsprachigen Bereich nachfragen?

So wie es scheint tritt das Problem insbesondere auf, wenn wir Mails auf Türkisch erhalten, falls diese Information irgendwie weiterhilft.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problemmail oder Datenbankproblem?

Post by jojo »

Prüf mal Deine Datenbank und die einzelnen Tabellen, diese müssen alle utf8 sein. Dein DBA sollte Dir hier ggf. Hilfe anbieten können
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ncmbu
Znuny advanced
Posts: 111
Joined: 23 Jun 2016, 17:11
Znuny Version: 5.0.23

Re: Problemmail oder Datenbankproblem?

Post by ncmbu »

Viele der Tabellen haben latin1 als Default-Charset… hätten diese nicht während der Migration von den früheren OTRS-Versionen automatisch konvertiert werden müssen?

Nachtrag: Hab' jetzt mal mit ALTER TABLE die Tabellen alle auf utf8 konvertiert. Mal beobachten ob der Fehler nun ausbleibt.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Problemmail oder Datenbankproblem?

Post by jojo »

wenn Du Dich strikt an die Anweisung gehalten hast, hätte Dir das CheckDB script bzw. der Supportdatensammler einen entsprechenden Hinweis gegeben
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
MAKUT
Znuny newbie
Posts: 97
Joined: 13 Nov 2013, 12:27
Znuny Version: 5.0.14
Real Name: Alex

Re: Problemmail oder Datenbankproblem?

Post by MAKUT »

.
CentOS 7 - MariaDB - OTRS 5.0.14
Post Reply