Hi All, I'm getting a error whilst trying to update the zebra index. Therefore I cannot view any updates in my catalogue. ERROR: Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 6. BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 6. Thank you in advance. Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3382983.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Try putting these lines in your ~/.bashrc, substituting the actual path to koha: export KOHA_CONF=/some/path/to/koha/etc/koha-conf.xml export PERL5LIB=/some/path/to/koha/lib The second line will tell perl where to find koha's internal lib's, like Context.pm. ----- Original Message ----- From: "sheldon_tappin" <thecarterii@hotmail.com> To: <koha@lists.katipo.co.nz> Sent: Saturday, February 12, 2011 1:01 PM Subject: [Koha] zebra not rebuilding
Hi All,
I'm getting a error whilst trying to update the zebra index. Therefore I cannot view any updates in my catalogue.
ERROR: Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 6. BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 6.
Thank you in advance.
Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3382983.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
sheldon_tappin wrote:
I'm getting a error whilst trying to update the zebra index. Therefore I cannot view any updates in my catalogue.
ERROR: Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
The PERL5LIB and KOHA_CONF environment variables should be set before running the rebuild_zebra.pl script (or most Koha scripts). export PERL5LIB=... export KOHA_CONF=... You can probably find the values in koha-httpd.conf if not elsewhere. I think this should be at http://koha-community.org/documentation/faq/administration/ but it isn't and I can't edit that page. Who can? Hope that helps, -- 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
On Sat, Feb 12, 2011 at 3:08 PM, MJ Ray <mjr@phonecoop.coop> wrote:
sheldon_tappin wrote:
I'm getting a error whilst trying to update the zebra index. Therefore I cannot view any updates in my catalogue.
ERROR: Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
The PERL5LIB and KOHA_CONF environment variables should be set before running the rebuild_zebra.pl script (or most Koha scripts). export PERL5LIB=... export KOHA_CONF=...
You can probably find the values in koha-httpd.conf if not elsewhere.
I think this should be at http://koha-community.org/documentation/faq/administration/ but it isn't and I can't edit that page. Who can?
It is here: http://koha-community.org/documentation/faq/searching/#18 I'm not sure why you cannot edit it. Did you get Liz to set up your account to edit? Kind Regards, Chris
Chris Nighswonger wrote:
On Sat, Feb 12, 2011 at 3:08 PM, MJ Ray <mjr@phonecoop.coop> wrote:
The PERL5LIB and KOHA_CONF environment variables [...] I think this should be at http://koha-community.org/documentation/faq/administration/ but it isn't and I can't edit that page. Who can?
It is here: http://koha-community.org/documentation/faq/searching/#18
That's not where I'd look and it didn't appear in the site search results.
I'm not sure why you cannot edit it. Did you get Liz to set up your account to edit?
I thought I had, but I can only edit some pages and not the FAQ. Is that normal? Help! :) -- 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
Hi, Can you tell in which file I need to put these: export KOHA_CONF=/etc/koha/koha-conf.xml export PERL5LIB=/usr/share/koha/lib The FAQ 18 says that it needs to be placed in crontab, but when I place it there I'm getting errors. Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384447.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi Folks, in the .profile and /etc/profile files Regards
Date: Mon, 14 Feb 2011 05:23:32 -0800 From: thecarterii@hotmail.com To: koha@lists.katipo.co.nz Subject: Re: [Koha] zebra not rebuilding
Hi,
Can you tell in which file I need to put these: export KOHA_CONF=/etc/koha/koha-conf.xml export PERL5LIB=/usr/share/koha/lib
The FAQ 18 says that it needs to be placed in crontab, but when I place it there I'm getting errors.
Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384447.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On Mon, Feb 14, 2011 at 10:23 AM, sheldon_tappin <thecarterii@hotmail.com> wrote:
Hi,
Can you tell in which file I need to put these: export KOHA_CONF=/etc/koha/koha-conf.xml export PERL5LIB=/usr/share/koha/lib
You can put them in /etc/environment to have a global scope. If you're planning to run more than one koha in your server you might prefer have something like this in your cron definition. For example, create a file: /etc/cron.d/koha_1 with 0/1 * * * * koha KOHA_CONF=/etc/koha_1/koha-conf.xml /usr/share/koha_1/bin/migration_tools/rebuild_zebra..... for the koha_1 install, and so on. Even if you want one koha you might prefer not to populate that global variables. Fr running a "rebuild" from command line, remeber to do it like this: su - koha -c "KOHA_CONF=/etc/koha/koha-conf.xml /path/to/rebuild_zebra.pl PARAMS" To+
sheldon_tappin wrote:
Can you tell in which file I need to put these: export KOHA_CONF=/etc/koha/koha-conf.xml export PERL5LIB=/usr/share/koha/lib
The FAQ 18 says that it needs to be placed in crontab, but when I place it there I'm getting errors.
If you're adding to crontab, do not put "export" in front of it. The export form is for the command-line, if you are about to run a Koha script manually. Hope that helps, -- 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
I put the variables in the crontab file under #environment and it saved it. But I'm still getting the error. I don't know why -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384560.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Sheldon, On Mon, Feb 14, 2011 at 11:47 AM, sheldon_tappin <thecarterii@hotmail.com> wrote:
I put the variables in the crontab file under #environment and it saved it. But I'm still getting the error. I don't know why
You should provide us with: the exact contents of your crontab (copy and paste), the exact error message you're getting (tell us where you get it, /var/log/syslog?) and run the rebuild_zebra script as I told you to see what error you do get and also paste it in your next email to the list. To+
Hi All, I exported the variables in the command line: # export KOHA_CONF=/etc/koha/koha-conf.xml # export PERL5LIB=/usr/share/koha/lib Then I rebuild the index using: /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -z -b -a this worked successfully, but I was only able to find items from a some item types, however I have an item type called 1WLB (One Week Loan Book) this have the most records in the system and I'm getting an error when I search using this item type. After all of the above mentioned was performed, I rebuild the index using: /usr/share/koha/bin/migration_tools/rebuild_nozebra.pl and I was able to find every item in my collection. Now the problem is: I want to use zebra indexing and not zonebra, and why is this happening? Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384645.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
On Mon, Feb 14, 2011 at 12:48 PM, sheldon_tappin <thecarterii@hotmail.com> wrote:
Hi All,
I exported the variables in the command line: # export KOHA_CONF=/etc/koha/koha-conf.xml # export PERL5LIB=/usr/share/koha/lib
Then I rebuild the index using: /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -z -b -a this worked successfully, but I was only able to find items from a some item types, however I have an item type called 1WLB (One Week Loan Book) this have the most records in the system and I'm getting an error when I search using this item type.
After all of the above mentioned was performed, I rebuild the index using: /usr/share/koha/bin/migration_tools/rebuild_nozebra.pl and I was able to find every item in my collection. Now the problem is: I want to use zebra indexing and not zonebra, and why is this happening?
Look for the NoZebra preference on your koha and set it to off. Even when you reindexed your zebra install, the problem you reported had to do with the cron jobs failing, which remains open as far as i can understand. You're mixing several topics. To+
What do you mean to seit to off? The Nozebra choices are: Allowed and Don't allowed. I assumed you mean to set it to Don't allow which by being a double negative means to allow Zebra -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p5723810.htm... Sent from the Koha-general mailing list archive at Nabble.com.
At 09:05 AM 8/20/2012 -0700, ijramirez wrote:
What do you mean to seit to off? The Nozebra choices are: Allowed and Don't allowed. I assumed you mean to set it to Don't allow which by being a double negative means to allow Zebra
What I mean by "seit it off" is _to use zebra_. What I actually wrote on the devel list (not sure why your query|response is in the users list) was: "Verify that "use zebra" is checked" In admin choices, search, the option is: "NoZebra" "Use | Don't use" "the Zebra search engine ..." and I verified that "Use" was checked. Nothing to do with double negatives -- just a plain, single positive, "Use the Zebra search engine." Muchas gracias por su interés en este tema, y tener una buena noche. Paul
Le 14/02/2011 16:48, sheldon_tappin a écrit :
Hi All,
I exported the variables in the command line: # export KOHA_CONF=/etc/koha/koha-conf.xml # export PERL5LIB=/usr/share/koha/lib
Then I rebuild the index using: /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -z -b -a this worked successfully, but I was only able to find items from a some item types, however I have an item type called 1WLB (One Week Loan Book) this have the most records in the system and I'm getting an error when I search using this item type. an idea: could it be just because the code start by a number ? could you switch to WLB1 instead ?
Which error do you get ? -- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08
Hi All, It seems as though everything is working fine. The nozebra system preference is set to off, and i rebuild the nozebra index and I found all my records. I rebuild my zebra index to see if I would get the same problem as before, but I found all my records. Is there however any explanation to twhy this occured, giving that the nozebra system preference was set to off all along. Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384836.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
Add the env variable to the same execution line as the script in the cron config (shown in earlier post). 52 * * * * PERL5LIB=/path/to/koha/lib /path/to/koha/bin/migration_tools/rebuild_zebra.pl -b Or my favorite, edit the script to include the koha lib path. In this case the script is Perl so the added line should look like this: use lib '/path/to/koha/lib'; Inserted before other 'use' lines at the top of the script. ----- Original Message ----- From: "sheldon_tappin" <thecarterii@hotmail.com> To: <koha@lists.katipo.co.nz> Sent: Monday, February 14, 2011 8:47 AM Subject: Re: [Koha] zebra not rebuilding
I put the variables in the crontab file under #environment and it saved it. But I'm still getting the error. I don't know why -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384560.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Added on to this problem i can find a certain type of item type and I cannot find the other type Error: Can't call method "as_usmarc" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 2384. I forgot to mention that I'm using Koha 3.2.2 Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384568.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com.
These (KOHA_CONF and PERL5LIB) are Environment Variables, used by the Unix shell and processes executed under that shell. Assuming you're using some form of *nix (debian, fedora, etc), and that your shell is bash, the easiest way to set environment variables is to put the 'export' lines listed in your bash startup files. For example, a bash shell user will have a '.bashrc' file in their home directory, which is often '/home/yourusername'. As soon as you log in, try doing 'ls -la' and locate .bashrc. Edit or create .bashrc to place the 'export' lines, then log out and back in. After logging back in try running the 'env' command and verify that the variables (KOHA_CONF and PERL5LIB) are now set. These lines won't work as-is in cron because cron does not run a shell. Cron jobs should be shell scripts or programs that provide their own environment information. ----- Original Message ----- From: "sheldon_tappin" <thecarterii@hotmail.com> To: <koha@lists.katipo.co.nz> Sent: Monday, February 14, 2011 7:23 AM Subject: Re: [Koha] zebra not rebuilding
Hi,
Can you tell in which file I need to put these: export KOHA_CONF=/etc/koha/koha-conf.xml export PERL5LIB=/usr/share/koha/lib
The FAQ 18 says that it needs to be placed in crontab, but when I place it there I'm getting errors.
Sheldon -- View this message in context: http://koha.1045719.n5.nabble.com/zebra-not-rebuilding-tp3382983p3384447.htm... Sent from the Koha - Discuss mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (9)
-
Chris Nighswonger -
ijramirez -
Jorge R. -
MJ Ray -
Paul -
Paul Poulain -
sbergeon -
sheldon_tappin -
Tomas Cohen Arazi