Hi there, I've installed koha-common debian package on a debian stable machine, but I am using a different port to access the stuff client and also the opac because I am behind a modem that already has the ports 80 and 8080 assigned to another server. Anyway It seems that zebra is not working after importing the database: searching gives no results. Do I have to configure zebra or pazpar2 for using a different port? Thanks Marius
2011/5/24 Marius Stoica <mariustoica@gmail.com>:
Hi there,
I've installed koha-common debian package on a debian stable machine, but I am using a different port to access the stuff client and also the opac because I am behind a modem that already has the ports 80 and 8080 assigned to another server. Anyway It seems that zebra is not working after importing the database: searching gives no results.
Do I have to configure zebra or pazpar2 for using a different port?
No that should make no difference to zebra, thats purely apache2. The cron jobs are running eh? Chris
Marius Stoica schreef op di 24-05-2011 om 13:25 [+0300]:
Anyway It seems that zebra is not working after importing the database: searching gives no results.
The first thing I always do in this case is: sudo /etc/init.d/koha-common restart this'll make sure your daemons are running. Then, if you're still not seeing anything, do: sudo koha-rebuild-zebra --full $(sudo koha-list) -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
I tried the commands but still no result while searching. I also got some warnings. What this means? root@debiankohabjar:/home/bjar# koha-rebuild-zebra --full $(koha-list)
22:00:43-25/05 zebraidx(20725) [warn] Record didn't contain match fields in (bib1,Local-number) 22:00:45-25/05 zebraidx(20734) [warn] Record didn't contain match fields in (bib1,Local-number) root@debiankohabjar:/home/bjar#
Thanks Marius 2011/5/25 Robin Sheat <robin@catalyst.net.nz>
Marius Stoica schreef op di 24-05-2011 om 13:25 [+0300]:
Anyway It seems that zebra is not working after importing the database: searching gives no results.
The first thing I always do in this case is:
sudo /etc/init.d/koha-common restart
this'll make sure your daemons are running.
Then, if you're still not seeing anything, do:
sudo koha-rebuild-zebra --full $(sudo koha-list)
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Marius Stoica schreef op wo 25-05-2011 om 22:12 [+0300]:
root@debiankohabjar:/home/bjar# koha-rebuild-zebra --full $(koha-list) 22:00:43-25/05 zebraidx(20725) [warn] Record didn't contain match fields in (bib1,Local-number) 22:00:45-25/05 zebraidx(20734) [warn] Record didn't contain match fields in (bib1,Local-number)
This means that there are some bad records, although I don't think they should abort the indexing (someone please correct me if I'm wrong.) However, if searching isn't running, then it may be that this is what's happening. Try this instead: sudo -u 'koha-LIBRARY' -H env PERL5LIB=/usr/share/koha/lib KOHA_CONF='/etc/koha/sites/LIBRARY/koha-conf.xml' /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -v -r replace LIBRARY with whatever you called your koha instance. This will do the same thing, however it'll give you verbose output. If this doesn't give you any clues, paste the whole output into http://paste.koha-community.org and tell us the URL - maybe we'll see something useful in it. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Hi, These are the messages that came after using that command: [...]
...................................................................9701............................................................................9801............................ Records exported: 9829 ==================== REINDEXING zebra ==================== 08:35:54-26/05 zebraidx(24889) [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541 08:35:54-26/05 zebraidx(24889) [log] config /etc/koha/sites/fsm/zebra-biblios.cfg 08:35:54-26/05 zebraidx(24889) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 08:35:54-26/05 zebraidx(24889) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 08:35:54-26/05 zebraidx(24889) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 08:35:54-26/05 zebraidx(24889) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 08:35:54-26/05 zebraidx(24889) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 08:35:54-26/05 zebraidx(24889) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 08:35:54-26/05 zebraidx(24889) [log] enabling shadow spec=/var/lib/koha/fsm/biblios/shadow:20G 08:35:54-26/05 zebraidx(24889) [log] cache_fname = /var/lib/koha/fsm/biblios/shadow/cache 08:35:54-26/05 zebraidx(24889) [log] zebra_stop: 0.00 0.00 0.00 08:35:54-26/05 zebraidx(24890) [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541 08:35:54-26/05 zebraidx(24890) [log] config /etc/koha/sites/fsm/zebra-biblios.cfg 08:35:54-26/05 zebraidx(24890) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 08:35:54-26/05 zebraidx(24890) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 08:35:54-26/05 zebraidx(24890) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 08:35:54-26/05 zebraidx(24890) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 08:35:54-26/05 zebraidx(24890) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 08:35:54-26/05 zebraidx(24890) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 08:35:54-26/05 zebraidx(24890) [log] enabling shadow spec=/var/lib/koha/fsm/biblios/shadow:20G 08:35:54-26/05 zebraidx(24890) [log] cache_fname = /var/lib/koha/fsm/biblios/shadow/cache 08:35:54-26/05 zebraidx(24890) [log] dir /tmp/mR7AWBD92A/biblio 08:35:54-26/05 zebraidx(24890) [warn] Record didn't contain match fields in (bib1,Local-number) 08:35:54-26/05 zebraidx(24890) [log] error grs.marcxml.record /tmp/mR7AWBD92A/biblio/exported_records 0 08:35:54-26/05 zebraidx(24890) [log] Iterations: isam/dict 97/27 08:35:54-26/05 zebraidx(24890) [log] Dict: inserts/updates/deletions: 27/0/0 08:35:54-26/05 zebraidx(24890) [log] Records: 0 i/u/d 0/0/0 08:35:54-26/05 zebraidx(24890) [log] zebra_stop: 0.03 0.02 0.01 08:35:54-26/05 zebraidx(24893) [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541 08:35:54-26/05 zebraidx(24893) [log] config /etc/koha/sites/fsm/zebra-biblios.cfg 08:35:54-26/05 zebraidx(24893) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-regx.so 08:35:54-26/05 zebraidx(24893) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-xml.so 08:35:54-26/05 zebraidx(24893) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-dom.so 08:35:54-26/05 zebraidx(24893) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-text.so 08:35:54-26/05 zebraidx(24893) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-alvis.so 08:35:54-26/05 zebraidx(24893) [log] Loaded filter module /usr/lib/idzebra-2.0/modules/mod-grs-marc.so 08:35:54-26/05 zebraidx(24893) [log] enabling shadow spec=/var/lib/koha/fsm/biblios/shadow:20G 08:35:54-26/05 zebraidx(24893) [log] cache_fname = /var/lib/koha/fsm/biblios/shadow/cache 08:35:54-26/05 zebraidx(24893) [log] zebra_stop: 0.01 0.00 0.00 ==================== CLEANING ==================== root@debiankohabjar:/home/bjar#
Some ideas what can be wrong?... Thanks Marius 2011/5/26 Robin Sheat <robin@catalyst.net.nz>
Marius Stoica schreef op wo 25-05-2011 om 22:12 [+0300]:
root@debiankohabjar:/home/bjar# koha-rebuild-zebra --full $(koha-list) 22:00:43-25/05 zebraidx(20725) [warn] Record didn't contain match fields in (bib1,Local-number) 22:00:45-25/05 zebraidx(20734) [warn] Record didn't contain match fields in (bib1,Local-number)
This means that there are some bad records, although I don't think they should abort the indexing (someone please correct me if I'm wrong.)
However, if searching isn't running, then it may be that this is what's happening.
Try this instead:
sudo -u 'koha-LIBRARY' -H env PERL5LIB=/usr/share/koha/lib KOHA_CONF='/etc/koha/sites/LIBRARY/koha-conf.xml' /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -v -r
replace LIBRARY with whatever you called your koha instance. This will do the same thing, however it'll give you verbose output. If this doesn't give you any clues, paste the whole output into http://paste.koha-community.org and tell us the URL - maybe we'll see something useful in it.
-- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Chris Cormack -
Marius Stoica -
Robin Sheat