[Koha-devel] koha-zebra --stop doesn't work?

Tomas Cohen Arazi tomascohen at gmail.com
Thu Dec 3 15:04:46 CET 2020


You don't just violently kill a process. You send it the signal so it
closes its open connections, etc.
Of course killing it with -9 will yield an empty ps -ef.

It would be interesting to see if those defunct processes cleanup after
some reasonable time.

What OS are you using? (in KTD it would mean what image, default is
master-stretch, I use master-buster to develop/QA).


El jue, 3 dic 2020 a las 1:34, <dcook at prosentient.com.au> escribió:

> So I just tried "koha-zebra --restart kohadev" after making a change to
> log levels to include request in koha-conf.xml in koha-testing-docker and
> it's a mess:
>
> root at kohadevbox:koha(bug_12430)$ ps -efww | grep "zebrasrv"
> kohadev+   808     1  0 02:04 ?        00:00:00 daemon
> --name=kohadev-koha-zebra --pidfiles=/var/run/koha/kohadev/
> --errlog=/var/log/koha/kohadev/zebra-error.log
> --output=/var/log/koha/kohadev/zebra-output.log --verbose=1 --respawn --del
> ay=30 --user=kohadev-koha.kohadev-koha -- /usr/bin/zebrasrv -v
> none,fatal,warn -k 1024 -f /etc/koha/sites/kohadev/koha-conf.xml
> kohadev+   840   808  0 02:04 ?        00:00:00 [zebrasrv] <defunct>
> kohadev+  5183     1  0 04:28 ?        00:00:00 /usr/bin/zebrasrv -v
> none,fatal,warn -k 1024 -f /etc/koha/sites/kohadev/koha-conf.xml
> root      5373  3959  0 04:31 pts/1    00:00:00 grep zebrasrv
>
> Using "kill -9", I kill off all those.
>
> I run "koha-zebra --start kohadev":
>
> root at kohadevbox:koha(bug_12430)$ ps -efww | grep "zebrasrv"
> kohadev+  5418     1  0 04:31 ?        00:00:00 daemon
> --name=kohadev-koha-zebra --pidfiles=/var/run/koha/kohadev/
> --errlog=/var/log/koha/kohadev/zebra-error.log
> --output=/var/log/koha/kohadev/zebra-output.log --verbose=1 --respawn --del
> ay=30 --user=kohadev-koha.kohadev-koha -- /usr/bin/zebrasrv -v
> none,fatal,warn,request -k 1024 -f /etc/koha/sites/kohadev/koha-conf.xml
> kohadev+  5422  5418  0 04:31 ?        00:00:00 /usr/bin/zebrasrv -v
> none,fatal,warn,request -k 1024 -f /etc/koha/sites/kohadev/koha-conf.xml
> root      5424  3959  0 04:31 pts/1    00:00:00 grep zebrasrv
>
> That's much better now.
>
> Just opened
> https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27140
>
> David Cook
> Software Engineer
> Prosentient Systems
> 72/330 Wattle St
> Ultimo, NSW 2007
> Australia
>
> Office: 02 9212 0899
> Online: 02 8005 0595
>
> -----Original Message-----
> From: Koha-devel <koha-devel-bounces at lists.koha-community.org> On Behalf
> Of dcook at prosentient.com.au
> Sent: Thursday, 3 December 2020 1:34 PM
> To: 'Mason James' <mtj at kohaaloha.com>; 'Koha Devel' <
> koha-devel at lists.koha-community.org>
> Subject: Re: [Koha-devel] koha-zebra --stop doesn't work?
>
> Hmm then it must just be me, because "koha-zebra --stop $koha_instance" is
> definitely not stopping zebrasrv on my servers...
>
> Mind you "kill" doesn't either without a -9..
>
> David Cook
> Software Engineer
> Prosentient Systems
> 72/330 Wattle St
> Ultimo, NSW 2007
> Australia
>
> Office: 02 9212 0899
> Online: 02 8005 0595
>
> -----Original Message-----
> From: Mason James <mtj at kohaaloha.com>
> Sent: Thursday, 3 December 2020 1:28 PM
> To: dcook at prosentient.com.au; 'Koha Devel'
> <koha-devel at lists.koha-community.org>
> Subject: Re: [Koha-devel] koha-zebra --stop doesn't work?
>
> for me, it successfully stops the zebrasrv process
>
>
> try the following to stop zebraidx
>
> koha-indexer --stop $koha_instance
>
>
> On 3/12/20 2:01 pm, dcook at prosentient.com.au wrote:
> >
> > Hi all,
> >
> > Is it just me or does "koha-zebra --stop" not actually stop Zebra?
> >
> > David Cook
> >
> > Software Engineer
> >
> > Prosentient Systems
> >
> > 72/330 Wattle St
> >
> > Ultimo, NSW 2007
> >
> > Australia
> >
> > Office: 02 9212 0899
> >
> > Online: 02 8005 0595
> >
> >
> > _______________________________________________
> > Koha-devel mailing list
> > Koha-devel at lists.koha-community.org
> > https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> > website : http://www.koha-community.org/ git :
> > http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
>
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/ git :
> http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>


-- 
Tomás Cohen Arazi
Theke Solutions (http://theke.io)
✆ +54 9351 3513384
GPG: B2F3C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20201203/9e75d449/attachment.htm>


More information about the Koha-devel mailing list