From jcornuz at gmail.com Wed Jan 4 03:25:00 2012 From: jcornuz at gmail.com (Joel Cornuz) Date: Tue, 03 Jan 2012 21:25:00 -0500 Subject: [Koha-zebra] yaz-client works but no dice from koha Message-ID: <1325643900.831.88.camel@localhost.localdomain> Hi there, I am currently updating (a test server) from koha 3.0 to 3.6 and it is proving an interesting challenge (had to recompile a custom perl to match the 5.10 requirement). Anyway, things are going pretty well apart for zebra which insists on giving me a "no results found" no matter what. Now for the fun bits: 1) I know the permissions are touchy so I made sure that /var/run/koha/*, /var/lock/koha/* and /var/lib/koha/* all have the same user / group as the one running zebrasrv (koha_user / koha_group) 2) I can connect and get a search result running yaz-client either as root or as koha_user (or www, for that matter) 3) but no dice from Koha interface (opac or admin interface) Has anyone an idea what is going on? By the way (and I really should have started there) thanks for Koha, this is proving a great tool for a small school and hopefully 3.6 even more. Take care and thanks for your attention Joel From mjr at phonecoop.coop Wed Jan 4 17:13:18 2012 From: mjr at phonecoop.coop (MJ Ray) Date: Wed, 04 Jan 2012 16:13:18 +0000 Subject: [Koha-zebra] yaz-client works but no dice from koha In-Reply-To: <1325643900.831.88.camel@localhost.localdomain> Message-ID: Joel Cornuz [...] > 2) I can connect and get a search result running yaz-client either as > root or as koha_user (or www, for that matter) > 3) but no dice from Koha interface (opac or admin interface) > > Has anyone an idea what is going on? [...] Not yet :-/ 1. double and treble check the koha-conf.xml and SetEnv KOHA_CONF to make sure Koha interface is using the same koha_user as your command-line yaz-client. 2. EITHER turn the Koha debugging up and catch the actual searches sent to zebra in the log files OR work out the search query by reading through the source code, THEN try that search in yaz-client. Hope that helps move you forwards! -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op. http://koha-community.org supporter, web and library systems developer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire (including development) at http://www.software.coop/ From jcornuz at gmail.com Wed Jan 4 22:16:25 2012 From: jcornuz at gmail.com (Joel Cornuz) Date: Wed, 04 Jan 2012 16:16:25 -0500 Subject: [Koha-zebra] yaz-client works but no dice from koha In-Reply-To: References: Message-ID: <1325711785.11966.3.camel@localhost.localdomain> On Wed, 2012-01-04 at 16:13 +0000, MJ Ray wrote: > Joel Cornuz [...] > > 2) I can connect and get a search result running yaz-client either as > > root or as koha_user (or www, for that matter) > > 3) but no dice from Koha interface (opac or admin interface) > > > > Has anyone an idea what is going on? [...] > > Not yet :-/ > > 1. double and treble check the koha-conf.xml and SetEnv KOHA_CONF > to make sure Koha interface is using the same koha_user as your > command-line yaz-client. > > 2. EITHER turn the Koha debugging up and catch the actual searches > sent to zebra in the log files OR work out the search query by reading > through the source code, THEN try that search in yaz-client. > > Hope that helps move you forwards! Hi Everyone, Thanks for your insight. The problem was opening both tcp and unix sockets for the authorites and biblio indexes. It now works like a charm (touch wood) and it is now time to think about moving to production. Again, a big thank you for your help and for Koha. Take care, Joel From bogus@does.not.exist.com Wed Jan 4 10:30:06 2012 From: bogus@does.not.exist.com () Date: Wed, 04 Jan 2012 09:30:06 -0000 Subject: No subject Message-ID: 5.2.1 Zebra Search Server $ sudo ln -s ${SCRIPT_DIR}/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon (Note: ${SCRIPT_DIR} is /usr/share/koha/bin/ by default in a standard install) $ sudo update-rc.d koha-zebra-daemon defaults ( Note: see man chkconfig(8) on other distros ) $ sudo ${SCRIPT_DIR}/koha-zebra-ctl.sh start HTH -- Bernardo Gonzalez Kriegel bgkriegel at gmail.com On Mon, Jun 4, 2012 at 8:24 AM, Sander898 wrote: > Hi, > in fact there is still a problem with Zebra (maybe cause by the error that > I > report). > > I can see the records that I have created in the OPAC only when I run from > SSH: > > #zebrasrv-2.0 -f /etc/koha/koha-conf.xml > > But when I close the SSH session the records doesn't appear again in the > OPAC. > > Thanks and regards > Sander > > > > -- > View this message in context: > http://koha.1045719.n5.nabble.com/Zebrasrv-2-0-tp5714825p5714828.html > Sent from the Koha-zebra mailing list archive at Nabble.com. > _______________________________________________ > Koha-zebra mailing list > Koha-zebra at lists.koha-community.org > http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-zebra > --0016e6d64a473ea2f804c1a41146 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think you forgot to install zebra as a daemon.

F= rom INSTALL.ubuntu:

5.2.1 Zebra Search Server

=C2=A0 =C2=A0 $ sud= o ln -s ${SCRIPT_DIR}/koha-zebra-ctl.sh =C2=A0/etc/init.d/koha-zebra-daemon=
=C2=A0 =C2=A0 (Note= : ${SCRIPT_DIR} is /usr/share/koha/bin/ by default in a standard install)
=C2=A0 =C2=A0 $ sudo update-rc.d= koha-zebra-daemon defaults
=C2=A0 =C2=A0 ( Note: see man chkconfig(8) on other distros )

=C2=A0 =C2=A0 $ sud= o ${SCRIPT_DIR}/koha-zebra-ctl.sh start

HTH
--=C2=A0
Bernardo Gonzalez Kriegel



On Mon, Jun 4, 2012 at 8:24 AM, Sander89= 8 <scrittore at hotmail.it> wrote:
Hi,
in fact there is still a problem with Zebra (maybe cause by the error that = I
report).

I can see the records that I have created in the OPAC only when I run from<= br> SSH:

#zebrasrv-2.0 -f /etc/koha/koha-conf.xml

But when I close the SSH session the records doesn't appear again in th= e
OPAC.

Thanks and regards
Sander



--
View this message in context: http://koha.10= 45719.n5.nabble.com/Zebrasrv-2-0-tp5714825p5714828.html
Sent from the Koha-zebra mailing li= st archive at Nabble.com.
_______________________________________________
Koha-zebra mailing list
Koha-zebra at lists.koh= a-community.org
http://lists.koha-community.org/cgi-bin/mailman/list= info/koha-zebra

--0016e6d64a473ea2f804c1a41146--