[Koha-bugs] [Bug 8519] Make koha-index-daemon run on startup

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Aug 11 07:02:06 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8519

wajasu <matted-34813 at mypacks.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matted-34813 at mypacks.net

--- Comment #4 from wajasu <matted-34813 at mypacks.net> ---
I attempted to test, but it had a few of problems, with my "standard" fresh
install.

1) make install failed, complaining that:
 "Can't open blib/SCRIPT_DIR/koha-zebraqueue-ctl.sh for read at
rewrite-config.PL line 184".
It seems the Makefile.PL processes it at line 525, but that was removed in the
patch.

It probably needs to be changed refer to the koha-zebra-indexdaemon-ctl.sh to
replace the rewrite_config fields.

2) I changed it in my test environment, and "make install" ran, and I
symlinked/ran the script but got :
20120810 15:39:25 koha-zebra-indexdaemon-ctl-koha: client (pid 11935) exited
with 1 status
...
20120810 15:39:25 koha-zebra-indexdaemon-ctl-koha: client (pid 11940) exited
with 1 status
20120810 15:39:25 koha-zebra-indexdaemon-ctl-koha: terminating too quickly,
waiting 30 seconds

koha-index-daemon is not anywhere to be found in the patch.

so
3) jcamins on IRC suggested that Koha:Contrib:Tamil contained the missing
script, so I used cpan in my test vm. That included a lot of stuff.  Maybe we
only require the Koha:Contrib:Tamil:Indexer  and
Koha:Contrib:Tamil:IndexerDaemon components.

After that I got the koha-zebra-indexdaemon script running. But,
it was failing which is the default directory.  So I added to
misc/bin/koha-zebra-indexdaemon-ctl.sh as part of the INDEXDAEMONOPTS
--directory /var/tmp/$DBNAME-zebraqueue-index
which allowed the tamil contribs indexdaemon to create it.
I checked the zebraqueue tables and after the 30 second timeout, it
processed another z3950 cataloging import.

Great!

4) Other things to notice:
find kohaclonedir -name "*.*" -exec grep -Hn "zebraqueue" {} \;
to find other places that mentioned zebra queue related things, and saw a
./misc/cronjobs/zebraqueue_start.pl
This is probably obsolete as well, and should be removed.

The INSTALL texts need to be updated, and one refers you to the wiki
for configuration.  So that need to be addressed. Possibly as a followup patch.

I will let the daemon run over the weekend to see if it behaves. But maybe we
want someone to write a load "test". 

I'm going to bring things up next week to see if anything I mentioned needs to
be addressed from the patch writer and community.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list