[Koha-devel] Koha 3.0 success

Chadwick, John, DCA john.chadwick at state.nm.us
Mon Jan 14 18:54:43 CET 2008


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 at 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 at liblime.com] 
Sent: Sunday, January 13, 2008 6:37 PM
To: Chadwick, John, DCA
Cc: koha-devel at 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 at 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. 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20080114/b3ff10a9/attachment-0002.htm>


More information about the Koha-devel mailing list