Re: [Koha] Crontab appearing to not run
Shawn, Do you have lines like the following in your crontab? PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml Be sure to change paths to whatever is appropriate for your installation. 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 11:05:13 AM To: "Randall Rowe" <r.rowe@lincolnlibraries.org>, "koha@lists.katipo.co.nz" <koha@lists.katipo.co.nz> Subject: RE: [Koha] Crontab appearing to not run 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$
Hi Randy, I have the following two lines in the crontab file. PERL5LIB=/home/koha/kohaclone KOHA_CONF=/home/koha/kohaclone/etc/koha-conf.xml Thanks, Shawn
The KOHA_CONF to the kohaclone - most likely is not the correct file. You want to either point to the koha-conf.xml file that is in your koha-dev (dev install) or to the one found in /etc/koha/koha-conf.xml (production or single install) -Brendan Gallagher ByWater Solutions CEO On Dec 16, 2010, at 10:20 AM, Fogg, Shawn (DPH) wrote:
Hi Randy,
I have the following two lines in the crontab file.
PERL5LIB=/home/koha/kohaclone KOHA_CONF=/home/koha/kohaclone/etc/koha-conf.xml
Thanks,
Shawn
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi Brendan, "The KOHA_CONF to the kohaclone - most likely is not the correct file. You want to either point to the koha-conf.xml file that is in your koha-dev (dev install) or to the one found in /etc/koha/koha-conf.xml (production or single install)" I don't have an /etc/koha/koha-conf.xml file. The KOHA_CONF is point to a valid file, just maybe not the correct one. How do I tell if the existing file or the one in /home/koha/koha-dev/koha-conf.xml is the proper file? I am using the Koha virtual appliance from: http://kylehall.info/index.php/projects/koha/koha-virtual-appliance/ So I don't know which way it was installed. Thanks, Shawn
Hi, "You want to either point to the koha-conf.xml file that is in your koha-dev (dev install) or to the one found in /etc/koha/koha-conf.xml (production or single install)" I think this is the problem. When I look at env in the shell it is showing KOHA_CONF=/home/koha/koha-dev/etc/koha-conf.xml So I changed the crontab file to match this and now I think it ran the library rebuild as a book I added showed up and I am not seeing a new mail entry. THANK YOU!!!! Shawn
"Fogg, Shawn (DPH)" <Shawn.Fogg@state.ma.us> wrote:
I have the following two lines in the crontab file.
PERL5LIB=/home/koha/kohaclone KOHA_CONF=/home/koha/kohaclone/etc/koha-conf.xml
By the look of that error email including __PLACEHOLDERS__, I think the /home/koha/kohaclone/etc/koha-conf.xml is not a valid config file. Did the "perl Makefile.PL" and "make install" installation steps complete without errors or warnings? It's not impossible to replace the placeholders manually. It's just painful. Regards, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. Past Koha Release Manager (2.0), LMS programmer, statistician, webmaster. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire for Koha work http://www.software.coop/products/koha
participants (4)
-
Brendan A. Gallagher -
Fogg, Shawn (DPH) -
MJ Ray -
Randall Rowe