<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear List-Colleagues:<br>
<br>
There was no follow up reply to the post "OPAC search results -No"
(from December '08) so I am posting our results from dealing with this
issue:<br>
<br>
Note: Sunita was running Fedora and we are running Redhat which is
similar.<br>
<br>
<p class="MsoNormal">* no filters load/no records written in
rebuild_zebra</p>
<p class="MsoNormal">* OS:Redhat or Fedora (possibly CentOS) – <span
style=""> </span></p>
<p class="MsoNormal">* <span class="apple-style-span"><span
style="font-size: 10.5pt; font-family: -webkit-monospace; color: black;">zebraidx
(5810) [warn] No such
record type: grs.marcxml.record</span></span></p>
<p class="MsoNormal">* ERR109 in zebrasrv </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Possibly specific to: Redhat, Fedora and possibly
CentOS</p>
<p class="MsoNormal">Symptoms:</p>
<p class="MsoNormal">ERR109 when querying running copy of zebrasrv</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><!--[if gte vml 1]><v:shapetype id="_x0000_t202"
coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">
<v:stroke joinstyle="miter"/>
<v:path gradientshapeok="t" o:connecttype="rect"/>
</v:shapetype><v:shape id="_x0000_s1026" type="#_x0000_t202" style='position:absolute;
margin-left:3.6pt;margin-top:55.8pt;width:432.75pt;height:39.05pt;z-index:1;
mso-wrap-style:none;mso-position-horizontal:absolute;
mso-position-horizontal-relative:text;mso-position-vertical:absolute;
mso-position-vertical-relative:text'>
<v:textbox style='mso-fit-shape-to-text:t'>
<![if !mso]>
<table cellpadding=0 cellspacing=0 width="100%">
<tr>
<td><![endif]>
<div>
<p class=MsoNormal><span class=apple-style-span><span style='font-size:
9.5pt;font-family:Arial;color:#222222'>The structure attribute specifies
the type of search term. This causes the search to be mapped on different</span></span><span
class=apple-converted-space><span
style='font-size:9.5pt;font-family:Arial;
color:#222222'> </span></span><span class=application><span
style='font-size:9.5pt;font-family:Arial;color:#222222'>Zebra</span></span><span
class=apple-converted-space><span style='font-size:9.5pt;font-family:Arial;
color:#222222'> </span></span><span class=apple-style-span><span
style='font-size:9.5pt;font-family:Arial;color:#222222'>internal indexes,
which must have been defined at index time.</span> </span></span><span
class=apple-style-span><span style='font-size:8.0pt;font-family:Arial;
color:#222222'>Source: Zebra – Users Guide and Reference at: </span></span><span
style='font-size:8.0pt'><a
href="http://www.indexdata.dk/zebra/doc/querymodel-rpn.tkl#querymodel-bib1-structure">http://www.indexdata.dk/zebra/doc/querymodel-rpn.tkl#querymodel-bib1-structure</a></span><span
style='font-size:8.0pt;font-family:Arial;color:#222222'><o:p></o:p></span></p>
</div>
<![if
!mso]></td>
</tr>
</table>
<![endif]></v:textbox>
<w:wrap type="square"/>
</v:shape><![endif]--><!--[if !vml]--><img
src="cid:part1.00000205.01070101@outerline.com"
alt="Text Box: The structure attribute specifies the type of search term. This causes the search to be mapped on different Zebra internal indexes, which must have been defined at index time. Source: Zebra – Users Guide and Reference at: http://www.indexdata.dk/zebra/doc/querymodel-rpn.tkl#querymodel-bib1-structure"
v:shapes="_x0000_s1026" align="left" height="99" hspace="12"
width="583"><!--[endif]--><br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">109 is a structure attribute for numeric
string in Zebra (…it tells Zebra what format to use when indexing Koha
data)</p>
<p class="MsoNormal"><o:p></o:p>While there are a number of causes for
this error (including
a bad ZOOM compile) we are assuming a good install of all perl modules
and
components.</p>
<p class="MsoNormal"><o:p> </o:p>If you are running Fedora or Redhat
(…and likely CentOS) and
if your </p>
<p class="MsoNormal">“rebuild_Zebra.pl” script will run and you <i
style="">have </i>run it and its output looks similar
too:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><span style="color: black;">Zebra configuration information<o:p></o:p></span></pre>
<pre><span style="color: black;">================================<o:p></o:p></span></pre>
<pre><span style="color: black;">Zebra biblio directory<span style=""> </span>= /var/lib/koha/zebradb/biblios<o:p></o:p></span></pre>
<pre><span style="color: black;">Zebra authorities directory = /var/lib/koha/zebradb/authorities<o:p></o:p></span></pre>
<pre><span style="color: black;">Koha directory<span style=""> </span>= /usr/share/koha/intranet/cgi-bin<o:p></o:p></span></pre>
<pre><span style="color: black;">BIBLIONUMBER in :<span style=""> </span>999$c<o:p></o:p></span></pre>
<pre><span style="color: black;">BIBLIOITEMNUMBER in : 999$d<o:p></o:p></span></pre>
<pre><span style="color: black;">================================<o:p></o:p></span></pre>
<pre><span style="color: black;">skipping authorities<o:p></o:p></span></pre>
<pre><span style="color: black;">====================<o:p></o:p></span></pre>
<pre><span style="color: black;">exporting biblio<o:p></o:p></span></pre>
<pre><span style="color: black;">====================<o:p></o:p></span></pre>
<pre><span style="color: black;">1.<o:p></o:p></span></pre>
<pre><span style="color: black;">Records exported: 2<o:p></o:p></span></pre>
<pre><span style="color: black;">====================<o:p></o:p></span></pre>
<pre><span style="color: black;">REINDEXING zebra<o:p></o:p></span></pre>
<pre><span style="color: black;">====================<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11218) [log] zebra_start 2.0.32<o:p></o:p></span></pre>
<pre><span style="color: black;">/etc/koha/zebradb/zebra-biblios.cfg<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11218) [log] enabling shadow<o:p></o:p></span></pre>
<pre><span style="color: black;">spec=/var/lib/koha/zebradb/biblios/shadow:4G<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11218) [log] cache_fname =<o:p></o:p></span></pre>
<pre><span style="color: black;">/var/lib/koha/zebradb/biblios/shadow/cache<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11218) [log] zebra_stop: 0.08 0.00 0.00<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [log] zebra_start 2.0.32<o:p></o:p></span></pre>
<pre><span style="color: black;">/etc/koha/zebradb/zebra-biblios.cfg<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [log] dir /tmp/krk6rYaZGR/biblio<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [warn] No such record type:<o:p></o:p></span></pre>
<pre><span style="color: black;">grs.marcxml.record<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [log] Iterations: isam/dict 64/26<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [log] Dict: inserts/updates/deletions: 26/0/0<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [log] Records: 0 i/u/d 0/0/0<o:p></o:p></span></pre>
<pre><span style="color: black;">16:57:45-15/12 zebraidx(11219) [log] zebra_stop: 0.08 0.00 0.00<o:p></o:p></span></pre>
<pre><span style="color: black;">====================<o:p></o:p></span></pre>
<pre><span style="color: black;">CLEANING<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">…you have a specific problem not related to bad
installation.</p>
<p class="MsoNormal"><o:p></o:p>The clues are twofold:<o:p> </o:p></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span
style="">1)<span
style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></span><!--[endif]-->…note
that there are no filter module’s loaded, they should look like:</p>
<p class="MsoNormal"><o:p> </o:p><i style="">14:222:51-14/02
zebraidx (4531) [log] Loaded filter module
/usr/local/lib/idzebra02.0/modules/mod-grs-xml.so<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><o:p> </o:p><!--[if !supportLists]--><span
style="">2)<span
style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></span><!--[endif]-->these
two lines in your rebuild_zebra output:</p>
<p class="MsoNormal"><o:p> </o:p><i style=""><span style="color: black;">16:57:45-15/12
zebraidx(11219) [log] dir /tmp/krk6rYaZGR/biblio<o:p></o:p></span></i></p>
<pre><i style=""><span style="color: black;">16:57:45-15/12 zebraidx(11219) [warn] No such record type:<o:p></o:p></span></i></pre>
<pre><i style=""><span style="color: black;">grs.marcxml.record<o:p></o:p></span></i></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">NO filter modules are loading and – of course – as
a result,
zebra_build can not read grs.marcxml.record processed data.<span
style=""> </span></p>
<p class="MsoNormal"><o:p> </o:p>Result: no index and no ability to
search OPAC etc.</p>
<p class="MsoNormal"><o:p></o:p>Filters should appear right under:<br>
<o:p> </o:p></p>
<p class="MsoNormal">REINDEXING zebra</p>
<p class="MsoNormal">===============</p>
<p class="MsoNormal">….they should look like…<br>
<o:p> </o:p></p>
<p class="MsoNormal"><i style="">14:222:51-14/02
zebraidx (4531) [log] Loaded filter module
/usr/local/lib/idzebra02.0/modules/mod-grs-xml.so<o:p></o:p></i><br>
<o:p> </o:p></p>
<p class="MsoNormal">…and so forth for another six filters….</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Solution:</p>
<p class="MsoNormal"><o:p> </o:p>Go to your zebra-biblios.cfg file
(probably at: <i style="">/etc/koha/zebradb/<o:p></o:p></i></p>
<p class="MsoNormal"><o:p> </o:p>Look in this file for the lines:</p>
<p class="MsoNormal"><o:p> </o:p><i style=""># modulePath – where to
look for loadable zebra modules<o:p></o:p></i></p>
<p class="MsoNormal"><i style="">Modules<o:p></o:p></i></p>
<p class="MsoNormal"><i style="">modulePath:
/usr/lib/idzebra-2.0/modules<o:p></o:p></i></p>
<p class="MsoNormal"><i style=""><o:p> </o:p></i><o:p><br>
</o:p>…the default path is incorrect in RHEL5/Fedora etc. (at
least in some installs)</p>
<p class="MsoNormal"><o:p> </o:p>…it should read:
/usr/local/lib/idzebra-2.0/modules (or
whatever is right on your system)</p>
<p class="MsoNormal"><o:p> </o:p><i style="">Newbie tip: verify
this, for yourself, by typing “locate mod-alvis.so” at a prompt<o:p></o:p></i></p>
<p class="MsoNormal"><i style="">Example: #locate
mod-alvis.so<o:p></o:p></i></p>
<p class="MsoNormal"><i style="">…the result will show
the directory path to mod-alvis which is one of the filters you are not
loading
into rebuild_zebra.pl<o:p></o:p></i></p>
<p class="MsoNormal"><o:p> Fix the path in .cfg file, run
rebuild_zebra.pl and then restart zebrasrv and your OPAC should run!<br>
</o:p></p>
<p class="MsoNormal"><o:p>I really hope this helps some one we had a
lot of problems pinning the issue down.<br>
</o:p></p>
<p class="MsoNormal"><o:p>Best,<br>
</o:p></p>
<p class="MsoNormal"><o:p>Petrus<br>
Saugeen Library Consortium<br>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<br>
<br>
</body>
</html>