OTRS 5 not running generic agent jobs

Moderator: crythias

silviu
OTRS newbie
Posts: 1
Joined: 10 Jan 2018, 13:39
OTRS Version?: 5.0.7-01

OTRS 5 not running generic agent jobs

Postby silviu » 10 Jan 2018, 14:51

Hello,

I am having problems running generic agent jobs. If i run them manually, the work fine.
I do not have much in crontab for user otrs

#################################
# Who gets the cron emails?
MAILTO="root@localhost"

#check mails every 3 minutes
*/3 * * * * $HOME/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --force-pid >> /dev/null

# check OTRS daemon status
*/5 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null
#################################

By the way, the automatic fetching of emails does not work so i had to do that manually in cron, but that's another issue.
I coud not find any otrs.GenericAgent.pl file on the otrs server and the command

$HOME/bin/otrs.Console.pl Maint::GenericAgent::Run --configuration-module db

ended up with an error:

[otrs@otrs2 otrs]$ $HOME/bin/otrs.Console.pl Maint::GenericAgent::Run --configuration-module db
[Wed Jan 10 14:49:46 2018] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 211.
[Wed Jan 10 14:49:46 2018] otrs.Console.pl: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs/Kernel/System/Log.pm line 211.
ERROR: OTRS-otrs.Console.pl-Maint::GenericAgent::Run-52 Perl: 5.10.1 OS: linux Time: Wed Jan 10 14:49:46 2018

Message: Module db.pm not in @INC (/opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)

Traceback (889):
Module: Kernel::System::Console::Command::Maint::GenericAgent::Run::PreRun Line: 68
Module: (eval) Line: 430
Module: Kernel::System::Console::BaseCommand::Execute Line: 430
Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
Module: /opt/otrs//bin/otrs.Console.pl Line: 38

Error: Could not load agent job file 'db':

Can you please help me? I am tired of running the jobs manually every day.

Thank you!

fcasal
OTRS newbie
Posts: 49
Joined: 21 Apr 2014, 16:14
OTRS Version?: 6.0.5

Re: OTRS 5 not running generic agent jobs

Postby fcasal » 10 Jan 2018, 15:43

First of all, update to last 5 version.

Then try again.

Best regards.

wurzel
OTRS guru
Posts: 2283
Joined: 08 Jul 2010, 22:25
OTRS Version?: 6.0.x

Re: OTRS 5 not running generic agent jobs

Postby wurzel » 11 Jan 2018, 00:14

Hi,

the only cronjob running should be
*/5 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null

Florian
    OTRS 6.0.x, LAMP LIVE auf Debian 9
    OTRS Business Solution™ 5 Managed Silver

    -- ich gebe keine Unterstützung für die Windows Installation :-) I don't support Windows installations :)
    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.


    Return to “Help”

    Who is online

    Users browsing this forum: No registered users and 5 guests