?
Solved

can't start zebra daemon for koha

Posted on 2011-05-11
6
Medium Priority
?
935 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:uknet80
  • 3
  • 3
6 Comments
 
LVL 38

Expert Comment

by:wesly_chen
ID: 35739134
> 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
0
 

Author Comment

by:uknet80
ID: 35744001
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
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 35744049
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.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

Author Comment

by:uknet80
ID: 35759203
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?

0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 2000 total points
ID: 35766826
0
 

Author Closing Comment

by:uknet80
ID: 35766950
great link, thank you
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question