<div dir="ltr"><div><div><div>Ok, I've poked around a bit with the scripts now.<br><br></div>Looks like the few command-line tools I looked at expect to be run as root.  The zebra logging level is hard coded in koha-start-zebra as 'none,fatal,warn' which should be sufficient.  You probably already know that the zebra error log is /var/log/koha/k318/zebra-error.log  You may have to edit that script to change the zebra logging level, looks like the value for verbose logging is 'none,fatal,warn,all' or at least that's the case for zebraidx.  I expect zebrasrv to be the same.  I was wondering about file-system permissions, but as long as koha-start-zebra is run as root it takes care of that.<br><br></div>The 'Indexer not running' error refers to the <a href="http://rebuild_zebra.pl">rebuild_zebra.pl</a> script, which is started as a daemon by the koha-indexer command-line tool.  So there may also be some error in there somewhere.  It's log is /var/log/koha/k318/indexer-error.log<br><br></div>Hope that info helps.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 1:02 PM, Michael Hafen <span dir="ltr"><<a href="mailto:michael.hafen@washk12.org" target="_blank">michael.hafen@washk12.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Looks like `koha-start-zebra k318` is one of the command-line tools provided by the koha-common package.  I'm guessing the recommended way to use this too is to run it as root, and it will then sudo to the k318-koha user to perform the task inside the tool.<br></div>Seems there is an error in zebra though.  There should be a way to start zebra with more logging, but I'm not that familiar with the command-line tools.  Hopefully someone else knows more...<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 11:42 AM, Paul A <span dir="ltr"><<a href="mailto:paul.a@navalmarinearchive.com" target="_blank">paul.a@navalmarinearchive.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please bear with me -- I had no luck sorting out my search speed problem, so did a packet apt-get remove, install (not purge.) All went extremely well, OPAC reported "under maintenance", staff admin (logging in with install name) upgraded the 3.05 database (new as requested by /usr/share/koha/k318-db-<u></u>request.txt), and both sites are delivering proper pages through Apache (prefork+itk.)<br>
<br>
But I have a problem with Zebra. Does 'instancename-koha' really have to be a sudoer? If there's a possible quick fix I'll try it, if not I'll start over.<br>
<br>
        k318-koha@hood:/usr/sbin$ koha-start-zebra k318<br>
        Invalid option: --user (only works for root)<br>
        /.../<br>
        Starting Zebra server for k318<br>
        Invalid option: --user (only works for root)<br>
        /.../<br>
        Something went wrong starting Zebra for k318.<br>
<br>
k318-koha is a valid user (non sudoer) with pw generated by Koha. I can start Zebra as root, no problem, but then:<br>
<br>
        k318-koha@hood:/usr/sbin$ koha-rebuild-zebra -v -f k318 [N.B. not 'sudo']<br>
        k318-koha is not in the sudoers file.  This incident will be reported.<br>
        Something went wrong rebuilding biblio indexes for k318<br>
<br>
and I have *not* tried reindexing as root -- ISTR dire warnings not to do so on this list :)<br>
<br>
I've looked at Bug 13396 and koha-conf.xml complies.<br>
<br>
I've tried sudo service koha-common restart<br>
        * Restarting Koha ILS koha-common<br>
        /.../ Zebra already stopped for instance k318.<br>
        SIP server for k318 not running.<br>
        * Error: Indexer not running for k318<br>
<br>
zebra-error log reports:<br>
20150121 12:49:39 k318-koha-zebra: client (pid 2132) exited with 1 status<br>
20150121 12:49:39 k318-koha-zebra: client (pid 2133) exited with 1 status<br>
20150121 12:49:39 k318-koha-zebra: client (pid 2134) exited with 1 status<br>
20150121 12:49:39 k318-koha-zebra: client (pid 2135) exited with 1 status<br>
20150121 12:49:39 k318-koha-zebra: client (pid 2136) exited with 1 status<br>
20150121 12:49:39 k318-koha-zebra: terminating too quickly, waiting 30 seconds<br>
<br>
but I'm not sure where '-zebra' gets concatenated to the user.<br>
<br>
Many thanks -- Paul<br>
<br>
______________________________<u></u>_________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-<u></u>community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.<u></u>org/cgi-bin/mailman/listinfo/<u></u>koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.<u></u>org/</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>