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                                [EMAIL PROTECTED]
Programmer                                         www.liblime.com
LibLime                                             +64 21 542 117


_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/koha-devel

Reply via email to