Cron Failing $KOHAPATH/bin/migration_tools/rebuild_zebra.pl -a
Hi Everyone, When trying to run the Cron for Rebuild Zebra using sudo perl rebuild_zebra.pl ort perl rebuild_zebra.pl I get the below error Any assistance is appreciated :) root@Koha:/usr/share/koha/bin/migration_tools# perl rebuild_zebra.pl Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl /5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/pe rl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at rebuild_zebra.pl line 6. BEGIN failed--compilation aborted at rebuild_zebra.pl line 6.
* Chris Downs (chris.downs@blueglobe.co.nz) wrote:
Hi Everyone,
When trying to run the Cron for Rebuild Zebra using sudo perl rebuild_zebra.pl ort perl rebuild_zebra.pl I get the below error
Take a look at misc/cronjobs/crontab.example for how to export the variables properly. Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
Thanks Chris I'll have a look and let you know the outcome -----Original Message----- From: Chris Cormack [mailto:chrisc@catalyst.net.nz] Sent: Monday, 1 August 2011 10:03 p.m. To: Chris Downs Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Cron Failing $KOHAPATH/bin/migration_tools/rebuild_zebra.pl -a * Chris Downs (chris.downs@blueglobe.co.nz) wrote:
Hi Everyone,
When trying to run the Cron for Rebuild Zebra using sudo perl rebuild_zebra.pl ort perl rebuild_zebra.pl I get the below error
Take a look at misc/cronjobs/crontab.example for how to export the variables properly. Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
Chris D., the relevant lines in the file that Chris C. mentioned are -- # ENVIRONMENT: # First, establish Koha's two important ENV variables. PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml -- and -- # ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day # for both authorities and bibs */10 * * * * $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z
/dev/null --
Your error is due to not having properly set the environment. B. -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Mon, Aug 1, 2011 at 7:09 AM, Chris Downs <chris.downs@blueglobe.co.nz>wrote:
Thanks Chris
I'll have a look and let you know the outcome
-----Original Message----- From: Chris Cormack [mailto:chrisc@catalyst.net.nz] Sent: Monday, 1 August 2011 10:03 p.m. To: Chris Downs Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Cron Failing $KOHAPATH/bin/migration_tools/ rebuild_zebra.pl -a
* Chris Downs (chris.downs@blueglobe.co.nz) wrote:
Hi Everyone,
When trying to run the Cron for Rebuild Zebra using sudo perl rebuild_zebra.pl ort perl rebuild_zebra.pl I get the below error
Take a look at misc/cronjobs/crontab.example
for how to export the variables properly.
Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Chris D., the relevant lines in the file that Chris C. mentioned are -- # ENVIRONMENT: # First, establish Koha's two important ENV variables. PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml -- and -- # ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day # for both authorities and bibs */10 * * * * $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z
/dev/null --
Your error is due to not having properly set the environment. B. -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Mon, Aug 1, 2011 at 7:09 AM, Chris Downs <chris.downs@blueglobe.co.nz>wrote:
Thanks Chris
I'll have a look and let you know the outcome
-----Original Message----- From: Chris Cormack [mailto:chrisc@catalyst.net.nz] Sent: Monday, 1 August 2011 10:03 p.m. To: Chris Downs Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Cron Failing $KOHAPATH/bin/migration_tools/ rebuild_zebra.pl -a
* Chris Downs (chris.downs@blueglobe.co.nz) wrote:
Hi Everyone,
When trying to run the Cron for Rebuild Zebra using sudo perl rebuild_zebra.pl ort perl rebuild_zebra.pl I get the below error
Take a look at misc/cronjobs/crontab.example
for how to export the variables properly.
Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Chris Downs <chris.downs@blueglobe.co.nz> writes:
When trying to run the Cron for Rebuild Zebra using sudo perl rebuild_zebra.pl ort perl rebuild_zebra.pl I get the below error
root@Koha:/usr/share/koha/bin/migration_tools# perl rebuild_zebra.pl
But why run it as root? you ought to be running the cron job as the user running koha database (but that would not prevent your problem). -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
participants (4)
-
Bernardo Gonzalez Kriegel -
Chris Cormack -
Chris Downs -
Mahesh T Pai