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 <[email protected]> 
Sent: Friday, 13 March 2020 4:11 PM
To: [email protected]
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 <[email protected] 
<mailto:[email protected]> > 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 <[email protected] <mailto:[email protected]> >
To: [email protected] <mailto:[email protected]> , 
[email protected] <mailto:[email protected]> ,  Irakli
        Garibashvili <[email protected] <mailto:[email protected]> >
Subject: [Koha] multiple Koha zebra problem
Message-ID:
        <cajr6acbhjt3xbntvb_unejw+5cuo9qu7jwfdatskrxpbewd...@mail.gmail.com 
<mailto:cajr6acbhjt3xbntvb_unejw%[email protected]> >
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



Attachment: signature.asc
Description: PGP signature

_______________________________________________

Koha mailing list  http://koha-community.org
[email protected]
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to