Automatischer Mailabruf funktioniert nicht mehr

Hilfe zu OTRS Problemen aller Art
Post Reply
ekoder
Znuny newbie
Posts: 12
Joined: 25 Feb 2016, 13:25
Znuny Version: 5.0.16

Automatischer Mailabruf funktioniert nicht mehr

Post by ekoder »

Hi,

seit gestern funktioniert bei uns der automatische Mailabruf von OTRS aus nicht mehr.
Bis jetzt hat das ganze wirklich problemlos funktioniert, seit gestern kann ich die Mails nur noch abrufen, indem ich in der E-Mail-Kontenverwaltung die Postfächer einzeln abrufe.
Bis jetzt hab ich das ganze über Cronjobs abgerufen:

*/5 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null

Server wurde auf Verdacht in der Mittagszeit neu gestartet, leider keine Verbesserung.

Habt ihr Tipps zu diesem Problem für mich?

Im Syslog selbst finde ich nichts, der OTRS Daemon scheint auch zu laufen, da Eskalationsmails und so verschickt werden.

Ich bin aktuell etwas ratlos.

Vielen Dank
ekoder
Znuny newbie
Posts: 12
Joined: 25 Feb 2016, 13:25
Znuny Version: 5.0.16

Re: Automatischer Mailabruf funktioniert nicht mehr

Post by ekoder »

Im otrs.log hab ich nun folgenden Fehler gefunden:

[Fri Dec 1 13:39:18 2017][Notice][Kernel::System::PID::PIDCreate] Can't create PID Maint::PostMaster::MailAccountFetch, because it's already running (xxx.yyy.zzz/4145)!
[Fri Dec 1 13:39:18 2017][Error][Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError][54] There was an error executing Execute() in Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch: Error: Unable to register the process in the database. Is another instance still running?
You can use --force-pid to override this check.

[Fri Dec 1 13:40:18 2017][Error][Kernel::System::FetchMail::Fetch][168] FetchMail bin was not found
[Fri Dec 1 13:40:18 2017][Error][Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError][54] There was an error executing Fetch() in Kernel::System::FetchMail: ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-42 Perl: 5.22.1 OS: linux Time: Fri Dec 1 13:40:18 2017

Message: FetchMail bin was not found

Traceback (28130):
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: 253
Module: (eval) Line: 316
Module: main::Start Line: 316
Module: /opt/otrs//bin/otrs.Daemon.pl Line: 138
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Automatischer Mailabruf funktioniert nicht mehr

Post by wurzel »

Hi,

was wurde denn geändert seit gestern?


es steht aber alles da was zu tun ist:
You can use --force-pid to override this check.
Message: FetchMail bin was not found
das war vermutlich vorher auch schon so - kannst ggf. ignorieren.

viele Grüße
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
ekoder
Znuny newbie
Posts: 12
Joined: 25 Feb 2016, 13:25
Znuny Version: 5.0.16

Re: Automatischer Mailabruf funktioniert nicht mehr

Post by ekoder »

Ich hab das mit ./otrs.Console.pl Maint::PostMaster::MailAccountFetch --force-pid probiert, die Mails wurden abgerufen.
Was mich erstaunt ist, das das auch nach einem Neustart aufgetreten ist.

Allerdings habe ich bis jetzt alles über Crontabs realisiert, Testweiße habe ich die Option: Daemon::SchedulerCronTaskManager::Task###FetchMail Testweiße aktiviert im Laufe des Tages.
Habs jetzt mal wieder raus geschmissen.

Ich beobachte das ganz nun weiter, theoretisch sollten nun in 5 Minuten der Mailabruf wieder laufen.
Mal schaun ob das läuft.

Ich geb Bescheid :).
ekoder
Znuny newbie
Posts: 12
Joined: 25 Feb 2016, 13:25
Znuny Version: 5.0.16

Re: Automatischer Mailabruf funktioniert nicht mehr

Post by ekoder »

Ja, scheint nun wieder sauber zu funktionieren.

Kann mir jemand erklären, wie es dazu kommen konnte?
Und vor allem, warum das nach einem Neustart nicht mehr 'sauber' funktionierte?
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Automatischer Mailabruf funktioniert nicht mehr

Post by wurzel »

Hi,

Deine crontab sollte nur den Daemon prüfen

der Aufruf der Mail Account Fetching dinger, macht der Daemon.

Deine crontab sollte so aussehen:

Code: Select all

otrs@server:~$ crontab -l
# --
# Copyright (C) 2001-2017 xxx, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check OTRS daemon status
*/5 * * * *    $HOME/bin/otrs.Daemon.pl start >> /dev/null
wenn Dein Daemon sauber läuft und gleichzeitig Deine Cronjobs das gleiche machen, kann es vielleicht zu Deinem Problem kommen?

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply