[SOLVED] OTRS Scheduler Daemon Cron: FetchMail

Moderator: crythias

Locked
stevros
Znuny newbie
Posts: 8
Joined: 24 Sep 2014, 10:08
Znuny Version: 3.3.9

[SOLVED] OTRS Scheduler Daemon Cron: FetchMail

Post by stevros »

Hi to all,
every 3 minutes I get an email like this


Subject: OTRS Scheduler Daemon Cron: FetchMail

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-16 Perl: 5.16.3 OS: linux Time: Wed Jun 8 10:09:12 2016

Message: There was an error executing /usr/bin/fetchmail -a: Unknown

Traceback (15729):
Module: Kernel::System::FetchMail::Fetch Line: 344
Module: (eval) Line: 147
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
Module: (eval) Line: 316
Module: main::Start Line: 316
Module: /opt/otrs//bin/otrs.Daemon.pl Line: 138



every 3 minutes I have configured the task "Daemon::SchedulerCronTaskManager::Task###FetchMail", I hypothesize this task is the cause.

Reading this post

viewtopic.php?f=53&t=31812&p=131041&hil ... il#p131041

I have tried using the task "Daemon::SchedulerCronTaskManager::Task###FetchMailSSL", but now I receive this mail:


Subject: OTRS Scheduler Daemon Cron: FetchMailSSL

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-16 Perl: 5.16.3 OS: linux Time: Wed Jun 8 10:21:17 2016

Message: There was an error executing /usr/bin/fetchmail -a --ssl: Unknown

Traceback (15821):
Module: Kernel::System::FetchMail::Fetch Line: 344
Module: (eval) Line: 147
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
Module: (eval) Line: 316
Module: main::Start Line: 316
Module: ./otrs.Daemon.pl Line: 138



Sending and receiving emails is working properly, can someone help me?

Thank you so much
Last edited by stevros on 09 Jun 2016, 10:24, edited 1 time in total.
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

Re: OTRS Scheduler Daemon Cron: FetchMail

Post by jcgar »

Hi, my Daemon worked fine, but I reboot the machine and now I have the same problem:

OTRS Scheduler Daemon Cron: FetchMail

ERROR: OTRS-otrs.Daemon.pl - Daemon
Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-62 Perl: 5.18.2 OS: linux Time:
Wed Jun 8 14:03:15 2016

Message: FetchMail bin was not found

Traceback (2061):
Module: Kernel::System::FetchMail::Fetch Line: 168
Module: (eval) Line: 147
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131
Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
Module: (eval) Line: 316
Module: main::Start Line: 316
Module: /opt/otrs/bin/otrs.Daemon.pl Line: 138

OTRS Scheduler Daemon Cron: MailAccountFetch

Error: Unable to register the process in the database. Is another instance still running?
You can use --force-pid to override this check.

Thanks.
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

Re: OTRS Scheduler Daemon Cron: FetchMail

Post by jcgar »

Logs:

Wed Jun 8 14:07:17 2016 error OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-62

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?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS Scheduler Daemon Cron: FetchMail

Post by reneeb »

You need fetchmail or configure the path to fetchmail... If you do not use fetchmail at all, you should deactivate those daemon tasks...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
stevros
Znuny newbie
Posts: 8
Joined: 24 Sep 2014, 10:08
Znuny Version: 3.3.9

Re: OTRS Scheduler Daemon Cron: FetchMail

Post by stevros »

Hi Reneeb,
thank you for your support , I disabled the "Daemon::SchedulerCronTaskManager::Task###FetchMail" and now I am no longer receiving the error messages.

I thought it was the task of generating tickets by e-mail, what is the proper task? I would like to reduce the time interval, from 10 minutes to 3 minutes.

Thanks
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS Scheduler Daemon Cron: FetchMail

Post by reneeb »

It's the MailAccountFetch task...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
stevros
Znuny newbie
Posts: 8
Joined: 24 Sep 2014, 10:08
Znuny Version: 3.3.9

Re: OTRS Scheduler Daemon Cron: FetchMail

Post by stevros »

Thank you so much.
Locked