Zebra index - two instances on one Server
Hi, On the server I have two instances of Koha (koha1, koha2). Zebra unfortunately indexes only data from database koha1 to instances koha1 and index instance Koha2 is empty KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -r -b or data from database koha2 to instances koha1 and index instance Koha2 is empty KOHA_CONF=/etc/koha2/koha-conf.xml PERL5LIB=/usr/share/koha2/lib /usr/share/koha2/bin/migration_tools/rebuild_zebra.pl -r -b How do to index data for the two instances? Thx. Greets -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-index-two-instances-on-one-Server-tp... Sent from the Koha-general mailing list archive at Nabble.com.
Hi, which type of Koha are you running? (Tarball/Git/packages) Fabio 2014-06-18 10:24 GMT+02:00 kamild <smichaelxx@tlen.pl>:
Hi, On the server I have two instances of Koha (koha1, koha2). Zebra unfortunately indexes only data from database koha1 to instances koha1 and index instance Koha2 is empty KOHA_CONF=/etc/koha/koha-conf.xml PERL5LIB=/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -r -b
or data from database koha2 to instances koha1 and index instance Koha2 is empty
KOHA_CONF=/etc/koha2/koha-conf.xml PERL5LIB=/usr/share/koha2/lib /usr/share/koha2/bin/migration_tools/rebuild_zebra.pl -r -b
How do to index data for the two instances? Thx. Greets
-- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-index-two-instances-on-one-Server-tp... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Fabio I running koha ver 3.8 - Tarball. Is it possible to runing zebra with 2 instances koha? thx -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-index-two-instances-on-one-Server-tp... Sent from the Koha-general mailing list archive at Nabble.com.
Sorry but I don't have access to a tarball installation at the moment! However, given you can manually reindex the two instances, you could check your cron for rebuild_zebra.pl and see which koha-conf.xml points to. My guess is that there is one environment variable set up, KOHA_CONF, pointing to a specific koha-conf.xml and referred by cron, thus reindexing just one instance. I noticed you also have two different paths with the code, don't know what you're trying to accomplish with your setup but I'm not sure this is the best way to do it. A smart way to have it working could be to switch to a package installation: this way instances (and cron) are mostly configured for you by some nice scripts. If you want to know more: http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in... I suggest you to make a full backup before tweaking, it could be tricky to fix errors caused by wrong uses of Zebra! Hope this helps! Fabio 2014-06-18 11:05 GMT+02:00 kamild <smichaelxx@tlen.pl>:
Fabio I running koha ver 3.8 - Tarball. Is it possible to runing zebra with 2 instances koha? thx
-- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-index-two-instances-on-one-Server-tp... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Hi, thanks Fabio. I thinking about switch to a package installation but I don't want update ver. koha. I thinking the problem is in the /etc/init.d/koha-zebra-ctl.sh because daemon work only one database. USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn" How change to work a two database? thx -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-index-two-instances-on-one-Server-tp... Sent from the Koha-general mailing list archive at Nabble.com.
You're welcome. I would start checking that $DBNAME variable, I'm sorry but I can't really help since I mostly worked with the package version. Keep us updated as you go, maybe someone else could solve your problem. Fabio 2014-06-20 13:27 GMT+02:00 kamild <smichaelxx@tlen.pl>:
Hi, thanks Fabio. I thinking about switch to a package installation but I don't want update ver. koha. I thinking the problem is in the /etc/init.d/koha-zebra-ctl.sh because daemon work only one database. USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn"
How change to work a two database? thx
-- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-index-two-instances-on-one-Server-tp... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Fabio Tiana -
kamild