<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">
<p>Adding this comment to bug 16885. Thanks.<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="x_divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>Van:</b> Koha <koha-bounces@lists.katipo.co.nz> namens Philippe Blouin <philippe.blouin@inlibro.com><br>
<b>Verzonden:</b> dinsdag 2 augustus 2016 16:47<br>
<b>Aan:</b> Scott Owen; Nombre<br>
<b>CC:</b> koha<br>
<b>Onderwerp:</b> Re: [Koha] search quits working</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size: 10pt;">
<div class="PlainText">(sorry, jumping into the thread)<br>
<br>
We've had this problem on 10% of our installations.  I solved it by <br>
going nuclear with logrotate since that was really hurting the users to <br>
not have zebra working (it would appear like working on our monitor, but <br>
was actually just dying and restarting).<br>
<br>
Here is the postrotate I've end up with, after many iterations of Next <br>
Level Apocalypse You :)<br>
<br>
     postrotate<br>
         service apache2 reload<br>
         find /etc/init.d/ -name "*zebra-daemon" -exec bash -c 'service <br>
"$(basename "$0")" stop' {} \;<br>
         sleep 3<br>
         find /etc/init.d/ -name "*zebra-daemon" -exec bash -c 'service <br>
"$(basename "$0")" stop' {} \;<br>
         sleep 3<br>
         pkill -9 zebra<br>
         sleep 2<br>
         pkill -9 zebra<br>
         sleep 2<br>
         find /etc/init.d/ -name "*zebra-daemon" -exec bash -c 'service <br>
"$(basename "$0")" start' {} \;<br>
     endscript<br>
<br>
As you see, no subtlety, but I've had no problem for a year now...<br>
<br>
Philippe Blouin,<br>
Responsable du développement informatique<br>
<br>
Tél.  : (888) 604-2627<br>
philippe.blouin@inLibro.com <<a href="mailto:philippe.blouin@inLibro.com">mailto:philippe.blouin@inLibro.com</a>><br>
<br>
inLibro | pour esprit libre | <a href="http://www.inLibro.com">www.inLibro.com</a> <<a href="http://www.inLibro.com">http://www.inLibro.com</a>><br>
On 08/02/2016 10:08 AM, Scott Owen wrote:<br>
> Hi,<br>
><br>
> I'm finally getting back to my Koha issues.....<br>
><br>
><br>
> "I'm going to test adding a line<br>
><br>
> /bin/sleep 5<br>
><br>
> as first command in postrotate in logrotate.d/koha-common. I'll see<br>
> tomorrow."<br>
><br>
> Nombre, did this work for you ??<br>
><br>
> or is the issue maybe fixed in the latest release ??<br>
><br>
><br>
> -S<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Fri, Jul 22, 2016 at 7:52 AM, Nombre <d0a10@yahoo.es> wrote:<br>
><br>
>> El 21/07/16 a las 14:55, Marcel de Rooy escribió:<br>
>>> Bug 16885 ?<br>
>> I'm going to test adding a line<br>
>><br>
>> /bin/sleep 5<br>
>><br>
>> as first command in postrotate in logrotate.d/koha-common. I'll see<br>
>> tomorrow.<br>
>><br>
>> Regards<br>
>><br>
>>> -----Oorspronkelijk bericht-----<br>
>>> Van: Koha [<a href="mailto:koha-bounces@lists.katipo.co.nz">mailto:koha-bounces@lists.katipo.co.nz</a>] Namens Tomas Cohen<br>
>> Arazi<br>
>>> Verzonden: donderdag 21 juli 2016 14:27<br>
>>> Aan: Scott Owen <sowen@edzone.net>; Paul A <<br>
>> paul.a@navalmarinearchive.com><br>
>>> CC: koha <koha@lists.katipo.co.nz><br>
>>> Onderwerp: Re: [Koha] search quits working<br>
>>><br>
>>> I blame logrotate.<br>
>>><br>
>>> El jue., 21 jul. 2016 a las 9:12, Scott Owen (<sowen@edzone.net>)<br>
>> escribió:<br>
>>>> Sorry....<br>
>>>> Debian, latest version of Koha.<br>
>>>><br>
>>>> problem *seems* to have only started when I updated to the latest Koha<br>
>>>> version.<br>
>>>><br>
>>>><br>
>>>> 3.22.06.000<br>
>>>> Linux hskoha 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2<br>
>>>> (2016-04-08)<br>
>>>> i686<br>
>>>><br>
>>>><br>
>>>> The issue seems to be with the zebra server somehow coming to a halt,<br>
>>>> and bailing.....seemingly @ approx. 7:35 daily.<br>
>>>><br>
>>>> a quick command of " koha-start-zebra <instance> " makes things<br>
>>>> all-good.....and I can search again.<br>
>>>><br>
>>>> However, within a couple of days....the zebra server appears to die<br>
>> again.<br>
>>>> I have two servers, both at exactly the same rev. and they are both<br>
>>>> exhibiting this behavior. Starting to look at some of the cron.daily<br>
>>>> commands.....they seem the most likely suspect (in my eyes)<br>
>>>><br>
>>>><br>
>>>><br>
>>>> cron.daily -->><br>
>>>><br>
>>>> #!/bin/sh<br>
>>>> # /etc/cron.daily/koha-common -- Daily housekeeping tasks for all Kohas.<br>
>>>> # Copyright 2010  Catalyst IT, Ltd<br>
>>>> #<br>
>>>> # This program is free software: you can redistribute it and/or modify<br>
>>>> # it under the terms of the GNU General Public License as published by<br>
>>>> # the Free Software Foundation, either version 3 of the License, or #<br>
>>>> (at your option) any later version.<br>
>>>> #<br>
>>>> # This program is distributed in the hope that it will be useful, #<br>
>>>> but WITHOUT ANY WARRANTY; without even the implied warranty of #<br>
>>>> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the # GNU<br>
>>>> General Public License for more details.<br>
>>>> #<br>
>>>> # You should have received a copy of the GNU General Public License #<br>
>>>> along with this program.  If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.<br>
>>>><br>
>>>> koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/<br>
>>>> overdue_notices.pl -t koha-foreach --enabled<br>
>>>> /usr/share/koha/bin/cronjobs/fines.pl<br>
>>>> koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/<br>
>>>> advance_notices.pl -c koha-foreach --enabled<br>
>>>> /usr/share/koha/bin/cronjobs/membership_expiry.pl<br>
>>>> -c<br>
>>>> koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/<br>
>>>> cancel_expired_holds.pl >/dev/null 2>&1 koha-foreach --enabled<br>
>>>> /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1<br>
>>>> koha-foreach --enabled<br>
>>>> /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions<br>
>>>> --zebraqueue 10 --list-invites koha-foreach --enabled --noemail<br>
>>>> /usr/share/koha/bin/cronjobs/ cleanup_database.pl --mail koha-foreach<br>
>>>> --enabled /usr/share/koha/bin/cronjobs/holds/<br>
>>>> auto_unsuspend_holds.pl > /dev/null 2>&1 koha-foreach --enabled<br>
>>>> /usr/share/koha/bin/cronjobs/automatic_renewals.pl<br>
>>>> koha-run-backups --days 2 --output /var/spool/koha<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> On Wed, Jul 20, 2016 at 6:41 PM, Paul A<br>
>>>> <paul.a@navalmarinearchive.com><br>
>>>> wrote:<br>
>>>><br>
>>>>> At 10:20 AM 7/20/2016 -0400, Scott Owen wrote:<br>
>>>>><br>
>>>>>> Hi all,<br>
>>>>>> I'm having some issues with Koha searching from both the OPAC and<br>
>>>>>> the staff Intranet.<br>
>>>>>> I have tried several solutions for reindexing etc...<br>
>>>>>> including<br>
>>>>>> ---Koha-rebuild-zebra -f -v -b mylibrary and ---export<br>
>>>>>> PERL5LIB=/usr/share/koha/lib ---export<br>
>>>>>> KOHA_CONF=/usr/share/koha/koha-conf.xml<br>
>>>>>> ---perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r<br>
>>>>>> -v -run-as-root<br>
>>>>>><br>
>>>>> You don't say which version of Koha, nor what o/s you are using.<br>
>>>>> Assuming Debian/Ubuntu, what does printenv give you? You should see<br>
>>>>> something like (amongst other lines):<br>
>>>>><br>
>>>>> me@my_server:/$ printenv<br>
>>>>> PERL5LIB=/usr/share/koha/lib<br>
>>>>><br>
>>>>><br>
>>>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr<br>
>>>> /local/lib/perl<br>
>>>>> KOHA_CONF=/usr/share/koha/koha-conf.xml<br>
>>>>> KOHA_PATH=/usr/share/koha<br>
>>>>><br>
>>>>> I'm also a little surprised by your "-run-as-root" -- in slightly<br>
>>>>> older versions of Koha, this was a "no-no", but may well have<br>
>>>>> changed<br>
>>>> (mpm-itk?)<br>
>>>>> There is also something I noticed in further emails:<br>
>>>>><br>
>>>>>> your zebra error logs.<br>
>>>>> [snip]<br>
>>>>>> 20160713 07:36:11 dlpms-koha-zebra: client (pid 526) killed by<br>
>>>>>> signal<br>
>>>>> 15, stopping<br>
>>>>>> 20160713 07:40:07 dlpms-koha-zebra: client (pid 10116) killed by<br>
>>>>>> signal<br>
>>>>> 15, stopping<br>
>>>>><br>
>>>>> What were the 9590 processes in the <4 minutes? That log entry would<br>
>>>>> certainly get my attention.<br>
>>>>><br>
>>>>> Best -- P.<br>
>>>>><br>
>>>>><br>
>>>>> none of these commands produce any errors, however, they also do not<br>
>>>>> fix<br>
>>>>>> the issue.<br>
>>>>>><br>
>>>>>><br>
>>>>>> A reboot of the VM will cause the "search" to work again for a day<br>
>>>>>> or two....??<br>
>>>>>> (I know....."it shouldn't make a difference" ...but it<br>
>>>>>> does...!?!?!?)<br>
>>>>>><br>
>>>>>><br>
>>>>>> I'm unsure of exactly where to start troubleshooting ???<br>
>>>>>><br>
>>>>>> Any advise on where to begin ??<br>
>>>>>><br>
>>>>>> Thanks,<br>
>>>>>><br>
>>>>>> -S<br>
>>>>>> _______________________________________________<br>
>>>>>> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a><br>
>>>>>> Koha@lists.katipo.co.nz<br>
>>>>>> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
>>>>>><br>
>>>>> ---<br>
>>>>> Maritime heritage and history, preservation and conservation,<br>
>>>>> research and education through the written word and the arts.<br>
>>>>> <<a href="http://NavalMarineArchive.com">http://NavalMarineArchive.com</a>> and <<a href="http://UltraMarine.ca">http://UltraMarine.ca</a>><br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a> Koha@lists.katipo.co.nz<br>
>>>>> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
>>>>><br>
>>>> _______________________________________________<br>
>>>> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a> Koha@lists.katipo.co.nz<br>
>>>> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
>>>><br>
>>> --<br>
>>> Tomás Cohen Arazi<br>
>>> Theke Solutions (<a href=""></a>https://theke.io <<a href="http://theke.io/">http://theke.io/</a>>) ✆ +54 9351 3513384<br>
>>> GPG: B2F3C15F<br>
>>> _______________________________________________<br>
>>> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a> Koha@lists.katipo.co.nz<br>
>> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
>>> _______________________________________________<br>
>>> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a><br>
>>> Koha@lists.katipo.co.nz<br>
>>> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
>>><br>
>> _______________________________________________<br>
>> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a><br>
>> Koha@lists.katipo.co.nz<br>
>> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
>><br>
> _______________________________________________<br>
> Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a><br>
> Koha@lists.katipo.co.nz<br>
> <a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
<br>
_______________________________________________<br>
Koha mailing list  <a href="http://koha-community.org">http://koha-community.org</a><br>
Koha@lists.katipo.co.nz<br>
<a href="https://lists.katipo.co.nz/mailman/listinfo/koha">https://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</div>
</span></font></div>
</div>
</body>
</html>