koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Koha-devel] Koha 3.0 success


From: Chadwick, John, DCA
Subject: RE: [Koha-devel] Koha 3.0 success
Date: Mon, 14 Jan 2008 09:04:02 -0700

 

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:

 

address@hidden:~$ 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]

address@hidden:~$

 

When I run the rebuild_zebra script, here is what I am seeing:

 

address@hidden:~/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

====================

address@hidden:~/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:address@hidden
Sent: Sunday, January 13, 2008 6:37 PM
To: Chadwick, John, DCA
Cc: address@hidden
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.

 

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.... 

 

 

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                                address@hidden

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]