Searching capability dies every few days - Zebra problem?
I'm running Koha version 17.05.01 on Debian 8.8. I set up Koha a few months ago and we're still learning the system. One thing we've noticed that presumably is not normal is that every few days the searching capability dies for some reason or other. My guess is that it has something to do with Zebra. I occasionally get a message from my logrotate cronjob: Zebra already stopped for instance xxx. When I check, there are no koha or zebra processes running. I can restore the search capability by restarting Koha with "invoke-rc.d koha-common restart". Presumably some daemon or other dies but I haven't been able to figure out which one. Maybe it happens during the regular cronjobs? Does anybody have any idea how I can figure out what's happening? One workaround I'm considering is setting up a regular cronjob to restart koha-common regularly, but that doesn't strike me as being a very elegant solution. -- View this message in context: http://koha.1045719.n5.nabble.com/Searching-capability-dies-every-few-days-Z... Sent from the Koha-general mailing list archive at Nabble.com.
Excerpts from mpw's message of 2017-07-31 06:24:49 -0700:
I set up Koha a few months ago and we're still learning the system. One thing we've noticed that presumably is not normal is that every few days the searching capability dies for some reason or other. My guess is that it has something to do with Zebra.
It might be this problem: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16885 I solved it on my installation using this: https://lists.katipo.co.nz/pipermail/koha/2016-September/046167.html
Thanks Mark, It bit me again this morning, probably running the monthly scripts and has been happening regularly every Sunday morning at 00:15 or so. I'm trying your fix, We'll see next Sunday whether it works. Bob Ewart On 07/31/2017 01:03 PM, Mark Alexander wrote:
Excerpts from mpw's message of 2017-07-31 06:24:49 -0700:
I set up Koha a few months ago and we're still learning the system. One thing we've noticed that presumably is not normal is that every few days the searching capability dies for some reason or other. My guess is that it has something to do with Zebra. It might be this problem:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16885
I solved it on my installation using this:
https://lists.katipo.co.nz/pipermail/koha/2016-September/046167.html _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Thanks, Mark, for your suggestion. It sounds like it could very well be the source of my problem. I've followed your advice and will monitor to see if that solves the problem. Otherwise I came up with a quick-and-dirty, very non-elegant script that I've set up to run every five minutes as a cronjob:
#! /bin/sh
PATH=/usr/bin:/usr/sbin:/bin STR="zebra" restart=0
# See if koha/zebra running ps aux | grep $STR | grep -v grep | grep -v restart 2>&1 >/dev/null || restart=1
if [ $restart -eq 1 ]; then echo "Restarting koha/zebra" invoke-rc.d koha-common restart fi
-- View this message in context: http://koha.1045719.n5.nabble.com/Searching-capability-dies-every-few-days-Z... Sent from the Koha-general mailing list archive at Nabble.com.
participants (3)
-
Bob Ewart -
Mark Alexander -
mpw