We got two servers running with Koha 3.0 now. The backend works nicely. Our database admin likes the design and setup and she has been importing MARC records. The only issue we have now is that we can't do a search from the OPAC. The screens display okay, but a search by title or author of materials we have imported are not showing up in search results. John +----------------------------------------------------------------------- -----+ John Chadwick, Ed.D. Information Technology Manager New Mexico State Library 1209 Camino Carlos Rey Santa Fe, NM 87507 Phone: 505-476-9740 Cell: 505-629-8116 Fax: 505-476-9761 john.chadwick@state.nm.us http://www.stlib.state.nm.us Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System.
On 2008/01/12, at 8:47 AM, Chadwick, John, DCA wrote:
We got two servers running with Koha 3.0 now. The backend works nicely. Our database admin likes the design and setup and she has been importing MARC records.
The only issue we have now is that we can’t do a search from the OPAC. The screens display okay, but a search by title or author of materials we have imported are not showing up in search results.
John
Hi John, just my 2 cents it seems like you probably have imported your marc records ok into koha but your zebra isnt setup, running, or indexed correctly ive had a similar issue too you can verify that you have koha records like this, in your DB mysql> select * from biblio; or http://mykoha/cgi-bin/koha/catalogue/detail.pl?biblionumber=1 if you a result there, you have records (or, at least 1 :) ======================================= check that your 'Nozeb' syspref is set to '0' next, rebuild your zebra indexes again (cant hurt :), something like this.... $export KOHA_CONF="/home/mtj/koha/etc/koha-conf.xml" $ koha/misc/migration_tools/rebuild_zebra.pl -b which will take a few minutes. fmmv make sure your zebrasrv process is running, and now try a OPAC search that could take care of your issue. Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117
We are all very new to Koha and Zebra. With Zebra search turned off I can do a keyword search only. With Zebra turned on, I can't search. I am beginning to suspect that the zebra.cfg file is either missing or in the wrong location on the Ubuntu 7.10 installation. When I try to start the zebrasrv I get two responses: $ sudo zebrasrv start 17:39:34-13/01 [server] Adding dynamic listener on start id=0 17:39:34-13/01 [fatal] Failed to listen on start The zebra-biblios.cfg and zebra-authorities.cfg files seem to exist in /etc/koha/zebradb. However, I do see a zebrasrv process running when I look at my running processes via Webmin. 2568 <https://164.64.109.235:10000/proc/edit_proc.cgi?2568> 0.0 % 17:04 /usr/bin/zebrasrv -f /etc/koha/koha-conf.xml ________________________________ From: Mason James [mailto:mason.james@liblime.com] Sent: Sunday, January 13, 2008 2:52 PM To: Chadwick, John, DCA Cc: koha-devel@nongnu.org Subject: Re: [Koha-devel] Koha 3.0 success On 2008/01/12, at 8:47 AM, Chadwick, John, DCA wrote: We got two servers running with Koha 3.0 now. The backend works nicely. Our database admin likes the design and setup and she has been importing MARC records. The only issue we have now is that we can't do a search from the OPAC. The screens display okay, but a search by title or author of materials we have imported are not showing up in search results. John Hi John, just my 2 cents it seems like you probably have imported your marc records ok into koha but your zebra isnt setup, running, or indexed correctly ive had a similar issue too you can verify that you have koha records like this, in your DB mysql> select * from biblio; or http://mykoha/cgi-bin/koha/catalogue/detail.pl?biblionumber=1 if you a result there, you have records (or, at least 1 :) ======================================= check that your 'Nozeb' syspref is set to '0' next, rebuild your zebra indexes again (cant hurt :), something like this.... $export KOHA_CONF="/home/mtj/koha/etc/koha-conf.xml" $ koha/misc/migration_tools/rebuild_zebra.pl -b which will take a few minutes. fmmv make sure your zebrasrv process is running, and now try a OPAC search that could take care of your issue. Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117 ______________________________________________________________________ This inbound email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System.
On 2008/01/14, at 2:08 PM, Chadwick, John, DCA wrote:
We are all very new to Koha and Zebra. With Zebra search turned off I can do a keyword search only. With Zebra turned on, I can’t search. I am beginning to suspect that the zebra.cfg file is either missing or in the wrong location on the Ubuntu 7.10 installation.
When I try to start the zebrasrv I get two responses:
$ sudo zebrasrv start 17:39:34-13/01 [server] Adding dynamic listener on start id=0 17:39:34-13/01 [fatal] Failed to listen on start
The zebra-biblios.cfg and zebra-authorities.cfg files seem to exist in /etc/koha/zebradb.
However, I do see a zebrasrv process running when I look at my running processes via Webmin.
2568 0.0 % 17:04 /usr/bin/zebrasrv -f /etc/koha/koha-conf.xml
Hi John,
$ sudo zebrasrv start
1st off, you need to start zebrasv with the '-f /etc/koha/koha- conf.xml' option. So heres how ive trouble-shooted my zebra-not-searching issue recently.. 1) stop your curent zebrasrv $ ps -ef | grep zebrasrv mtj 18354 27954 0 00:28 pts/27 00:00:00 zebrasrv -f /home/mtj/ koha.single/etc/koha-conf.xml $ kill 18354 2) start up a new one, $ zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml - a correctly set up zebrasrv, should output something similar to this when starting up, does yours? .... 19:23:45-13/01 [log] zebra_start 2.0.22 /home/mtj/koha.single/etc/ zebradb/zebra-biblios.cfg 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-alvis.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-text.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-grs-regx.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-dom.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-grs-xml.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-grs-marc.so 19:23:45-13/01 [log] zebra_start 2.0.22 /home/mtj/koha.single/etc/ zebradb/zebra-authorities.cfg 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-alvis.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-text.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-grs-regx.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-dom.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-grs-xml.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/ modules/mod-grs-marc.so 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/ koha.single/var/run/zebradb/bibliosocket id=1 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/ koha.single/var/run/zebradb/authoritysocket id=2 19:23:45-13/01 [server] Starting server zebrasrv pid=11057 3) try a search on your koha.... http://mykoha.com/cgi-bin/koha/catalogue/search.pl?q=food 4) now, on my working koha-zebra, i get "1251 result(s) found for 'food'." and this happy out from my zebrasrv process...... 19:24:40-13/01 zebrasrv(1) [session] Session - OK 1 unix:/home/mtj/ koha.single/var/run/zebradb/bibliosocket 11068 19:24:40-13/01 zebrasrv(1) [request] Auth idPass mtj - 19:24:40-13/01 zebrasrv(1) [request] Init OK - ID:81/81 Name:ZOOM-C/ YAZ Version:1.116/2.1.54 19:24:40-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01y\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01}\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01{\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05) (food.*) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [request] Search biblios OK 1251 1 1+0 RPN @attrset Bib-1 @or @or @or @or @or @attr 1=36 @attr 4=1 @attr 6=3 @attr 9=32 @attr 2=102 food @attr 1=4 @attr 4=1 @attr 6=3 @attr 9=28 @attr 2=102 food @attr 1=4 @attr 4=1 @attr 9=26 @attr 2=102 food @attr 4=6 @attr 5=103 @attr 9=16 @attr 2=102 food @attr 4=6 @attr 5=1 @attr 9=14 @attr 2=102 "food? " @attr 4=6 @attr 9=14 @attr 2=102 food 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 1+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 2+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 3+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 4+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 5+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 6+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 7+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 8+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 9+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 10+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 11+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 12+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 13+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 14+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 15+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 16+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 17+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 18+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 19+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 20+1 19:24:41-13/01 zebrasrv(1) [session] Connection closed by client remember to run the rebuild_zebra.pl script, if you are having zebra problems. it is the most likely solution to your searching problem. Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117
I am having many problems killint the zebrasrv process. I can kill it in Webmin, but when I try to kill it at the command line it comes back with a new process id. Here is the output when I finally killed the processes in Webmin and tried to restart zebrasrv: jchadwick@koha1:~$ sudo zebrasrv -f/etc/koha/koha-conf.xml 08:46:46-14/01 [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra-biblios.cfg 08:46:46-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 08:46:46-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 08:46:46-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 08:46:46-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 08:46:46-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 08:46:46-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 08:46:46-14/01 [fatal] Zebra server already running [Resource temporarily unavailable] jchadwick@koha1:~$ When I run the rebuild_zebra script, here is what I am seeing: jchadwick@koha1:~/koha-3.00.00-alpha$ sudo misc/migration_tools/rebuild_zebra.pl -b 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 biblios ==================== 1..==================== REINDEXING zebra ==================== 08:58:12-14/01 zebraidx(3735) [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra-biblios.cfg 08:58:12-14/01 zebraidx(3735) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 08:58:12-14/01 zebraidx(3735) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 08:58:12-14/01 zebraidx(3735) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 08:58:12-14/01 zebraidx(3735) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 08:58:12-14/01 zebraidx(3735) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 08:58:12-14/01 zebraidx(3735) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 08:58:12-14/01 zebraidx(3735) [log] enabling shadow spec=/var/lib/koha/zebradb/biblios/shadow:4G 08:58:12-14/01 zebraidx(3735) [log] cache_fname = /var/lib/koha/zebradb/biblios/shadow/cache 08:58:12-14/01 zebraidx(3735) [log] dir /tmp/b17t9sr903/biblios 08:58:12-14/01 zebraidx(3735) [log] update grs.marcxml.record /tmp/b17t9sr903/biblios/export 0 08:58:12-14/01 zebraidx(3735) [log] update grs.marcxml.record /tmp/b17t9sr903/biblios/export 374 08:58:12-14/01 zebraidx(3735) [log] update grs.marcxml.record /tmp/b17t9sr903/biblios/export 1529 08:58:12-14/01 zebraidx(3735) [log] Iterations: isam/dict 8/2 08:58:12-14/01 zebraidx(3735) [log] Dict: inserts/updates/deletions: 1/0/1 08:58:15-14/01 zebraidx(3735) [log] Records: 3 i/u/d 0/3/0 08:58:15-14/01 zebraidx(3735) [log] zebra_stop: 2.82 0.03 0.01 08:58:15-14/01 zebraidx(3737) [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra-biblios.cfg 08:58:15-14/01 zebraidx(3737) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 08:58:15-14/01 zebraidx(3737) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 08:58:15-14/01 zebraidx(3737) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 08:58:15-14/01 zebraidx(3737) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 08:58:15-14/01 zebraidx(3737) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 08:58:15-14/01 zebraidx(3737) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 08:58:15-14/01 zebraidx(3737) [log] enabling shadow spec=/var/lib/koha/zebradb/biblios/shadow:4G 08:58:15-14/01 zebraidx(3737) [log] cache_fname = /var/lib/koha/zebradb/biblios/shadow/cache 08:58:15-14/01 zebraidx(3737) [log] zebra_stop: 0.43 0.01 0.00 ==================== CLEANING ==================== jchadwick@koha1:~/koha-3.00.00-alpha$ Bottom line, with Zebra searching turned on, we can get results only on a keyword search. With Zebra turned on we get no results. John ________________________________ From: Mason James [mailto:mason.james@liblime.com] Sent: Sunday, January 13, 2008 6:37 PM To: Chadwick, John, DCA Cc: koha-devel@nongnu.org Subject: Re: [Koha-devel] Koha 3.0 success On 2008/01/14, at 2:08 PM, Chadwick, John, DCA wrote: We are all very new to Koha and Zebra. With Zebra search turned off I can do a keyword search only. With Zebra turned on, I can't search. I am beginning to suspect that the zebra.cfg file is either missing or in the wrong location on the Ubuntu 7.10 installation. When I try to start the zebrasrv I get two responses: $ sudo zebrasrv start 17:39:34-13/01 [server] Adding dynamic listener on start id=0 17:39:34-13/01 [fatal] Failed to listen on start The zebra-biblios.cfg and zebra-authorities.cfg files seem to exist in /etc/koha/zebradb. However, I do see a zebrasrv process running when I look at my running processes via Webmin. 2568 <https://164.64.109.235:10000/proc/edit_proc.cgi?2568> 0.0 % 17:04 /usr/bin/zebrasrv -f /etc/koha/koha-conf.xml Hi John, $ sudo zebrasrv start 1st off, you need to start zebrasv with the '-f /etc/koha/koha-conf.xml' option. So heres how ive trouble-shooted my zebra-not-searching issue recently.. 1) stop your curent zebrasrv $ ps -ef | grep zebrasrv mtj 18354 27954 0 00:28 pts/27 00:00:00 zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml $ kill 18354 2) start up a new one, $ zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml - a correctly set up zebrasrv, should output something similar to this when starting up, does yours? .... 19:23:45-13/01 [log] zebra_start 2.0.22 /home/mtj/koha.single/etc/zebradb/zebra-biblios.cfg 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 19:23:45-13/01 [log] zebra_start 2.0.22 /home/mtj/koha.single/etc/zebradb/zebra-authorities.cfg 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/koha.single/var/run/zebradb/bibliosocket id=1 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/koha.single/var/run/zebradb/authoritysocket id=2 19:23:45-13/01 [server] Starting server zebrasrv pid=11057 3) try a search on your koha.... http://mykoha.com/cgi-bin/koha/catalogue/search.pl?q=food 4) now, on my working koha-zebra, i get "1251 result(s) found for 'food'." and this happy out from my zebrasrv process...... 19:24:40-13/01 zebrasrv(1) [session] Session - OK 1 unix:/home/mtj/koha.single/var/run/zebradb/bibliosocket 11068 19:24:40-13/01 zebrasrv(1) [request] Auth idPass mtj - 19:24:40-13/01 zebrasrv(1) [request] Init OK - ID:81/81 Name:ZOOM-C/YAZ Version:1.116/2.1.54 19:24:40-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01y\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01}\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01{\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food.*) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [request] Search biblios OK 1251 1 1+0 RPN @attrset Bib-1 @or @or @or @or @or @attr 1=36 @attr 4=1 @attr 6=3 @attr 9=32 @attr 2=102 food @attr 1=4 @attr 4=1 @attr 6=3 @attr 9=28 @attr 2=102 food @attr 1=4 @attr 4=1 @attr 9=26 @attr 2=102 food @attr 4=6 @attr 5=103 @attr 9=16 @attr 2=102 food @attr 4=6 @attr 5=1 @attr 9=14 @attr 2=102 "food? " @attr 4=6 @attr 9=14 @attr 2=102 food 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 1+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 2+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 3+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 4+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 5+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 6+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 7+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 8+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 9+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 10+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 11+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 12+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 13+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 14+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 15+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 16+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 17+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 18+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 19+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 20+1 19:24:41-13/01 zebrasrv(1) [session] Connection closed by client remember to run the rebuild_zebra.pl script, if you are having zebra problems. it is the most likely solution to your searching problem. Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117 ______________________________________________________________________ This inbound email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System.
A few more clues. I have restarted the entire server a few times and each time I have had to create new /var/lock/koha/zebradb/bibilos and /var/lock/koha/zebradb/authorities directories. I have also had to recreate the /var/run/koha/zebradb/bibliosocket and authoritysocket directories each restart. When I run the zebrasrv -f /etc/koha/koha-conf.xml command I get the following: jchadwick@koha1:~/koha-3.00.00-alpha$ sudo zebrasrv -f/etc/koha/koha-conf.xml 10:52:41-14/01 [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra-biblios.cfg 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 10:52:41-14/01 [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra-authorities.cfg 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 10:52:41-14/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 10:52:41-14/01 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/bibliosocket id=1 10:52:41-14/01 [fatal] Failed to bind to unix:/var/run/koha/zebradb/bibliosocket [File exists] 10:52:41-14/01 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/authoritysocket id=2 10:52:41-14/01 [fatal] Failed to bind to unix:/var/run/koha/zebradb/authoritysocket [File exists] 10:52:41-14/01 [server] Adding dynamic listener on tcp:@:9999 id=0 10:52:41-14/01 [server] Starting server zebrasrv pid=4784 John ________________________________ From: Mason James [mailto:mason.james@liblime.com] Sent: Sunday, January 13, 2008 6:37 PM To: Chadwick, John, DCA Cc: koha-devel@nongnu.org Subject: Re: [Koha-devel] Koha 3.0 success On 2008/01/14, at 2:08 PM, Chadwick, John, DCA wrote: We are all very new to Koha and Zebra. With Zebra search turned off I can do a keyword search only. With Zebra turned on, I can't search. I am beginning to suspect that the zebra.cfg file is either missing or in the wrong location on the Ubuntu 7.10 installation. When I try to start the zebrasrv I get two responses: $ sudo zebrasrv start 17:39:34-13/01 [server] Adding dynamic listener on start id=0 17:39:34-13/01 [fatal] Failed to listen on start The zebra-biblios.cfg and zebra-authorities.cfg files seem to exist in /etc/koha/zebradb. However, I do see a zebrasrv process running when I look at my running processes via Webmin. 2568 <https://164.64.109.235:10000/proc/edit_proc.cgi?2568> 0.0 % 17:04 /usr/bin/zebrasrv -f /etc/koha/koha-conf.xml Hi John, $ sudo zebrasrv start 1st off, you need to start zebrasv with the '-f /etc/koha/koha-conf.xml' option. So heres how ive trouble-shooted my zebra-not-searching issue recently.. 1) stop your curent zebrasrv $ ps -ef | grep zebrasrv mtj 18354 27954 0 00:28 pts/27 00:00:00 zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml $ kill 18354 2) start up a new one, $ zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml - a correctly set up zebrasrv, should output something similar to this when starting up, does yours? .... 19:23:45-13/01 [log] zebra_start 2.0.22 /home/mtj/koha.single/etc/zebradb/zebra-biblios.cfg 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 19:23:45-13/01 [log] zebra_start 2.0.22 /home/mtj/koha.single/etc/zebradb/zebra-authorities.cfg 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 19:23:45-13/01 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/koha.single/var/run/zebradb/bibliosocket id=1 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/koha.single/var/run/zebradb/authoritysocket id=2 19:23:45-13/01 [server] Starting server zebrasrv pid=11057 3) try a search on your koha.... http://mykoha.com/cgi-bin/koha/catalogue/search.pl?q=food 4) now, on my working koha-zebra, i get "1251 result(s) found for 'food'." and this happy out from my zebrasrv process...... 19:24:40-13/01 zebrasrv(1) [session] Session - OK 1 unix:/home/mtj/koha.single/var/run/zebradb/bibliosocket 11068 19:24:40-13/01 zebrasrv(1) [request] Auth idPass mtj - 19:24:40-13/01 zebrasrv(1) [request] Init OK - ID:81/81 Name:ZOOM-C/YAZ Version:1.116/2.1.54 19:24:40-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01y\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01}\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01{\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food.*) 19:24:41-13/01 zebrasrv(1) [log] dict_lookup_grep: (\x01O\x01\x05)(food) 19:24:41-13/01 zebrasrv(1) [request] Search biblios OK 1251 1 1+0 RPN @attrset Bib-1 @or @or @or @or @or @attr 1=36 @attr 4=1 @attr 6=3 @attr 9=32 @attr 2=102 food @attr 1=4 @attr 4=1 @attr 6=3 @attr 9=28 @attr 2=102 food @attr 1=4 @attr 4=1 @attr 9=26 @attr 2=102 food @attr 4=6 @attr 5=103 @attr 9=16 @attr 2=102 food @attr 4=6 @attr 5=1 @attr 9=14 @attr 2=102 "food? " @attr 4=6 @attr 9=14 @attr 2=102 food 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 1+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 2+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 3+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 4+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 5+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 6+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 7+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 8+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 9+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 10+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 11+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 12+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 13+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 14+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 15+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 16+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 17+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 18+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 19+1 19:24:41-13/01 zebrasrv(1) [request] Present OK - 1 20+1 19:24:41-13/01 zebrasrv(1) [session] Connection closed by client remember to run the rebuild_zebra.pl script, if you are having zebra problems. it is the most likely solution to your searching problem. Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117 ______________________________________________________________________ This inbound email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System.
On 2008/01/15, at 6:54 AM, Chadwick, John, DCA wrote:
A few more clues.
I have restarted the entire server a few times and each time I have had to create new /var/lock/koha/zebradb/bibilos and /var/lock/koha/ zebradb/authorities directories.
I have also had to recreate the /var/run/koha/zebradb/bibliosocket and authoritysocket directories each restart.
Hi John, Nearly there!! :), OK, so 2 issues here... === zebrasrv keeps restarting === are you running the zebra-daemon?, that will probably be the reason why your zebrasrv keeps restarting you can check like this... $ ps -ef | grep 'koha-zebra-ctl' 8591 ? Ss 0:00 daemon --name=koha-zebra-ctl --errlog=/ home/chris/koha/var/log/koha-zebradaemon.err --stdout=/home/chris/ koha/var/log/koha-zebradaemon.log --output=/home/chris/koha/var/log/ koha-zebradaemon-output.log --verbose=1 --respawn --delay=30 -- user=chris chris -- /usr/bin/zebrasrv -f /home/chris/koha/etc/koha- conf.xml if its running, then kill it while you troubleshoot. === re-creating new /var/ dirs for zebra === I think you manually creating these files is causing problems when zebrasrv sees these files (/var/lock/koha/zebradb/* , and var/ run/koha/zebradb/*socket) , it assumes that another zebra process is already running and using those files, so it tries to start using tcp , not unix sockets. because those files exist, your zebra isnt starting correctly
0:52:41-14/01 [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra- biblios.cfg 10:52:41-14/01 [server] Adding dynamic listener on unix:/var/run/ koha/zebradb/bibliosocket id=1 10:52:41-14/01 [fatal] Failed to bind to unix:/var/run/koha/zebradb/ bibliosocket [File exists] <<<<< FILE EXISTS 10:52:41-14/01 [server] Adding dynamic listener on tcp:@:9999 id=0 <<<<<<<<<<<<<<<<<<<< USING TCP, NOT SOCKETS 10:52:41-14/01 [server] Starting server zebrasrv pid=4784
try deleting those files, then starting zebrasrv again, and look for the 'Adding dynamic listener' lines during startup $ zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/ koha.single/var/run/zebradb/bibliosocket id=1 <<<<<< SUCCESS!! 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/ koha.single/var/run/zebradb/authoritysocket id=2 <<<<<< SUCCESS!! 19:23:45-13/01 [server] Starting server zebrasrv pid=11057 Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117
Okay, deleting problem directories seems to have resolved the issue. I am getting a clean startup now. Now I will try to do the auto restart. John ________________________________ From: Mason James [mailto:mason.james@liblime.com] Sent: Monday, January 14, 2008 4:32 PM To: Chadwick, John, DCA Cc: koha-devel@nongnu.org Subject: Re: [Koha-devel] Koha 3.0 success On 2008/01/15, at 6:54 AM, Chadwick, John, DCA wrote: A few more clues. I have restarted the entire server a few times and each time I have had to create new /var/lock/koha/zebradb/bibilos and /var/lock/koha/zebradb/authorities directories. I have also had to recreate the /var/run/koha/zebradb/bibliosocket and authoritysocket directories each restart. Hi John, Nearly there!! :), OK, so 2 issues here... === zebrasrv keeps restarting === are you running the zebra-daemon?, that will probably be the reason why your zebrasrv keeps restarting you can check like this... $ ps -ef | grep 'koha-zebra-ctl' 8591 ? Ss 0:00 daemon --name=koha-zebra-ctl --errlog=/home/chris/koha/var/log/koha-zebradaemon.err --stdout=/home/chris/koha/var/log/koha-zebradaemon.log --output=/home/chris/koha/var/log/koha-zebradaemon-output.log --verbose=1 --respawn --delay=30 --user=chris chris -- /usr/bin/zebrasrv -f /home/chris/koha/etc/koha-conf.xml if its running, then kill it while you troubleshoot. === re-creating new /var/ dirs for zebra === I think you manually creating these files is causing problems when zebrasrv sees these files (/var/lock/koha/zebradb/* , and var/run/koha/zebradb/*socket) , it assumes that another zebra process is already running and using those files, so it tries to start using tcp , not unix sockets. because those files exist, your zebra isnt starting correctly 0:52:41-14/01 [log] zebra_start 2.0.22 /etc/koha/zebradb/zebra-biblios.cfg 10:52:41-14/01 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/bibliosocket id=1 10:52:41-14/01 [fatal] Failed to bind to unix:/var/run/koha/zebradb/bibliosocket [File exists] <<<<< FILE EXISTS 10:52:41-14/01 [server] Adding dynamic listener on tcp:@:9999 id=0 <<<<<<<<<<<<<<<<<<<< USING TCP, NOT SOCKETS 10:52:41-14/01 [server] Starting server zebrasrv pid=4784 try deleting those files, then starting zebrasrv again, and look for the 'Adding dynamic listener' lines during startup $ zebrasrv -f /home/mtj/koha.single/etc/koha-conf.xml 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/koha.single/var/run/zebradb/bibliosocket id=1 <<<<<< SUCCESS!! 19:23:45-13/01 [server] Adding dynamic listener on unix:/home/mtj/koha.single/var/run/zebradb/authoritysocket id=2 <<<<<< SUCCESS!! 19:23:45-13/01 [server] Starting server zebrasrv pid=11057 Cheers, Mason -- Mason James mason.james@liblime.com Programmer www.liblime.com LibLime +64 21 542 117 ______________________________________________________________________ This inbound email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System.
participants (2)
-
Chadwick, John, DCA -
Mason James