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!
OTRS 5 not running generic agent jobs
Moderator: crythias
Re: OTRS 5 not running generic agent jobs
First of all, update to last 5 version.
Then try again.
Best regards.
Then try again.
Best regards.
Re: OTRS 5 not running generic agent jobs
Hi,
the only cronjob running should be
*/5 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null
Florian
the only cronjob running should be
*/5 * * * * $HOME/bin/otrs.Daemon.pl start >> /dev/null
Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- 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.
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- 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.