Link to home
Start Free TrialLog in
Avatar of uknet80
uknet80

asked on

can't start zebra daemon for koha

Dear Expert,

I do require zebra search engine to search records under koha library system.
I can start zebra daemon if I use zebra documentation and steps:

[root@RHEL5-koha oai-pmh]# zebrasrv-2.0 -c conf/zebra.cfg
17:29:17-11/05 [log] zebra_start 2.0.42 4ff9ad25e172e7bdcf2d8d94ea6a606ab53bcfe9
17:29:17-11/05 [log] config conf/zebra.cfg
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-safari.so
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so
17:29:17-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so
17:29:17-11/05 [server] Adding dynamic listener on tcp:@:9999 id=0
17:29:17-11/05 [server] Starting server zebrasrv-2.0 pid=19058


netstat -tulpn
tcp        0      0 :::9999                     :::*                        LISTEN      19030/zebrasrv-2.0

ps aux | grep srv
root     19030  0.0  0.1  86912  2048 pts/2    S+   17:22   0:00 zebrasrv-2.0 -c conf/zebra.cfg


But with koha instruction daemon doesn't start:

[root@RHEL5-koha ~]# zebrasrv-2.0 -f /etc/koha/koha-conf.xml
17:26:26-11/05 [log] zebra_start 2.0.42 4ff9ad25e172e7bdcf2d8d94ea6a606ab53bcfe9
17:26:26-11/05 [log] config /etc/koha/zebradb/zebra-biblios.cfg
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-safari.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so
17:26:26-11/05 [log] zebra_start 2.0.42 4ff9ad25e172e7bdcf2d8d94ea6a606ab53bcfe9
17:26:26-11/05 [log] config /etc/koha/zebradb/zebra-authorities-dom.cfg
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-safari.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so
17:26:26-11/05 [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so
17:26:26-11/05 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/bibliosocket id=1
17:26:26-11/05 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/authoritysocket id=2
17:26:26-11/05 [server] Starting server zebrasrv-2.0 pid=19047


there is no daemon service

but process id running:
[root@RHEL5-koha oai-pmh]# ps aux | grep srv
root     19047  0.1  0.3  89812  5576 pts/1    S+   17:26   0:00 zebrasrv-2.0 -f /etc/koha/koha-conf.xml


any suggestions?


following software installed for zebra:
idzebra-2.0-2.0.42-1.x86_64.rpm
idzebra-2.0-debuginfo-2.0.42-1.x86_64.rpm
libidzebra-2.0-2.0.42-1.x86_64.rpm
libidzebra-2.0-devel-2.0.42-1.x86_64.rpm
libidzebra-2.0-modules-2.0.42-1.x86_64.rpm

Redhat version:
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

thanks
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

> Adding dynamic listener on unix:/var/run/koha/zebradb/bibliosocket id=1
> Adding dynamic listener on unix:/var/run/koha/zebradb/authoritysocket id=2
Please do
ls -l /var/run/koha/zebradb/bibliosocket  /var/run/koha/zebradb/authoritysocket
and
cat /var/run/koha/zebradb/bibliosocket
cat /var/run/koha/zebradb/authoritysocket
Avatar of uknet80
uknet80

ASKER

ls -l /var/run/koha/zebradb/bibliosocket /var/run/koha/zebradb/authoritysocket
srw-rw-rw- 1 root root 0 May 11 17:26 /var/run/koha/zebradb/authoritysocket
srw-rw-rw- 1 root root 0 May 11 17:26 /var/run/koha/zebradb/bibliosocket

[root@RHEL5-koha ~]# cat /var/run/koha/zebradb/authoritysocket
cat: /var/run/koha/zebradb/authoritysocket: No such device or address
[root@RHEL5-koha ~]# cat /var/run/koha/zebradb/bibliosocket
cat: /var/run/koha/zebradb/bibliosocket: No such device or address

what to do with these two?
> Adding dynamic listener on unix:/var/run/koha/zebradb/bibliosocket id=1
> Adding dynamic listener on unix:/var/run/koha/zebradb/authoritysocket id=2
File type "s" mean "socket" in  "srw-rw-rw- ..."
So with koha configuration file, zebra service creates two sockets and listen to these two sockets.
The query send to the koha or within koha will pass to those two sockets.

> # ps aux | grep srv
> root     19047  0.1  0.3  89812  5576 pts/1    S+   17:26   0:00 zebrasrv-2.0 -f /etc/koha/koha-conf.xml
It shows zebrsrv is up and running.

You might want to check koha documentation that how to test.
Avatar of uknet80

ASKER

after installing KOHA, I added several records, but when i try searching for record I get no results (book not found).  Do I have to have zebra search engine to search for item under KOHA, or zebra's job is just to speed search query?

ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uknet80

ASKER

great link, thank you