[RESOLVED] Generic Agent randomly does not run jobs

Moderator: crythias

Locked
yackleym
Znuny newbie
Posts: 2
Joined: 12 Sep 2012, 19:08
Znuny Version: 3.0.11

[RESOLVED] Generic Agent randomly does not run jobs

Post by yackleym »

Hi All,

I recently noticed that my OTRS 3.0.11 system is having issues when running scheduled jobs. I have a batch of jobs that are supposed to run every ten minutes, but now it seems that it randomly does not run all of the scheduled jobs. Checking /var/log/messages, it does not show any errors, just that it sometimes does not run the full list of jobs.

Here is an example of searching for entries pertaining to one job that should run every 10 minutes, you can see that it does not and the times that are missed do tend to vary. Any suggestions on where to start looking? Thanks!

Sep 12 13:00:02 pw01hd OTRS-otrs.GenericAgent.pl-2[1541]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 13:20:03 pw01hd OTRS-otrs.GenericAgent.pl-2[2223]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 13:40:01 pw01hd OTRS-otrs.GenericAgent.pl-2[2939]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 13:50:02 pw01hd OTRS-otrs.GenericAgent.pl-2[3278]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 14:10:02 pw01hd OTRS-otrs.GenericAgent.pl-2[4003]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 14:30:02 pw01hd OTRS-otrs.GenericAgent.pl-2[4706]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 14:40:02 pw01hd OTRS-otrs.GenericAgent.pl-2[5085]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 15:00:02 pw01hd OTRS-otrs.GenericAgent.pl-2[5821]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 15:20:04 pw01hd OTRS-otrs.GenericAgent.pl-2[6504]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 15:40:03 pw01hd OTRS-otrs.GenericAgent.pl-2[7304]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 16:00:02 pw01hd OTRS-otrs.GenericAgent.pl-2[7988]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 16:10:02 pw01hd OTRS-otrs.GenericAgent.pl-2[8331]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 16:20:02 pw01hd OTRS-otrs.GenericAgent.pl-2[8664]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 16:30:05 pw01hd OTRS-otrs.GenericAgent.pl-2[9004]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 16:40:06 pw01hd OTRS-otrs.GenericAgent.pl-2[9389]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.
Sep 12 17:00:02 pw01hd OTRS-otrs.GenericAgent.pl-2[10088]: [Notice][Kernel::System::GenericAgent::JobRun] Run GenericAgent Job 'Move DA-Dallas' from db.

EDIT: It is not just this one job, it sometimes runs more of the jobs than other times. Sometimes it runs all the jobs, other times it runs half or a third, etc.
OTRS 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers.
yackleym
Znuny newbie
Posts: 2
Joined: 12 Sep 2012, 19:08
Znuny Version: 3.0.11

Re: [RESOLVED] Generic Agent randomly does not run jobs

Post by yackleym »

It appears that we were being hit by a known bug, "Skipped GenericAgent.pl cron executions" http://bugs.otrs.org/show_bug.cgi?id=5782

I manually patched the otrs.GenericAgent.pl and that appears to have resolved our issue for now, while we wait for a maint window to bring the system up to date.
OTRS 3.0 on Linux with MySQL database connected to an Active Directory for Agents and Customers.
Locked