OTRS 5.0.11 Stopped Picking Up Email / Fixed

Moderator: crythias

Locked
penrod
Znuny newbie
Posts: 2
Joined: 12 Aug 2016, 23:12
Znuny Version: 5.0.11-01
Real Name: John Penrod
Company: Transcend Networks, Inc.

OTRS 5.0.11 Stopped Picking Up Email / Fixed

Post by penrod »

Two days ago, I lost power and my OTRS server crashed. At that point, when it was brought backup, it stopped picking up mail from any email account.

I've attached one of the error logs to this thread. Also, here is a snippet.

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-68 Perl: 5.16.3 OS: linux Time: Fri Aug 12 15:10:17 2016
 Message: 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.
As suggested in another thread, I manually ran this command below as the OTRS user.

Code: Select all

/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --force-pid
After that everything started working with no issues. No other changes were made and now it is picking up email every five minutes with no issue. Even after a reboot, the process is now working.

Can anyone tell me why this fixed it and what potentially was wrong to start with?
SchedulerTaskWorkerERR-1471031102.txt
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 5.0.11 Stopped Picking Up Email / Fixed

Post by root »

Hi John,

Maybe this will explain it: whene this job is running the process id (PID) is stored to prevent this job from parallel execution. After finishing the PID is removed. I guess you lost the power while running this job and of course the PID file was not removed.


hth, Roy
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 ?
penrod
Znuny newbie
Posts: 2
Joined: 12 Aug 2016, 23:12
Znuny Version: 5.0.11-01
Real Name: John Penrod
Company: Transcend Networks, Inc.

Re: OTRS 5.0.11 Stopped Picking Up Email / Fixed

Post by penrod »

Roy, thanks for the reply! That explains it perfectly. I'll know to look for that if it happens again.
JP

root wrote:Hi John,

Maybe this will explain it: whene this job is running the process id (PID) is stored to prevent this job from parallel execution. After finishing the PID is removed. I guess you lost the power while running this job and of course the PID file was not removed.


hth, Roy
Locked