Koha installed version: 3.00.00.107 I'm trying to re-index my catalog and of course, something is not working. I've read tons of documentation and I am still having an issue as the catalog search is not working. As I understand, you must export these two variables before beginning: export KOHA_CONF=/usr/local/koha/etc/koha-conf.xmlexport PERL5LIB=/usr/local/koha/lib I've tried to export them both as root and the user www-data.to whom the files belong I then run the following command: /usr/local/koha/bin/migration_tools/rebuild_zebra.pl -r -b -a If I run the command as root, the indexing starts but I get some rights issues. If I run the command as www-data, the indexing stops immediately on line 5 of the zebra script complaining that it can't find the C4 directory (even though it is exported - (export PERL5LIB=/usr/local/koha/lib) If anyone can give me the correct steps to get the indexing working again, I would be eternally grateful as I've spent the last 15 hours trying to get the index back up. I even went into koha and gave total rights to root where the scripting was failing. Finally it ran and there are files new files created in /usr/local/koha/var/lib/zebradb/authorities/register and in /usr/local/koha/var/lib/zebradb/biblios/register (i.e. sort12-0.mf) but when I restart the server, the catalog search is still not working. I'm assuming that zebra gets the files for indexing from /usr/local/koha/var/lib/zebradb/authorities/register and /usr/local/koha/var/lib/zebradb/biblios/register. Thanks for any suggestions and/or help. Phillp
Hi Philip,
Koha installed version: 3.00.00.107
That's a very old version! Perhaps you can consider an upgrade in the future. There are many new features and bug fixes Current version is Koha 3.12.3 Some thoughts about your problem 1) Method of installation There is something strange in the folders that you report in your mail /usr/local/koha/etc /usr/local/koha/var that tell me that you made a 'single' install on /usr/local/koha Is that the case? There is no problem with that, only the folder location is not standard. 2) File ownership. You tell that www-data is the natural owner of the files? That's the user you choose at install time? You can check that in /usr/local/koha/misc/koha-install.log, search for KOHA_USER and KOHA_GROUP the values in those variables are the real owner/group for your files. 3) Zebra daemon Is zebra-daemon running? You can check that with "ps aux | grep zebra" If not, try to start it and look at /usr/local/var/log/koha/koha-zebradaemon-err.log Here the ownership IS VERY important, check under what user zebra is expecting to run, second and third line in /usr/local/koha/bin/koha-zebra-ctl.sh 4) Indexing NEVER NEVER reindex as root. You must reindex using the user that zebra daemon expects, and not other. If you made a reindex as root, first change ownership of files to the user that zebra needs and then reindex as such user. Regards, Bernardo
I'm trying to re-index my catalog and of course, something is not working.
I've read tons of documentation and I am still having an issue as the catalog search is not working.
As I understand, you must export these two variables before beginning:
export KOHA_CONF=/usr/local/koha/etc/koha-conf.xmlexport PERL5LIB=/usr/local/koha/lib
I've tried to export them both as root and the user www-data.to whom the files belong
I then run the following command:
/usr/local/koha/bin/migration_tools/rebuild_zebra.pl -r -b -a
If I run the command as root, the indexing starts but I get some rights issues. If I run the command as www-data, the indexing stops immediately on line 5 of the zebra script complaining that it can't find the C4 directory (even though it is exported - (export PERL5LIB=/usr/local/koha/lib)
If anyone can give me the correct steps to get the indexing working again, I would be eternally grateful as I've spent the last 15 hours trying to get the index back up. I even went into koha and gave total rights to root where the scripting was failing. Finally it ran and there are files new files created in /usr/local/koha/var/lib/zebradb/authorities/register and in /usr/local/koha/var/lib/zebradb/biblios/register (i.e. sort12-0.mf) but when I restart the server, the catalog search is still not working.
I'm assuming that zebra gets the files for indexing from /usr/local/koha/var/lib/zebradb/authorities/register and /usr/local/koha/var/lib/zebradb/biblios/register.
Thanks for any suggestions and/or help.
Phillp
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Thanks everyone, I've resolved this issue. From: pponchot@live.com To: koha@lists.katipo.co.nz CC: tammy@livingstonpubliclibrary.org Subject: Zebra Indexing Date: Mon, 19 Aug 2013 06:33:35 -0700 Koha installed version: 3.00.00.107 I'm trying to re-index my catalog and of course, something is not working. I've read tons of documentation and I am still having an issue as the catalog search is not working. As I understand, you must export these two variables before beginning: export KOHA_CONF=/usr/local/koha/etc/koha-conf.xmlexport PERL5LIB=/usr/local/koha/lib I've tried to export them both as root and the user www-data.to whom the files belong I then run the following command: /usr/local/koha/bin/migration_tools/rebuild_zebra.pl -r -b -a If I run the command as root, the indexing starts but I get some rights issues. If I run the command as www-data, the indexing stops immediately on line 5 of the zebra script complaining that it can't find the C4 directory (even though it is exported - (export PERL5LIB=/usr/local/koha/lib) If anyone can give me the correct steps to get the indexing working again, I would be eternally grateful as I've spent the last 15 hours trying to get the index back up. I even went into koha and gave total rights to root where the scripting was failing. Finally it ran and there are files new files created in /usr/local/koha/var/lib/zebradb/authorities/register and in /usr/local/koha/var/lib/zebradb/biblios/register (i.e. sort12-0.mf) but when I restart the server, the catalog search is still not working. I'm assuming that zebra gets the files for indexing from /usr/local/koha/var/lib/zebradb/authorities/register and /usr/local/koha/var/lib/zebradb/biblios/register. Thanks for any suggestions and/or help. Phillp
participants (2)
-
Bernardo Gonzalez Kriegel -
Phillip Ponchot