[Bug 20745] New: indexing/searching not active at end of installation
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Bug ID: 20745 Summary: indexing/searching not active at end of installation Change sponsored?: --- Product: Koha Version: 17.11 Hardware: PC OS: Linux Status: NEW Severity: critical Priority: P5 - low Component: Installation and upgrade (web-based installer) Assignee: koha-bugs@lists.koha-community.org Reporter: giuseppe.ciaccio@unige.it QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com After installing Koha on Debian (instructions at https://wiki.koha-community.org/wiki/Koha_on_Debian) with marc21 and english language, and completing the installation wizard, you are finally redirected to admin login and then you can perform your first Koha admin operation. Suppose you insert a biblio record with related item -- a typical first step for the beginner. At this point the item is indeed there (e.g. it appears in inventory) but is not searchable: the search page for common users always returns "not found". And then you cry :) But if, at this point, you open a shell on the server and issue the commands sudo service koha-common stop sudo service koha-common start then everything starts working correctly, and the inserted item appears in the search results. Subsequently entered records are immediately searchable as well. It looks like the install wizard omits a final step consisting of activating the indexing service, or something like that. Or, otherwise, the install instructions are omitting the above commands for restarting service before first operation. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Giuseppe Ciaccio <giuseppe.ciaccio@unige.it> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - low |P1 - high -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Giuseppe Ciaccio <giuseppe.ciaccio@unige.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |giuseppe.ciaccio@unige.it --- Comment #1 from Giuseppe Ciaccio <giuseppe.ciaccio@unige.it> --- Important remark: I've read somewhere that the Koha indexing may incur delays, or happens periodically, and therefore a recently inserted record does not appear immediately in the search but will do after some minutes. This is not the case here: after restarting the koha-common services, I see that each new record appears immediately in the search results ("immediately" means "less than 5 seconds after insert"). -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org, | |tomascohen@gmail.com Version|17.11 |master Severity|critical |normal --- Comment #2 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Hum, I do not know what your missing here but it should just work. It's not related to the installation process, the koha-create command should start a koha-indexer process to take care of the indexation. Maybe it did not start correctly? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #3 from Giuseppe Ciaccio <giuseppe.ciaccio@unige.it> --- As a further detail: in my attempts I always start from a fresh Debian 9.4 default install, to be sure nothing has remained from past attempts (this means: all partitions are formatted and then the OS is installed, and finally I install Koha following very strictly the instructions at https://wiki.koha-community.org/wiki/Debian). As of now I have tried with marc21 flavour and english, and marc21 and it-IT, with same results. This evening I will try with unimarc flavour. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #4 from Giuseppe Ciaccio <giuseppe.ciaccio@unige.it> --- I've done a test with unimarc flavour and english or it-IT as the installation language, nothing changes. The inserted records become searchable only after "service koha-common stop && service koha-common start". However, after completing the install/config wizard, I looked at the output of "ps ax" before and after service restart, and noted that, after restart, a new daemon process appeared, called <libraryname>-koha-indexer, which was missing before. I will send a logfile to show this. IMHO the wizard, or the initial koha-create command, fails launching the koha-indexer, and that's why the indexing/searching provides no results until the service is manually restarted. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #5 from Giuseppe Ciaccio <giuseppe.ciaccio@unige.it> --- Created attachment 75217 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75217&action=edit output of "ps ax" before and after koha-common service restart; note the initial absence of koha-indexer (libraryname = ferrer) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #6 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- % sudo koha-create --create-db xxx Koha instance is empty, no staff user created. % ps aux | grep xxx-koha-zebra xxx-koha 3534 0.1 0.0 18608 188 ? S 10:09 0:00 daemon --name=xxx-koha-zebra --pidfiles=/var/run/koha/xxx/ --errlog=/var/log/koha/xxx/zebra-error.log --output=/var/log/koha/xxx/zebra-output.log --verbose=1 --respawn --delay=30 --user=xxx-koha.xxx-koha -- /usr/bin/zebrasrv -v none,fatal,warn -f /etc/koha/sites/xxx/koha-conf.xml Looks ok for me. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #7 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #6)
% sudo koha-create --create-db xxx Koha instance is empty, no staff user created. % ps aux | grep xxx-koha-zebra xxx-koha 3534 0.1 0.0 18608 188 ? S 10:09 0:00 daemon --name=xxx-koha-zebra --pidfiles=/var/run/koha/xxx/ --errlog=/var/log/koha/xxx/zebra-error.log --output=/var/log/koha/xxx/zebra-output.log --verbose=1 --respawn --delay=30 --user=xxx-koha.xxx-koha -- /usr/bin/zebrasrv -v none,fatal,warn -f /etc/koha/sites/xxx/koha-conf.xml
Looks ok for me.
what about the indexer? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- heh, it's missing :) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |major Assignee|koha-bugs@lists.koha-commun |jonathan.druart@bugs.koha-c |ity.org |ommunity.org Status|NEW |ASSIGNED -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #9 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #8)
heh, it's missing :)
--- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -242,9 +242,14 @@ if ($daemon_mode) { if (_flock($LockFH, LOCK_EX|LOCK_NB)) { eval { $dbh = C4::Context->dbh; - if( zebraqueue_not_empty() ) { - Koha::Caches->flush_L1_caches() if $is_memcached; - do_one_pass(); + if ( C4::Context->preference('Version') ) { + if( zebraqueue_not_empty() ) { + Koha::Caches->flush_L1_caches() if $is_memcached; + do_one_pass(); + } + } + else { + warn "Warning: Koha is not installed."; } -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- To my understanding the problem is in koha-zebra. koha-create calls: koha-zebra --start "$name" And then exit 1 it's because the function start_zebra (from koha-zebra) returns an error with: [ "$verbose" != "no" ] && \ log_end_msg 0 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jonathan.druart@bugs.koha-c |tomascohen@gmail.com |ommunity.org | Keywords| |rel_18_05_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |20234 --- Comment #11 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Certainly caused by bug 20234. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20234 [Bug 20234] Make maintenance scripts use koha-zebra instead of koha-*-zebra -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #12 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 75227 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75227&action=edit Bug 20745: koha-zebra doesn't return the correct error codes This patch makes koha-zebra return 0 (or 1) even when verbose mode is off. This made koha-zebra --start always return a failure even when the daemon was correctly launched. To test: - Have Zebra running for kohadev instance on your KohaDevBox - Run: $ sudo koha-zebra --stop kohadev && echo yay || echo doh => FAIL: 'doh' is printed - Run: $ sudo koha-zebra --start kohadev e&& echo yay || echo doh => FAIL: 'doh' is printed as well - Apply this patch - Run: $ sudo perl misc4dev/cp_debian_files.pl $ sudo koha-zebra --stop kohadev && echo yay || echo doh => SUCCESS: 'yay' is printed - Run: $ sudo koha-zebra --start kohadev e&& echo yay || echo doh => SUCCESS: 'yay' is printed - Sign off :-D Sponsored-by: ByWater Solutions -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #13 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Added the 17.11 RMaint because the original patches got backported. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75227|0 |1 is obsolete| | --- Comment #14 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 75231 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75231&action=edit Bug 20745: koha-zebra doesn't return the correct error codes This patch makes koha-zebra return 0 (or 1) even when verbose mode is off. This made koha-zebra --start always return a failure even when the daemon was correctly launched. To test: - Have Zebra running for kohadev instance on your KohaDevBox - Run: $ sudo koha-zebra --stop kohadev && echo yay || echo doh => FAIL: 'doh' is printed - Run: $ sudo koha-zebra --start kohadev e&& echo yay || echo doh => FAIL: 'doh' is printed as well - Apply this patch - Run: $ sudo perl misc4dev/cp_debian_files.pl $ sudo koha-zebra --stop kohadev && echo yay || echo doh => SUCCESS: 'yay' is printed - Run: $ sudo koha-zebra --start kohadev e&& echo yay || echo doh => SUCCESS: 'yay' is printed - Sign off :-D Sponsored-by: ByWater Solutions Signed-off-by: Mark Tompsett <mtompset@hotmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75231|0 |1 is obsolete| | --- Comment #15 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 75233 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75233&action=edit Bug 20745: koha-zebra doesn't return the correct error codes This patch makes koha-zebra return 0 (or 1) even when verbose mode is off. This made koha-zebra --start always return a failure even when the daemon was correctly launched. To test: - Have Zebra running for kohadev instance on your KohaDevBox - Run: $ sudo koha-zebra --stop kohadev && echo yay || echo doh => FAIL: 'doh' is printed - Run: $ sudo koha-zebra --start kohadev e&& echo yay || echo doh => FAIL: 'doh' is printed as well - Apply this patch - Run: $ sudo perl misc4dev/cp_debian_files.pl $ sudo koha-zebra --stop kohadev && echo yay || echo doh => SUCCESS: 'yay' is printed - Run: $ sudo koha-zebra --start kohadev e&& echo yay || echo doh => SUCCESS: 'yay' is printed - Sign off :-D Sponsored-by: ByWater Solutions Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #16 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed to master for 18.05, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_18_05_candidate | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Bug 20745 depends on bug 20234, which changed state. Bug 20234 Summary: Make maintenance scripts use koha-zebra instead of koha-*-zebra https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20234 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Stable |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtj@kohaaloha.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #17 from Mason James <mtj@kohaaloha.com> --- (In reply to Tomás Cohen Arazi from comment #13)
Added the 17.11 RMaint because the original patches got backported.
Frido, just confirming this bug exists in 17.11.07 the patch fixes the bug :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 --- Comment #18 from Fridolin SOMERS <fridolin.somers@biblibre.com> --- (In reply to Mason James from comment #17)
(In reply to Tomás Cohen Arazi from comment #13)
Added the 17.11 RMaint because the original patches got backported.
Frido, just confirming this bug exists in 17.11.07
the patch fixes the bug :)
Ohhh thanks for this, I will backport -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Fridolin SOMERS <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |Pushed to Stable --- Comment #19 from Fridolin SOMERS <fridolin.somers@biblibre.com> --- Pushed to 17.11.x for 17.11.08 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745 Fridolin SOMERS <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Pushed to Stable |RESOLVED --- Comment #20 from Fridolin SOMERS <fridolin.somers@biblibre.com> --- Depends on Bug 20234 not in 17.05.x -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org