Error fetching pops mails

Moderator: crythias

Post Reply
jebbhb
Znuny newbie
Posts: 19
Joined: 22 Dec 2015, 22:30
Znuny Version: 4.0.14-02
Real Name: Javier Eduardo Bateman Barbosa
Company: Netcom Wireless SA

Error fetching pops mails

Post by jebbhb »

Hi

I've got otrs 5.0.6, and some time ago, the system was fetching mails without any issue.

From a couple of days ago, it doesn't fetch mails automatically.

I have a gmail account using pop3s, and there are some errores in log files.

Code: Select all

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-00 Perl: 5.10.1 OS: linux Time: Wed Jan 27 14:16:03 2016

 Message: There was an error executing Fetch() in Kernel::System::FetchMail: ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-00 Perl: 5.10.1 OS: linux Time: Wed Jan 27 14:16:03 2016

 Message: FetchMail bin was not found

 Traceback (10382):
   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
Any clue what could this be?

Regards!
root
Administrator
Posts: 3983
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Error fetching pops mails

Post by root »

jebbhb wrote: Message: FetchMail bin was not found
Looks like the fetchmail binary is missing/not found.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
jebbhb
Znuny newbie
Posts: 19
Joined: 22 Dec 2015, 22:30
Znuny Version: 4.0.14-02
Real Name: Javier Eduardo Bateman Barbosa
Company: Netcom Wireless SA

Re: Error fetching pops mails

Post by jebbhb »

Looks like the fetchmail binary is missing/not found.
But, do you know how get this file lost?, I do not have enough experience with it so I start deleting files. Of course, I don't know how to solve this.

When I run the locate file, it founds /opt/otrs/Kernel/System/FetchMail.pm . Is this file the one that is needed?

Thanks!
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Error fetching pops mails

Post by jnelson »

I'd try a "yum update" or "yum reinstall postfix" or "yum reinstall fetchmail"
OTRS 5 on CentOS 7.1
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Error fetching pops mails

Post by jnelson »

jebbhb wrote:
Looks like the fetchmail binary is missing/not found.
But, do you know how get this file lost?, I do not have enough experience with it so I start deleting files. Of course, I don't know how to solve this.

When I run the locate file, it founds /opt/otrs/Kernel/System/FetchMail.pm . Is this file the one that is needed?

Thanks!
No that's the configuration file. Look in /usr/bin/fetchmail
OTRS 5 on CentOS 7.1
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Error fetching pops mails

Post by jnelson »

jebbhb wrote:
Looks like the fetchmail binary is missing/not found.
But, do you know how get this file lost?, I do not have enough experience with it so I start deleting files. Of course, I don't know how to solve this.

When I run the locate file, it founds /opt/otrs/Kernel/System/FetchMail.pm . Is this file the one that is needed?

Thanks!

This triggers other questions however. It's not by default enabled. Is it enabled in your sysconfig? Check Framework -> Core::Fetchmail and disable it if it is and try your mail check again. I suspect it got enabled accidentally somehow.
OTRS 5 on CentOS 7.1
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Error fetching pops mails

Post by jojo »

OTRS is per default not using fetchmail to retreive mails, it is using its own backend per default (PostMasterMailbox)

So check your daemon settings (switch of fetchmail) and analyse the logfiles.
"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
jebbhb
Znuny newbie
Posts: 19
Joined: 22 Dec 2015, 22:30
Znuny Version: 4.0.14-02
Real Name: Javier Eduardo Bateman Barbosa
Company: Netcom Wireless SA

Re: Error fetching pops mails

Post by jebbhb »

jnelson wrote:I'd try a "yum update" or "yum reinstall postfix" or "yum reinstall fetchmail"
Done it ..... didn't work
jnelson wrote: No that's the configuration file. Look in /usr/bin/fetchmail
There's no files or directories under /usr/bin/ with "fetchmail".
jnelson wrote:This triggers other questions however. It's not by default enabled. Is it enabled in your sysconfig? Check Framework -> Core::Fetchmail and disable it if it is and try your mail check again. I suspect it got enabled accidentally somehow.
Done it .... same results.
jojo wrote:OTRS is per default not using fetchmail to retreive mails, it is using its own backend per default (PostMasterMailbox)
So check your daemon settings (switch of fetchmail) and analyse the logfiles.
All my logs are like these

Code: Select all

ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-00 Perl: 5.10.1 OS: linux Time: Mon Feb  1 19:24:06 2016

 Message: There was an error executing Fetch() in Kernel::System::FetchMail: ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-00 Perl: 5.10.1 OS: linux Time: Mon Feb  1 19:24:06 2016

 Message: FetchMail bin was not found

 Traceback (8411):
   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

As I said before ..... I'm no developer, so I don't understand those files so I can search for 138 Line (according to the log files) and get whats goin' on.

I have no clue where the problem could it be, or where can I find another hint about it.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Error fetching pops mails

Post by jojo »

check your sysconfig, switch of fetchmal for the daemon. Just use the PostMasterMailbox part.

You don't have to be developer to configure OTRS or to understand config files. Your Linux Systemadmi should have the knowledge to support you. Otherwise you should consider getting professional support or switch to a managed system
"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
jnelson
Znuny newbie
Posts: 72
Joined: 18 Jul 2014, 14:40
Znuny Version: 5.0.4
Real Name: Jerry Nelson

Re: Error fetching pops mails

Post by jnelson »

jojo wrote:You don't have to be developer to configure OTRS or to understand config files. Your Linux Systemadmi should have the knowledge to support you. Otherwise you should consider getting professional support or switch to a managed system
^^^^ This right here. Linux sysadmin skills required.
OTRS 5 on CentOS 7.1
Post Reply