[solved]Fetchmail / UTF8 Problem

Hilfe zu OTRS Problemen aller Art
Post Reply
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

[solved]Fetchmail / UTF8 Problem

Post by dlhost »

Hi,
bin neu hier und hoffe ihr könnt mir helfen :-)

Ich hab OTRS von den Sourcen installiert, Abhängigkeiten natürlich alle auf nem Debian System aufgelöst.

Funktioniert auch soweit alles bis auf die Fehlermeldungen.

Code: Select all

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-48 Perl: 5.20.2 OS: linux Time: Tue Mar 28 22:35:12 2017

 Message: FetchMail bin was not found

 Traceback (1397): 
   Module: Kernel::System::FetchMail::Fetch Line: 168
   Module: (eval) Line: 150
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 129
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 250
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 138
Wenn er das nicht finden kann, wieso holt er erfolgreich die Mails ab??

Und:

Code: Select all

Error: The terminal encoding should be set to 'utf-8', but is 'ansi_x3.4-1968'. Some characters might not be displayed correctly.
Den Fehler hab ich irgendwie bei allem wo OTRS auf die eingebaute Konsole geht... In der Config.pm ist auch

Code: Select all

$Self->{DefaultCharset} = 'utf-8';
gesetzt und die DB läuft auch auf UTF-8.
Wie zum Geier bekomme ich die beiden Fehler gefixt?
Last edited by dlhost on 29 Mar 2017, 15:09, edited 1 time in total.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Fetchmail / UTF8 Problem

Post by zzz »

Hallo dlhost,

zum Zweiten: Es sieht aus, als würde Deine Debian Kommandozeile die Zeichenkodierung ansi_x3.4-1968 benutzen. Das kannst Du mit mit dem Befehl "$ locale charmap" checken. Das hat aber keine Auswirkung auf die Funktionalität des Systems, sondern nur auf Kommandozeilenausgabe, die du nach einem Befehl in der Konsole siehst.

Zum ändern:
$ export LC_ALL=de_DE.utf8
Prüfen:
$ locale charmap

Gruß
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

Re: Fetchmail / UTF8 Problem

Post by dlhost »

Hi zzz,
danke für die Antwort :)
Dachte ich auch aber meine Konsole läuft auf UTF-8

Code: Select all

root@xy~ # locale charmap
UTF-8
root@xy~ #
Daher ja meine Vermutung dass da irgendeine eigene Konsole verwendet wird.

Es ist eben untragbar dass bei jedem Job eine Mail kommt mit diesem Fehler.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Fetchmail / UTF8 Problem

Post by zzz »

Was sagt denn die Ausgabe von "$ locale"?
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

Re: Fetchmail / UTF8 Problem

Post by dlhost »

Code: Select all

$ locale charmap
UTF-8
$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
$
Nichts wo ich einen Fehler erkennen würde
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Fetchmail / UTF8 Problem

Post by zzz »

Zum Ersten: Den Haken unter Daemon::SchedulerCronTaskManager::Task###FetchMail nehmen.

Wenn du in Zukunft keine Lösung findest, kannst du Zeile 432-444 (5.0.17) unter "/Kernel/System/Console/BaseCommand.pm" auskommentieren. Löst das Problem natürlich nicht :lol:

Gruß
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

Re: Fetchmail / UTF8 Problem

Post by dlhost »

Da ist gar kein haken drin :-D

Ich hole die Mails via SSL und wenn ich das deaktiviere, wie holt er dann die Mails ab? Das ist doch genau der Job dafür?
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Fetchmail / UTF8 Problem

Post by zzz »

Die Meldung kommt, wenn OTRS fetchmail nicht findet. Hast du fetchmail überhaupt installiert?
Orte zum Checken:
'/usr/bin/fetchmail',
'/usr/sbin/fetchmail',
'/usr/local/bin/fetchmail',
'/opt/local/bin/fetchmail',
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Fetchmail / UTF8 Problem

Post by jojo »

und zum Mail abholen (auch mit SSL) wird fetchmail nicht benötigt
"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
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

Re: Fetchmail / UTF8 Problem

Post by dlhost »

root@xy /usr/bin # ls |grep fetchmail
fetchmail
root@xy /usr/bin #
Sonst noch Ideen? :-D
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Fetchmail / UTF8 Problem

Post by zzz »

Wenn du nichts findest und fetchmail benutzen willst, musst Du es wohl installieren.
Außerdem:
http://doc.otrs.com/doc/manual/admin/st ... -fetchmail
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

Re: Fetchmail / UTF8 Problem

Post by dlhost »

Naja ohne Fetchmail holt er ja keine Mails ab. In der heutigen Zeit wohl eher kontraproduktiv wenn man nicht auf Support Mails einfach antworten kann und an eine Oberfläche gebunden ist.

Ich glaube ich bin auch ein Stück weiter, es scheint eher ein Bug im OTRS zu sein.

Code: Select all

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-48 Perl: 5.20.2 OS: linux Time: Wed Mar 29 13:50:16 2017

 Message: There was an error executing /usr/bin/fetchmail -a: There was a syntax error in the arguments to fetchmail

 Traceback (3829): 
   Module: Kernel::System::FetchMail::Fetch Line: 344
   Module: (eval) Line: 150
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 129
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 250
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 138
Das bekomme ich ohne SSL und das mit SSL als Mail Fehlermeldung

Code: Select all

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-48 Perl: 5.20.2 OS: linux Time: Wed Mar 29 13:40:07 2017

 Message: There was an error executing /usr/bin/fetchmail -a --ssl: There was a syntax error in the arguments to fetchmail

 Traceback (3784): 
   Module: Kernel::System::FetchMail::Fetch Line: 344
   Module: (eval) Line: 150
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 129
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 250
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 138
Abholen an sich und daraus die Tickets erstellen funktioniert jedoch. Nur dieser Spam nervt.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Fetchmail / UTF8 Problem

Post by zzz »

OTRS hat eine interne Funktion dafür. Wenn du auf fetchmail umsteigen willst, musst du es aber vollständig konfigurieren.

Wenn dich nur die Meldung stört: Den Hacken unter den Daemon-Einstellungen nehmen.
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Fetchmail / UTF8 Problem

Post by jojo »

OTRS hat 3 arten Mails in das System zu bekommen:

- über die GUI (PostMaster Maill Account). Das passiert automatisch sobald hier etwas hinterlegt und valide ist)
- über das Unix Programm Fetchmail: Hier muss die .fetchmailrc entsprechend angepasst werden, das fetchmail binary in der sysconfig angegeben und der entsprechende Daemon konfiguert werden (ebenfalls über die Sysconfig)
- über einen lokalen MTA und Zustellung via procmail.

Du hast aktuelle anscheinend einen Mix aus 1 und 2
"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
dlhost
Znuny newbie
Posts: 8
Joined: 28 Mar 2017, 21:33
Znuny Version: 5s Patch18

Re: Fetchmail / UTF8 Problem

Post by dlhost »

Hi jojo,

ahh danke. Das interne System ging mir irgendwie durch. Ich dachte es läuft alles via Fetchmail.

Nun läufts :-)
Danke euch!
Post Reply