I'm probably missing something basic somewhere, but my zebra indexes are not getting created as expected. It looks as if it is creating the index: -bash-4.1$ PERL5LIB=/usr/share/koha/lib:/usr/lib64 ./bin/migration_tools/rebuild_zebra.pl -b -v -r Zebra configuration information ================================ Zebra biblio directory = /var/lib/koha/zebradb/biblios Zebra authorities directory = /var/lib/koha/zebradb/authorities Koha directory = /usr/share/koha/intranet/cgi-bin BIBLIONUMBER in : 999$c BIBLIOITEMNUMBER in : 999$d ================================ skipping authorities ==================== exporting biblio ==================== 401.................................................................................................... Records exported: 489 ==================== REINDEXING zebra ==================== ==================== CLEANING ==================== But nothing gets created: -bash-4.1$ ls -l /var/lib/koha/zebradb/biblios/register total 4 -rwxrwxrwx 1 tanturprod koha 27 Sep 23 09:21 README And it is not a file permissions issue: -bash-4.1$ touch /var/lib/koha/zebradb/biblios/register/junk -bash-4.1$ ls -l /var/lib/koha/zebradb/biblios/register/ total 4 -rw-r--r-- 1 tanturprod koha 0 Oct 3 12:25 junk -rwxrwxrwx 1 tanturprod koha 27 Sep 23 09:21 README What should I be looking for? What am I missing? Thanks, Tom -- ----------------------------------------------------------------------------- Tom Hanstra Sr. Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 208 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556 First of the fall and there she goes back. Bye, bye, bye, bye there! -----------------------------------------------------------------------------
At 12:27 PM 10/3/2013 -0400, Tom Hanstra wrote:
I'm probably missing something basic somewhere, but my zebra indexes are not getting created as expected. It looks as if it is creating the index: [snip] And it is not a file permissions issue: -bash-4.1$ touch /var/lib/koha/zebradb/biblios/register/junk -bash-4.1$ ls -l /var/lib/koha/zebradb/biblios/register/ total 4 -rw-r--r-- 1 tanturprod koha 0 Oct 3 12:25 junk -rwxrwxrwx 1 tanturprod koha 27 Sep 23 09:21 README
You don't say how you've got all your permissions set up, but our 3.8.5 gives: me@sandbox:/$ ls -l /var/lib/koha/zebradb/biblios/register/ total 373700 -rw-rw-r-- 1 koha koha 68657152 Oct 3 16:41 dict-0.mf -rw-rw-r-- 1 koha koha 659456 Oct 3 16:41 gmatch-0.mf -rw-rw-r-- 1 koha koha 31887040 Oct 3 16:41 isambA-0.mf -rw-rw-r-- 1 koha koha 6479616 Oct 3 16:41 isambB-0.mf -rw-rw-r-- 1 koha koha 6965248 Oct 3 16:41 isambC-0.mf -rw-rw-r-- 1 koha koha 43552768 Oct 3 16:41 isambD-0.mf -rw-r--r-- 1 koha koha 27 Sep 21 2012 README -rw-rw-r-- 1 koha koha 8192 Oct 3 16:41 recdA-0.mf -rw-rw-r-- 1 koha koha 203382784 Oct 3 16:41 recdB-0.mf etc, etc... Best - Paul
Thanks, but the user "tanturprod" is the one doing the indexing and it does have permissions to write to that directory. If there were some way to get more logging from zebra, I might be able to tell what it thinks it is doing when it is indexing but not actually writing data. Is there a more verbose logging method? Tom On 10/3/13 12:55 PM, Paul wrote:
At 12:27 PM 10/3/2013 -0400, Tom Hanstra wrote:
I'm probably missing something basic somewhere, but my zebra indexes are not getting created as expected. It looks as if it is creating the index: [snip] And it is not a file permissions issue: -bash-4.1$ touch /var/lib/koha/zebradb/biblios/register/junk -bash-4.1$ ls -l /var/lib/koha/zebradb/biblios/register/ total 4 -rw-r--r-- 1 tanturprod koha 0 Oct 3 12:25 junk -rwxrwxrwx 1 tanturprod koha 27 Sep 23 09:21 README You don't say how you've got all your permissions set up, but our 3.8.5 gives:
me@sandbox:/$ ls -l /var/lib/koha/zebradb/biblios/register/ total 373700 -rw-rw-r-- 1 koha koha 68657152 Oct 3 16:41 dict-0.mf -rw-rw-r-- 1 koha koha 659456 Oct 3 16:41 gmatch-0.mf -rw-rw-r-- 1 koha koha 31887040 Oct 3 16:41 isambA-0.mf -rw-rw-r-- 1 koha koha 6479616 Oct 3 16:41 isambB-0.mf -rw-rw-r-- 1 koha koha 6965248 Oct 3 16:41 isambC-0.mf -rw-rw-r-- 1 koha koha 43552768 Oct 3 16:41 isambD-0.mf -rw-r--r-- 1 koha koha 27 Sep 21 2012 README -rw-rw-r-- 1 koha koha 8192 Oct 3 16:41 recdA-0.mf -rw-rw-r-- 1 koha koha 203382784 Oct 3 16:41 recdB-0.mf etc, etc...
Best - Paul
-- ----------------------------------------------------------------------------- Tom Hanstra Sr. Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 208 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556 First of the fall and there she goes back. Bye, bye, bye, bye there! -----------------------------------------------------------------------------
Greetings,
Thanks, but the user "tanturprod" is the one doing the indexing and it does have permissions to write to that directory.
Paul's example comes from a tarball installation. This is why he has koha as user and group. You didn't mention how you installed koha (apt-get install koha-common, tarball, git) either. However, his example does lead to the point that the issue is not just directory permissions alone, but also the files in the directory. If one of your files has gotten the wrong permissions, a rebuild/reindex won't work, because it can't recreate/overwrite that file. And if you recreate it as root, then reindexing won't work on a forward basis. In my /var/lib/koha/library/biblios directory I have 4 subdirectories: key register shadow tmp You only showed register in your email. I have a package installation. Your path suggests a tarball installation. You only showed one directory. Did you check all the subdirectories? Just some further thoughts. GPML, Mark Tompsett
Thanks, Mark. My problem is that I'm not getting *any* output at all from the index run. Despite the output on the screen, I get no records in any of the zebra index directories. So I've got to have something even more basic not working quite right. I just have not been able to track it down yet. I did, just for test sake, try it as root as well. Nothing that way either. My install of Koha was from the tarball. For Zebra, I used the CentOS rpm's. This is all on RHEL6. Tomorrow I'll try compiling Zebra to see if that might be where the problem lies. Since Koha works but Zebra does not, that will be my focus. Tom On 10/3/13 4:14 PM, Mark Tompsett wrote:
Greetings,
Thanks, but the user "tanturprod" is the one doing the indexing and it does have permissions to write to that directory. Paul's example comes from a tarball installation. This is why he has koha as user and group. You didn't mention how you installed koha (apt-get install koha-common, tarball, git) either.
However, his example does lead to the point that the issue is not just directory permissions alone, but also the files in the directory. If one of your files has gotten the wrong permissions, a rebuild/reindex won't work, because it can't recreate/overwrite that file. And if you recreate it as root, then reindexing won't work on a forward basis.
In my /var/lib/koha/library/biblios directory I have 4 subdirectories: key register shadow tmp You only showed register in your email. I have a package installation. Your path suggests a tarball installation. You only showed one directory. Did you check all the subdirectories?
Just some further thoughts.
GPML, Mark Tompsett
-- ----------------------------------------------------------------------------- Tom Hanstra Sr. Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 208 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556 First of the fall and there she goes back. Bye, bye, bye, bye there! -----------------------------------------------------------------------------
For Koha 3.12.05, what are the versions of Yaz and Zebra which are known to work? I'm finding that some of the latest combinations are not working. Is there an "approved" version of each that is known to work with the latest version of Koha? Thanks, Tom On 10/3/13 6:30 PM, Tom Hanstra wrote:
My install of Koha was from the tarball. For Zebra, I used the CentOS rpm's. This is all on RHEL6. Tomorrow I'll try compiling Zebra to see if that might be where the problem lies. Since Koha works but Zebra does not, that will be my focus.
-- ----------------------------------------------------------------------------- Tom Hanstra Sr. Systems Administrator Hesburgh Libraries of Notre Dame Phone: (574)631-4686 208 Hesburgh Library Email: tom@nd.edu Notre Dame, IN 46556 First of the fall and there she goes back. Bye, bye, bye, bye there! -----------------------------------------------------------------------------
Tom Hanstra schreef op do 03-10-2013 om 15:05 [-0400]:
Is there a more verbose logging method?
To a point, the more times you stick -v onto the rebuild_zebra.pl command, the more output you get. Some of that may be useful to diagnose things. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (4)
-
Mark Tompsett -
Paul -
Robin Sheat -
Tom Hanstra