Re: [Koha] Crontab appearing to not run
Check the mail for the koha user (type "mail" at the command prompt. If the cronjob isn't executing properly you should be getting an email that might contain the needed clue to the reason it's not. Randy Rowe Lincoln City Libraries I.T. (402) 441-8523 r.rowe@lincolnlibraries.org -----Original Message----- From: "Fogg, Shawn (DPH)" <Shawn.Fogg@state.ma.us> Sent 12/16/2010 9:58:29 AM To: "koha@lists.katipo.co.nz" <koha@lists.katipo.co.nz> Subject: [Koha] Crontab appearing to not run Hi, I need a little basic help with crontab and re-indexing the database. I am using one of the pre-build virtual machines with v3.03.00.004. I SSH into the system using the koha user. When in that user I can run: /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z and it will properly reindex the database so that new catalog entries will show up. If I do: crontab -l in the list I have an entry of: */10 * * * * /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null Which I believe should re-index the database every 10 minutes. This isn't occurring though and I have not been able to figure out why. I don't know if it means anything but the rebuild_zebra is a little funny. If I move into the migration_tools directory I can't simply run rebuild_zebra.pl -b -a -z. It comes back with command not found. The only way I can run it is using the fully qualified path. Any thoughts as to what I am doing wrong? Thanks, Shawn _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha ����������
Hi Randy, Thanks, checking the mail shows crontab is running but with errors. One email is copied below. Any thoughts on how to correct this? Thanks, Shawn __________________________________________________
From koha@koha Thu Dec 16 11:40:02 2010 Return-path: <koha@koha> Envelope-to: koha@koha Delivery-date: Thu, 16 Dec 2010 11:40:02 -0500 Received: from koha by koha with local (Exim 4.69) (envelope-from <koha@koha>) id 1PTGs6-0005yI-Ij for koha@koha; Thu, 16 Dec 2010 11:40:02 -0500 From: root@koha (Cron Daemon) To: koha@koha Subject: Cron <koha@koha> /home/koha/kohaclone/misc/migration_tools/rebuild_zebra.pl -b -a -z >/dev/null Content-Type: text/plain; charset=UTF-8 X-Cron-Env: <PERL5LIB=/home/koha/kohaclone> X-Cron-Env: <KOHA_CONF=/home/koha/kohaclone/etc/koha-conf.xml> X-Cron-Env: <KOHA_CRON_PATH=/home/koha/kohaclone/misc/cronjobs> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/koha> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=koha> Message-Id: <E1PTGs6-0005yI-Ij@koha> Date: Thu, 16 Dec 2010 11:40:02 -0500
Use of uninitialized value $db_driver in concatenation (.) or string at /home/koha/kohaclone/C4/Context.pm line 692. Can't connect to data source 'dbname=__DB_NAME__;host=__DB_HOST__;port=__DB_PORT__' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set$
participants (2)
-
Fogg, Shawn (DPH) -
Randall Rowe