Generic Agent Not Running

Moderator: crythias

Locked
BravoStore
Znuny newbie
Posts: 14
Joined: 22 Aug 2013, 19:18
Znuny Version: 2.4.15
Real Name: Charles Dickstein
Company: Bravo Store Systems

Generic Agent Not Running

Post by BravoStore »

I'm still having issues with my generic agent. I've read various posts from the net and cannot determine why the agent is refusing to run. Here is some data that might help. Also note that I have removed the .dist from all file extensions.

Execute Crontab Command
[root@OTRS ~]# crontab -l -u root
# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent.dist,v 1.12 2009/02/16 20:53:10 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 20 minutes
*/20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null

# example to execute GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
You have mail in /var/spool/mail/root
Generic Agent.pl File
# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent.dist,v 1.12 2009/02/16 20:53:10 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 20 minutes
*/20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null
Messages being delivered to my root log
From root@OTRS.localdomain Fri Aug 30 16:00:01 2013
Return-Path: <root@OTRS.localdomain>
X-Original-To: root
Delivered-To: root@OTRS.localdomain
Received: by OTRS.localdomain (Postfix, from userid 0)
id 40D3012113F; Fri, 30 Aug 2013 16:00:01 -0700 (PDT)
From: root@OTRS.localdomain (Cron Daemon)
To: root@OTRS.localdomain
Subject: Cron <root@OTRS> $HOME/bin/GenericAgent.pl >> /dev/null
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20130830230001.40D3012113F@OTRS.localdomain>
Date: Fri, 30 Aug 2013 16:00:01 -0700 (PDT)

/bin/sh: /root/bin/GenericAgent.pl: No such file or directory
Operating system and OTRS version are in signature. What am I missing? Why isn't this agent running?
CentOS Release 6.4
Kernel Linux 2.6.32
Gnome 2.28.2

OTRS 2.4.15
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Generic Agent Not Running

Post by crythias »

BravoStore wrote: crontab -l -u root
BravoStore wrote:*/20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null
BravoStore wrote:/bin/sh: /root/bin/GenericAgent.pl: No such file or directory
$HOME of root is /root
$HOME of otrs is /opt/otrs
.
the crontab should be run as the otrs user
bin/Cron.sh start otrs
also crontab -e root and clear it out (of otrs related things)
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
Locked