[Koha] multiple Koha zebra problem

dcook at prosentient.com.au dcook at prosentient.com.au
Fri Mar 13 19:48:53 NZDT 2020


Hi George, 

 

I’m glad that my email helped!

 

It does feel strange, but that’s the way SysV scripts work. Think about it like a shebang at the top of a script. While it starts with a #, it is still parsed by computers as more than just a comment.

 

David Cook

Systems Librarian

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

Australia

 

Office: 02 9212 0899

Direct: 02 8005 0595

 

From: George Mikuchadze <gmikuchadze at gmail.com> 
Sent: Friday, 13 March 2020 4:11 PM
To: dcook at prosentient.com.au
Subject: Re: [Koha] multiple Koha zebra problem

 

Many thanks for your reply,

I updated this line (very strange because the line is a comment in the script) and it started without any problem!

 

George Mikuchadze

 

On Fri, Mar 13, 2020 at 3:26 AM <dcook at prosentient.com.au <mailto:dcook at prosentient.com.au> > wrote:

Hi George,

I notice that you didn't answer Katrin's questions. Answering those questions is really important, or we can't really help you very well. 

Now, it sounds to me like you've installed Koha from either a "git clone" or a tarball, and that you're running multiple Koha instances from multiple Koha codebases, which may or may not be running the same version. 

I'm guessing that you copied "misc/bin/koha-zebra-ctl.sh" to /etc/init.d/koha-zebra-daemon, /etc/init.d/koha1-zebra-daemon, etc. 

However, it sounds like you haven't updated the following line within that file:
# Provides:          koha-zebra-daemon

You'll need to update that to match the filename. That's why you're getting that error. I think Ubuntu 14.04 used upstart as an init system while Ubuntu 16.04 should be using systemd. Systemd can be pretty strict when it comes to interpreting SysV style scripts like "misc/bin/koha-zebra-ctl.sh", so that's probably where the difference lies. 

Now, if you're only running 1 version of Koha (ie 3.22.21), I'd highly recommend that you don't use git/tarball installations, and instead switch to using Debian packages. It will make your life much easier (and it'll make it easier for you to get support from the Koha Community). 

Cheers,

David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St
Ultimo, NSW 2007
Australia

Office: 02 9212 0899
Direct: 02 8005 0595

-----Original Message-----
Date: Thu, 12 Mar 2020 12:11:08 +0400
From: George Mikuchadze <gmikuchadze at gmail.com <mailto:gmikuchadze at gmail.com> >
To: koha at lists.katipo.co.nz <mailto:koha at lists.katipo.co.nz> , katrin.fischer.83 at web.de <mailto:katrin.fischer.83 at web.de> ,  Irakli
        Garibashvili <igar at hotmail.com <mailto:igar at hotmail.com> >
Subject: [Koha] multiple Koha zebra problem
Message-ID:
        <CAJR6aCBHjT3XBNtvb_Unejw+5cUO9QU7JwfDatskrxPBEWDEnw at mail.gmail.com <mailto:CAJR6aCBHjT3XBNtvb_Unejw%2B5cUO9QU7JwfDatskrxPBEWDEnw at mail.gmail.com> >
Content-Type: text/plain; charset="UTF-8"

Dear Katrin,
Many thanks for Your reply. The problem is the following:
We use multiple koha-s (with the same number of zebra daemons), now we want to install koha v3.22.21 on ubuntu 16.04. When I activate koha-zebra-daemon for the second instance of koha (koha1), I get the error:
----------------------------------------------------------------------------------------------------------------------
$ sudo update-rc.d koha1-zebra-daemon defaults
insserv: script koha1-zebra-daemon: service koha-zebra-daemon already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
-----------------------------------------------------------------------------------------------------------------------
Here is the content of koha1-zebra-daemon:
...............................................................................................................
.............the same as for instance of koha, koha2, koha3.......................
USER=koha
GROUP=koha
DBNAME=koha1
NAME=koha-zebra-ctl.$DBNAME
LOGDIR=/var/log/koha1
ERRLOG=$LOGDIR/koha-zebradaemon.err
STDOUT=$LOGDIR/koha-zebradaemon.log
OUTPUT=$LOGDIR/koha-zebradaemon-output.log
KOHA_CONF=/etc/koha1/koha-conf.xml
RUNDIR=/var/run/koha1/zebradb
LOCKDIR=/var/lock/koha1/zebradb
# you may need to change this depending on where zebrasrv is installed ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn"
....................................................................................................
.............the same as for instance of koha, koha2, koha3...........

The main strange is the following: it (the same version of koha and zebra) works without any problem on Ubuntu 14.04!

Thanks in advance

George Mikuchadze



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
URL: <https://lists.katipo.co.nz/pipermail/koha/attachments/20200313/e665cb3d/attachment.sig>


More information about the Koha mailing list