[OTRS4] Cron error: Can't load agent job file 'Kernel::Config::GenericAgent':

Moderator: crythias

Locked
Rici
Znuny newbie
Posts: 17
Joined: 04 Dec 2014, 02:24
Znuny Version: OTRS 5.0.19

[OTRS4] Cron error: Can't load agent job file 'Kernel::Config::GenericAgent':

Post by Rici »

Hi all,

I keep seeing this error in my cron jobs:
http://kopy.io/Sp1Oi

Any ideas on what may be causing it?
OTS 5.0.19 - Ubuntu 14.04 - Apache 2.4 - MySQL 5.6
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [OTRS4] Cron error: Can't load agent job file 'Kernel::Config::GenericAgent':

Post by crythias »

Please don't use shortlinks on this website. There's no way to know where they go and you can easily upload and embed pictures directly within this forum. Also, if possible, please don't use pictures for text. It is not accessible for all users.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Rici
Znuny newbie
Posts: 17
Joined: 04 Dec 2014, 02:24
Znuny Version: OTRS 5.0.19

Re: [OTRS4] Cron error: Can't load agent job file 'Kernel::Config::GenericAgent':

Post by Rici »

Hi crythias,

sorry I was just trying to present the error in a more readable manner by using something that highlights syntax.
It's not a shortlink, kopy.io is a service for pasting code.

Here's the error I keep getting in my crons:

Code: Select all

Subject: Cron <otrs@xyzwueaawj> $HOME/bin/otrs.GenericAgent.pl >> /dev/null
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <MAILTO=root@xashejaea.io>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/opt/otrs>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=otrs>
Message-Id: <20141207154002.373CF20EC732@xyzwueaawj>
Date: Sun,  7 Dec 2014 15:40:02 +0000 (UTC)

ERROR: OTRS-otrs.GenericAgent.pl-51 Perl: 5.18.2 OS: linux Time: Sun Dec  7 15:40:02 2014

 Message: Module Kernel/Config/GenericAgent.pm not in @INC (/opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .)

 Traceback (42649):
   Module: /opt/otrs/bin/otrs.GenericAgent.pl Line: 101

ERROR: Can't load agent job file 'Kernel::Config::GenericAgent':
Last edited by Rici on 08 Dec 2014, 23:44, edited 1 time in total.
OTS 5.0.19 - Ubuntu 14.04 - Apache 2.4 - MySQL 5.6
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: [OTRS4] Cron error: Can't load agent job file 'Kernel::Config::GenericAgent':

Post by reneeb »

On the command line:

Code: Select all

cp /opt/otrs/Kernel/Config/GenericAgent.pm.dist /opt/otrs/Kernel/Config/GenericAgent.pm
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Rici
Znuny newbie
Posts: 17
Joined: 04 Dec 2014, 02:24
Znuny Version: OTRS 5.0.19

Re: [OTRS4] Cron error: Can't load agent job file 'Kernel::Config::GenericAgent':

Post by Rici »

Damn that was easy, I thought I renamed all the .dist files in there ... :(

Thanks!!
OTS 5.0.19 - Ubuntu 14.04 - Apache 2.4 - MySQL 5.6
Locked