Has anyone experienced a problem running rebuild_zebra.pl in a sh script running in crontab? The rebuild_zebra doesn't delete or update the existing index (I'm using the -r switch) and if I manually delete the index files through the script the rebuild_zebra doesn't recreate them. If I run the rebuild_zebra script manually it runs successfully and recreates the index files. James Winter Arcadia University <http://www.arcadia.edu/> Systems Manager 215.517.2588 winterj@arcadia.edu <mailto:winterj@arcadia.edu>
I would check the userid under which the crontab job is run vs. the userid who is the owner of the /var/lib/koha/zebradb/* directories (--> the write rights to the index files). Also the KOHA_CONF and PERL5LIB environment variables are to be considered. Greetings, Janusz Kaczmarek Winter, James napisa?(a):
Has anyone experienced a problem running rebuild_zebra.pl in a sh script running in crontab?
The rebuild_zebra doesn't delete or update the existing index (I'm using the --r switch) and if I manually delete the index files through the script the rebuild_zebra doesn't recreate them. If I run the rebuild_zebra script manually it runs successfully and recreates the index files.
*James Winter*
*/Arcadia University <http://www.arcadia.edu/>/*
Systems Manager
215.517.2588
winterj@arcadia.edu <mailto:winterj@arcadia.edu>
------------------------------------------------------------------------
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Winter, James a écrit :
Has anyone experienced a problem running rebuild_zebra.pl in a sh script running in crontab?
The rebuild_zebra doesn’t delete or update the existing index (I’m using the –r switch) and if I manually delete the index files through the script the rebuild_zebra doesn’t recreate them. If I run the rebuild_zebra script manually it runs successfully and recreates the index files.
You should check that zebraidx is in default PATH, if not, add its location to path before running cron script. Hope that helps. -- Henri-Damien LAURENT
From the output of the cronjob I can see that the zebra index is running successfully. But it doesn't create the index files. I've checked the permissions on the folder, and if I run rebuild_zebra under the same user that the cronjob script is running it runs successfully and creates the indexes. Any other ideas? James Winter 215.517.2588 -----Original Message----- From: Henri-Damien LAURENT [mailto:laurenthdl@alinto.com] Sent: Monday, December 08, 2008 11:15 AM To: Winter, James Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Zebra rebuild running in crontab script? Winter, James a écrit :
Has anyone experienced a problem running rebuild_zebra.pl in a sh script running in crontab?
The rebuild_zebra doesn’t delete or update the existing index (I’m using the –r switch) and if I manually delete the index files through the script the rebuild_zebra doesn’t recreate them. If I run the rebuild_zebra script manually it runs successfully and recreates the index files.
You should check that zebraidx is in default PATH, if not, add its location to path before running cron script. Hope that helps. -- Henri-Damien LAURENT
participants (3)
-
Henri-Damien LAURENT -
Janusz Kaczmarek -
Winter, James