[SOLVED] Cron jobs not running

Moderator: crythias

Locked
interploy
Znuny newbie
Posts: 30
Joined: 24 Sep 2012, 21:10
Znuny Version: 3.2.3

[SOLVED] Cron jobs not running

Post by interploy »

Hi,

I recently moved servers to CentOS 6.3 and updated to OTRS 3.2.3 and it's mostly good, but the cron jobs are not running.

When I do the command bin/Cron.sh restart otrs (from the /opt/otrs dir), I get the output like it's working:

Code: Select all

/opt/otrs
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.22 $> 
Copyright (C) 2001-2012 xxx, http://otrs.org/
/opt/otrs
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.22 $> 
Copyright (C) 2001-2012 xxx, http://otrs.org/
done
/opt/otrs
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.22 $> 
Copyright (C) 2001-2012 xxx, http://otrs.org/
(using /opt/otrs) done
but then if I do: crontab -l

I get no output. The same applies if I su to the otrs user first.

If I run the commands from the command line they work and I've already made sure the otrs user's home dir and the Home setting in Kernal/Config.pm are the same (/opt/otrs/).

Any any ideas what I'm doing wrong?

Thanks,
-interploy
Last edited by interploy on 01 Apr 2013, 23:56, edited 1 time in total.
OTRS v3.2.3
CentOS 6.3
PostgreSQL 8.4.13
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cron jobs not running

Post by crythias »

interploy wrote: bin/Cron.sh restart otrs
this concatenates all files on otrs/var/cron that do not have .dist appended to the filename.
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
interploy
Znuny newbie
Posts: 30
Joined: 24 Sep 2012, 21:10
Znuny Version: 3.2.3

Re: Cron jobs not running

Post by interploy »

crythias wrote:
interploy wrote: bin/Cron.sh restart otrs
this concatenates all files on otrs/var/cron that do not have .dist appended to the filename.
I haven't made any modifications to files in otrs/var/cron/ and it only has .dist files in it. Do I have to make copies of these files without the .dist and then rerun the Cron.sh or is there some other process/setting? Unfortunately I have no notes on how this was done on the old server.
OTRS v3.2.3
CentOS 6.3
PostgreSQL 8.4.13
interploy
Znuny newbie
Posts: 30
Joined: 24 Sep 2012, 21:10
Znuny Version: 3.2.3

Re: Cron jobs not running

Post by interploy »

If I copy the cron job info into /etc/crontab manually, (commands run as the otrs user of course), would that have any adverse effects on OTRS in terms of logging or other background processing?
OTRS v3.2.3
CentOS 6.3
PostgreSQL 8.4.13
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cron jobs not running

Post by crythias »

Optimally: remove .dist from all files (per INSTALL instructions). Secondarily, you can build crontab -e -u otrs yourself from copy/paste

note that Cron.sh stop empties the cron, so... also, if you're lazy, you can just
cat *.dist > mycrontab
Cron.sh start otrs
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
interploy
Znuny newbie
Posts: 30
Joined: 24 Sep 2012, 21:10
Znuny Version: 3.2.3

Re: Cron jobs not running

Post by interploy »

crythias wrote:Optimally: remove .dist from all files (per INSTALL instructions). Secondarily, you can build crontab -e -u otrs yourself from copy/paste

note that Cron.sh stop empties the cron, so... also, if you're lazy, you can just
cat *.dist > mycrontab
Cron.sh start otrs
Ach, I completely missed that step in the install! Sorry to bug you with this. Now that I've done it properly, it's working. :/
OTRS v3.2.3
CentOS 6.3
PostgreSQL 8.4.13
Locked