Dear All, We are facing a problem in Koha. Library staff if editing records online but the changes are not showing in. I think it is an indexing issue. I tested it on a test server the issue actually is that when I run an incremental indexing it only indexes the new book that has been added but does not include (edit) the book already in the system. And when I re-indexes the complete records it disturbs all the records and after that no records comes in the search. Regards : Syed Imran -- View this message in context: http://koha.1045719.n5.nabble.com/Rebuild-Zebra-Index-tp5761955.html Sent from the Koha-general mailing list archive at Nabble.com.
Could you elaborate a bit more? Important data: - What Koha version you're running. - Install method - The commands you issue for each of the tasks you describe as failing - The output you get from them Regards To+ On Fri, Jul 19, 2013 at 2:13 AM, Shah <imran.syed@itcompletes.com> wrote:
Dear All,
We are facing a problem in Koha. Library staff if editing records online but the changes are not showing in. I think it is an indexing issue. I tested it on a test server the issue actually is that when I run an incremental indexing it only indexes the new book that has been added but does not include (edit) the book already in the system. And when I re-indexes the complete records it disturbs all the records and after that no records comes in the search.
Regards : Syed Imran
-- View this message in context: http://koha.1045719.n5.nabble.com/Rebuild-Zebra-Index-tp5761955.html 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
Dear Tomas, Thanks for the reply .. we are running koha version is 3.08.00.001 we did install koha on Debian. and the first command is for rebuild Zebra KOHA_CONF=/home/koha/kohaclone/blib/KOHA_CONF_DIR/koha-conf.xml PERL5LIB=/home/koha/kohaclone/ /home/koha/kohaclone/blib/SCRIPT_NONDEV_DIR/migration_tools/rebuild_zebra.pl -b -r -v and the output is [End few lines]. "io/exported_records 357139 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 357653 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 358687 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 359258 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 359800 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 360329 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 360906 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 361442 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 362123 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 362896 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 363409 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 363923 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 364460 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 365147 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 365831 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 366368 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 366881 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 367396 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 367996 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 368692 06:44:08-22/07 zebraidx(9879) [log] add grs.marcxml.record /tmp/1Zs3vB0_IH/biblio/exported_records 369212 06:44:08-22/07 zebraidx(9879) [fatal] fopen /home/koha/koha-dev/var/lib/zebradb/biblios/key/key1.tmp [Permission denied] 06:44:08-22/07 zebraidx(9879) [log] key_block_flush: exit 06:44:08-22/07 zebraidx(9881) [log] zebra_start 2.0.50 732870c555c7d32c5d2b6a4914c6fa7232eb26b2 06:44:08-22/07 zebraidx(9881) [log] config /home/koha/koha-dev/etc/zebradb/zebra-biblios.cfg 06:44:08-22/07 zebraidx(9881) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 06:44:08-22/07 zebraidx(9881) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 06:44:08-22/07 zebraidx(9881) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 06:44:08-22/07 zebraidx(9881) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 06:44:08-22/07 zebraidx(9881) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 06:44:08-22/07 zebraidx(9881) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 06:44:08-22/07 zebraidx(9881) [warn] previous transaction didn't reach commit 06:44:08-22/07 zebraidx(9881) [log] enabling shadow spec=/home/koha/koha-dev/var/lib/zebradb/biblios/shadow:20G 06:44:08-22/07 zebraidx(9881) [log] cache_fname = /home/koha/koha-dev/var/lib/zebradb/biblios/shadow/cache 06:44:08-22/07 zebraidx(9881) [log] zebra_stop: 0.00 0.00 0.00 ==================== CLEANING ==================== " -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-Indexing-tp5761955p5762130.html Sent from the Koha-general mailing list archive at Nabble.com.
* Shah (imran.syed@itcompletes.com) wrote:
Dear Tomas,
06:44:08-22/07 zebraidx(9879) [fatal] fopen /home/koha/koha-dev/var/lib/zebradb/biblios/key/key1.tmp [Permission denied] 06:44:08-22/07 zebraidx(9879) [log] key_block_flush: exit
You have a permissions problem, the user you are running rebuild_zebra as does not have permission to write to that directory or file Chris -- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
dear Chirs ,, How I can fix this issue? Imran -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-Indexing-tp5761955p5762513.html Sent from the Koha-general mailing list archive at Nabble.com.
Dear , I did give the all user rites to myuser then again I run my this command ,, "sudo KOHA_CONF=/home/koha/kohaclone/blib/KOHA_CONF_DIR/koha-conf.xml PERL5LIB=/home/koha/kohaclone/ /home/koha/kohaclone/blib/SCRIPT_NONDEV_DIR/migration_tools/rebuild_zebra.pl -b -r -v" Now the output is (End few lines) 07:51:39-25/07 zebraidx(1751) [log] Merge 12.2% completed; 8 minutes remaining 07:51:49-25/07 zebraidx(1751) [log] Merge 14.9% completed; 7 minutes remaining 07:51:59-25/07 zebraidx(1751) [log] Merge 18.1% completed; 6 minutes remaining 07:52:09-25/07 zebraidx(1751) [log] Merge 21.0% completed; 6 minutes remaining 07:52:19-25/07 zebraidx(1751) [log] Merge 23.8% completed; 5 minutes remaining 07:52:29-25/07 zebraidx(1751) [log] Merge 26.9% completed; 5 minutes remaining 07:52:39-25/07 zebraidx(1751) [log] Merge 30.6% completed; 4 minutes remaining 07:52:49-25/07 zebraidx(1751) [log] Merge 33.3% completed; 4 minutes remaining 07:52:59-25/07 zebraidx(1751) [log] Merge 35.7% completed; 4 minutes remaining 07:53:09-25/07 zebraidx(1751) [log] Merge 37.7% completed; 4 minutes remaining 07:53:19-25/07 zebraidx(1751) [log] Merge 39.8% completed; 4 minutes remaining 07:53:29-25/07 zebraidx(1751) [log] Merge 42.2% completed; 4 minutes remaining 07:53:39-25/07 zebraidx(1751) [log] Merge 44.2% completed; 4 minutes remaining 07:53:49-25/07 zebraidx(1751) [log] Merge 46.8% completed; 3 minutes remaining 07:53:59-25/07 zebraidx(1751) [log] Merge 50.3% completed; 3 minutes remaining 07:54:09-25/07 zebraidx(1751) [log] Merge 53.3% completed; 3 minutes remaining 07:54:19-25/07 zebraidx(1751) [log] Merge 56.6% completed; 2 minutes remaining 07:54:29-25/07 zebraidx(1751) [log] Merge 60.7% completed; 2 minutes remaining 07:54:39-25/07 zebraidx(1751) [log] Merge 63.9% completed; 2 minutes remaining 07:54:49-25/07 zebraidx(1751) [log] Merge 66.6% completed; 130 seconds remaining 07:54:59-25/07 zebraidx(1751) [log] Merge 71.5% completed; 107 seconds remaining 07:55:09-25/07 zebraidx(1751) [log] Merge 75.7% completed; 89 seconds remaining 07:55:19-25/07 zebraidx(1751) [log] Merge 79.1% completed; 76 seconds remaining 07:55:29-25/07 zebraidx(1751) [log] Merge 83.0% completed; 61 seconds remaining 07:55:36-25/07 zebraidx(1771) [log] zebra_start 2.0.50 732870c555c7d32c5d2b6a4914c6fa7232eb26b2 07:55:36-25/07 zebraidx(1771) [log] config /home/koha/koha-dev/etc/zebradb/zebra-biblios.cfg 07:55:36-25/07 zebraidx(1771) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 07:55:36-25/07 zebraidx(1771) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 07:55:36-25/07 zebraidx(1771) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 07:55:36-25/07 zebraidx(1771) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 07:55:37-25/07 zebraidx(1771) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 07:55:37-25/07 zebraidx(1771) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 07:55:37-25/07 zebraidx(1771) [warn] previous transaction didn't reach commit 07:55:37-25/07 zebraidx(1771) [log] enabling shadow spec=/home/koha/koha-dev/var/lib/zebradb/biblios/shadow:20G 07:55:37-25/07 zebraidx(1771) [log] cache_fname = /home/koha/koha-dev/var/lib/zebradb/biblios/shadow/cache 07:55:47-25/07 zebraidx(1771) [log] zebra_stop: 10.34 0.00 0.38 ==================== CLEANING ==================== after that I did check the error log,,, the out put of error log is "20111129 12:14:18 koha-zebra-ctl.koha: client (pid 971) killed by signal 15, stopping 20111129 12:52:55 koha-zebra-ctl.koha: client (pid 970) killed by signal 15, stopping 20111129 13:02:30 koha-zebra-ctl.koha: client (pid 929) killed by signal 15, stopping 20111129 13:04:47 koha-zebra-ctl.koha: client (pid 969) killed by signal 15, stopping 20111129 13:08:33 koha-zebra-ctl.koha: client (pid 942) killed by signal 15, stopping 20111129 13:09:48 koha-zebra-ctl.koha: client (pid 991) killed by signal 15, respawning 20111129 13:10:32 koha-zebra-ctl.koha: client (pid 1681) killed by signal 15, stopping 20111129 13:10:45 koha-zebra-ctl.koha: client (pid 1731) killed by signal 15, stopping 20111129 13:12:19 koha-zebra-ctl.koha: client (pid 1799) killed by signal 15, respawning 20111129 13:12:39 koha-zebra-ctl.koha: client (pid 1803) killed by signal 15, respawning 20111129 13:12:45 koha-zebra-ctl.koha: client (pid 1820) killed by signal 15, respawning 20111129 13:19:55 koha-zebra-ctl.koha: client (pid 1922) killed by signal 15, stopping 20111129 13:24:16 koha-zebra-ctl.koha: client (pid 964) killed by signal 15, stopping 20111129 13:37:45 koha-zebra-ctl.koha: client (pid 983) killed by signal 15, respawning 20111129 13:39:14 koha-zebra-ctl.koha: client (pid 1948) killed by signal 15, stopping 20111129 13:42:46 koha-zebra-ctl.koha: client (pid 996) killed by signal 15, stopping 20111129 13:52:57 koha-zebra-ctl.koha: client (pid 969) killed by signal 15, stopping 20111130 08:04:57 koha-zebra-ctl.koha: client (pid 1026) killed by signal 15, stopping 20111130 08:33:25 koha-zebra-ctl.koha: client (pid 976) killed by signal 15, stopping 20120517 11:12:25 koha-zebra-ctl.koha: client (pid 996) killed by signal 15, stopping 20120517 11:14:16 koha-zebra-ctl.koha: client (pid 981) killed by signal 15, stopping 20120517 11:33:20 koha-zebra-ctl.koha: client (pid 988) killed by signal 15, stopping 20120517 12:02:42 koha-zebra-ctl.koha: client (pid 1057) killed by signal 15, stopping 20120517 12:04:33 koha-zebra-ctl.koha: client (pid 1056) killed by signal 15, stopping 20120517 12:07:26 koha-zebra-ctl.koha: client (pid 1001) killed by signal 15, stopping 20120601 10:32:21 koha-zebra-ctl.koha: client (pid 1108) killed by signal 15, stopping 20120601 10:33:10 koha-zebra-ctl.koha: client (pid 997) killed by signal 15, stopping 20120601 10:35:52 koha-zebra-ctl.koha: client (pid 964) killed by signal 15, stopping 20120601 11:03:35 koha-zebra-ctl.koha: client (pid 1030) killed by signal 15, stopping 20120926 11:03:13 koha-zebra-ctl.koha: client (pid 1131) killed by signal 15, stopping 20121002 10:38:41 koha-zebra-ctl.koha: client (pid 1184) killed by signal 15, stopping 20130109 13:38:59 koha-zebra-ctl.koha: client (pid 1635) killed by signal 15, stopping 20130109 14:26:54 koha-zebra-ctl.koha: client (pid 1075) killed by signal 15, stopping 20130110 08:11:53 koha-zebra-ctl.koha: client (pid 1283) killed by signal 15, stopping 20130110 08:31:43 koha-zebra-ctl.koha: client (pid 1098) killed by signal 15, stopping 20130110 10:03:08 koha-zebra-ctl.koha: client (pid 1190) killed by signal 15, stopping 20130110 13:37:50 koha-zebra-ctl.koha: client (pid 1206) killed by signal 15, stopping 20130218 07:52:13 koha-zebra-ctl.koha: client (pid 1300) killed by signal 15, stopping " Imran ,,, -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-Indexing-tp5761955p5762519.html Sent from the Koha-general mailing list archive at Nabble.com.
Greetings, Wait a second...
"sudo KOHA_CONF=/home/koha/kohaclone/blib/KOHA_CONF_DIR/koha-conf.xml PERL5LIB=/home/koha/kohaclone/ /home/koha/kohaclone/blib/SCRIPT_NONDEV_DIR/migration_tools/rebuild_zebra.pl -b -r -v"
You did a git clone to grab source. Did you answer 'dev', 'single', or 'standard' when you ran the "perl Makefile.PL"? Hmmm....
06:44:08-22/07 zebraidx(9879) [fatal] fopen /home/koha/koha-dev/var/lib/zebradb/biblios/key/key1.tmp [Permission denied] 06:44:08-22/07 zebraidx(9879) [log] key_block_flush: exit
Okay, so you likely answered 'dev'. Okay. So, you have a user named 'koha', with a home directory in /home/koha. You have at least two directories /home/koha/kohaclone and /home/koha/koha-dev. I would attempt, based on the assumption that you answered 'dev' in your installation: $ sudo chown -R -v koha.koha /home/koha [lots of output showing which files were turned back to the proper owner] $ cd /home/koha/kohaclone $ export KOHA_CONF=/home/koha/koha-dev/etc/koha-conf.xml $ export PERL5LIB=/home/koha/kohaclone $ ./misc/migration_tools/rebuild_zebra.pl -b -a -r -v There should be nothing mentioning blib paths in what you run. If you did a development install and the indexing files are in /home/koha/koha-dev, then do not sudo when you reindex. GPML, Mark Tompsett
Dear Mark Tompsett, I followed your given steps and after running the zebra command I got following result "269901.......................................................................... 270001.......................................................................... 270101.......................................................................... 270201.......................................................................... 270301.......................................................................... 270401.................................................................................... Records exported: 270485 ==================== REINDEXING zebra ==================== 10:38:48-29/07 zebraidx(6814) [warn] Unknown register type: 0 10:38:48-29/07 zebraidx(6814) [warn] Unknown register type: n 10:38:48-29/07 zebraidx(6814) [warn] Unknown register type: y 10:38:48-29/07 zebraidx(6814) [warn] Unknown register type: d 11:05:26-29/07 zebraidx(6834) [warn] previous transaction didn't reach commit ==================== CLEANING ==================== koha@koha:~/kohaclone$ " but still we couldn't manage to search the records... please can you help what is the zebra.prl output and how Can I fix it. Imran -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-Indexing-tp5761955p5762754.html Sent from the Koha-general mailing list archive at Nabble.com.
Mark Tompsett I posted the output of your steps Imran -- View this message in context: http://koha.1045719.n5.nabble.com/Zebra-Indexing-tp5761955p5762843.html Sent from the Koha-general mailing list archive at Nabble.com.
participants (4)
-
Chris Cormack -
Mark Tompsett -
Shah -
Tomas Cohen Arazi