<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Just for info, after having trouble with this myself on several
occasions, here is the list of files which need to be writable by
the koha user (supposing single folder install):<br>
<br>
$KOHA_HOME/var/lib/zebradb<br>
$KOHA_HOME/var/lock/zebradb<br>
$KOHA_HOME/var/log<br>
$KOHA_HOME/var/run/zebradb<br>
$KOHA_HOME/etc/zebradb (read only required)<br>
<br>
Regards,<br>
Len<br>
<br>
On 02/03/2011 10:56 PM, Doug Dearden wrote:
<blockquote
cite="mid:EB1FA927F4970C429F73A7BF63B7F9FA22FFB5A326@sar-mail"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Hi Chris,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Thanks for your help. It was permissions
related. My misunderstanding also about having the zebrasrv
running from the command line, which wasn’t fired off
correctly due to a permissions issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">What is the best way to avoid this in the
future? Create the koha user ahead of time, then do the
install as that user? Will that work?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);">Doug<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family:
"Calibri","sans-serif"; color: rgb(31,
73, 125);"><o:p> </o:p></span></p>
<div style="border-right: medium none; border-width: 1pt medium
medium; border-style: solid none none; border-color: rgb(181,
196, 223) -moz-use-text-color -moz-use-text-color; padding:
3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family: "Tahoma","sans-serif";">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";"> Chris
Nighswonger [<a class="moz-txt-link-freetext" href="mailto:cnighswonger@foundations.edu">mailto:cnighswonger@foundations.edu</a>] <br>
<b>Sent:</b> Wednesday, February 02, 2011 4:43 PM<br>
<b>To:</b> Doug Dearden<br>
<b>Cc:</b> Koha<br>
<b>Subject:</b> Re: [Koha] Trouble getting zebra to work<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;">Hi Doug,<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">2011/2/2 Doug Dearden <<a
moz-do-not-send="true" href="mailto:dearden@sarsf.org">dearden@sarsf.org</a>><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="">Hello all,<o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
<p class="MsoNormal" style="">I am having some trouble
getting searches to work using zebra, and am suspicious
that I may have caused my problems as I was going
through the setup. I have set up a test server on
Debian Lenny, using git to download koha. I am planning
on doing some work that I hope to contribute back so
chose a dev install when I was setting up. The files
are in /home/doug/kohaclone and /home/doug/koha-dev . I
was logged in as root when I ran the install routine,
then changed ownership on all the files to the koha user
later. After that, I restored one of my databases from
my production server, copied the default koha-conf.xml
and edited it to point to the correct database (named
‘image’). I did the same with the koha-httpd.conf file,
copying it and editing it where needed. While logged in
as “koha”, I would get an error when I tried to run <a
moz-do-not-send="true" href="http://rebuild_zebra.pl"
target="_blank">rebuild_zebra.pl</a> . I logged in as
root and ran it that way and it didn’t throw the error,
but searches aren’t finding anything. I then figured
out that the new config files I created had root as the
owner. I changed those to have koha as the owner. The
<a moz-do-not-send="true" href="http://rebuild_zebra.pl"
target="_blank">rebuild_zebra.pl</a> script would then
run without throwing the error. I then read a post that
indicated being logged in as root when running <a
moz-do-not-send="true" href="http://rebuild_zebra.pl"
target="_blank">rebuild_zebra.pl</a> would mess things
up, as certain log files and lock files would get
created with root as the owner and koha would not be
able to access them. <o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
<p class="MsoNormal" style="">Any idea where I would find
these files? I have several files in
/home/doug/koha-dev/var/lock/zebradb/biblios but they
are all owned by koha, not root. There is no koha
directory in /var/log .<o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
Check also files under /home/doug/koha-dev/etc/zebradb.<br>
<br>
Koha logs are in /home/doug/koha-dev/var/log<br>
<o:p></o:p></p>
</div>
<blockquote style="border-width: medium medium medium 1pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left:
4.8pt; margin-right: 0in;">
<div>
<div>
<p class="MsoNormal" style="">I don’t know what to
expect from <a moz-do-not-send="true"
href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a>
. I am setting the KOHA_CONF and PERL5LIB variables.
If I run “<a moz-do-not-send="true"
href="http://rebuild_zebra.pl" target="_blank">rebuild_zebra.pl</a>
–z –a –b” > /home/doug/zlog.txt the script appears
to run (the cursor blinks for a bit, then the command
prompt returns), and a 0 byte file named zlog.txt is
created. <o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><br>
try './<a moz-do-not-send="true"
href="http://rebuild_zebra.pl">rebuild_zebra.pl</a> -a
-b -r -v' for verbose output and to completely rebuild the
indexes.<br>
<o:p></o:p></p>
</div>
<blockquote style="border-width: medium medium medium 1pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left:
4.8pt; margin-right: 0in;">
<div>
<div>
<p class="MsoNormal" style="">If I change the system
preferences setting to use the no zebra option, then
run <a moz-do-not-send="true"
href="http://rebuild_nozebra.pl" target="_blank">rebuild_nozebra.pl</a>
the indexes are built and searches work. Returning
the system preferences to use zebra breaks things
again.<o:p></o:p></p>
<p class="MsoNormal" style=""> <o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><br>
nozebra is basically deprecated and unsupported at this
point in Koha history. Avoid it like the plague.<br>
<o:p></o:p></p>
</div>
<blockquote style="border-width: medium medium medium 1pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left:
4.8pt; margin-right: 0in;">
<div>
<div>
<p class="MsoNormal" style="">I have a feeling this is
an ownership/permissions problem somewhere, either on
some files or maybe relating to MySQL. I’m just not
sure where to look or how to troubleshoot. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
Probably permissions. Something here may be useful too: <a
moz-do-not-send="true"
href="http://koha-community.org/documentation/faq/searching/#18">http://koha-community.org/documentation/faq/searching/#18</a><br>
<br>
Kind Regards,<br>
Chris<o:p></o:p></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Koha mailing list <a class="moz-txt-link-freetext" href="http://koha-community.org">http://koha-community.org</a>
<a class="moz-txt-link-abbreviated" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
</pre>
</blockquote>
<br>
</body>
</html>