[Koha] Zebra troubles after upgrading from 2.2

Tom Francart francart at gmail.com
Thu Jul 12 19:16:20 NZST 2012


Dear all,

We've just upgraded from Koha 2.2 to Koha 3.8 and are having troubles
searching with zebra.

We proceeded as follows:
- Upgrade from 2.2 to 3.0 using the instructions on
http://wiki.koha-community.org/wiki/Upgrading_2.2
- Upgrade from 3.0 to 3.8 (perl Makefile.PL, make, make upgrade)
My install log is below this message.
Note that I answered yes to whether I wanted to use DOM for Marc records.

Running misc/migration_tools/rebuild_zebra.pl -a -b -k –reset yields:
koha at gilbert:/home/tom/temp/koha/koha-3.8.2$
misc/migration_tools/rebuild_zebra.pl -b -r

error retrieving biblio 663 at misc/migration_tools/rebuild_zebra.pl line 485.
error retrieving biblio 664 at misc/migration_tools/rebuild_zebra.pl line 485.
error retrieving biblio 665 at misc/migration_tools/rebuild_zebra.pl line 485.
error retrieving biblio 666 at misc/migration_tools/rebuild_zebra.pl line 485.
error retrieving biblio 667 at misc/migration_tools/rebuild_zebra.pl line 485.
09:02:51-12/07 zebraidx(16409) [warn] Record didn't contain match
fields in (bib1,Local-number)

I'm not sure if these errors matter.

When trying to search using the web interface, or yaz-client, I get no
results. Maybe there are no records in the database, but I'm not sure
how to debug this.
zebrasrv reports the following following a search for "Moore" (which
is an author definitely in the database):

09:05:10-12/07 [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541
09:05:10-12/07 [log] config /usr/local/koha3/etc/zebradb/zebra-biblios.cfg
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-alvis.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-dom.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-xml.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-regx.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-marc.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-text.so
09:05:10-12/07 [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541
09:05:10-12/07 [log] config
/usr/local/koha3/etc/zebradb/zebra-authorities-dom.cfg
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-alvis.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-dom.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-xml.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-regx.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-marc.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-text.so
09:05:10-12/07 [log] zebra_start 2.0.44 419ad759807269fdfa379799a051ed3a551c6541
09:05:10-12/07 [log] config /usr/local/koha3/etc/zebradb/zebra-biblios.cfg
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-alvis.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-dom.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-xml.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-regx.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-grs-marc.so
09:05:10-12/07 [log] Loaded filter module
/usr/lib/idzebra-2.0/modules/mod-text.so
09:05:10-12/07 [server] Adding dynamic listener on
unix:/usr/local/koha3/var/run/zebradb/bibliosocket id=1
09:05:10-12/07 [server] Adding dynamic listener on
unix:/usr/local/koha3/var/run/zebradb/authoritysocket id=2
09:05:10-12/07 [server] Adding dynamic listener on tcp:@:9998 id=3
09:05:10-12/07 [server] Starting server /usr/bin/zebrasrv pid=16425
09:05:52-12/07 zebrasrv(1) [session] Session - OK 1
unix:/usr/local/koha3/var/run/zebradb/bibliosocket 16432
09:05:52-12/07 zebrasrv(1) [request] Auth idPass kohauser -
09:05:52-12/07 zebrasrv(1) [request] Init OK - ID:81 Name:ZOOM-C/YAZ
Version:4.0.11 e8ca42e680c5e5a644481e5d0b75a0e57c6d3e92
09:05:52-12/07 zebrasrv(1) [log] dict_lookup_grep: (\x01\x0D)EIIO5.*
09:05:52-12/07 zebrasrv(1) [request] Search biblios OK 0 1 1+0 RPN
@attrset Bib-1 @attr 1=1016 @attr 4=6 @attr 5=1 moore
09:05:53-12/07 zebrasrv(1) [session] Connection closed by client

I thought the problem might be related to this page:
http://wiki.koha-community.org/wiki/Switching_to_dom_indexing
So I tried to follow the instructions, but they appear to be written
for another (newer?) version of koha, and I'd rather stick to a stable
version.

Searching works when using the NoZebra option.

Any help or suggestions how to debug this would be appreciated.

best regards,
Tom


# This file contains settings used
# during the installation of Koha.
# It is meant for use during future
# upgrades of Koha, and should not
# be edited.
KOHA_INSTALLED_VERSION=3.08.01.002
LOG_DIR=/usr/local/koha3/var/log
DB_TYPE=mysql
DB_NAME=Koha3
DB_HOST=localhost
DB_PORT=3306
DB_USER=kohaadmin3
DB_PASS=xxxxxx
WEBMASTER_EMAIL=webmaster at gilbert
WEBSERVER_DOMAIN=gilbert
WEBSERVER_HOST=gilbert
WEBSERVER_IP=134.58.33.225
WEBSERVER_PORT=80
WEBSERVER_PORT_LIBRARIAN=8080
ZEBRA_SRU_HOST=gilbert
ZEBRA_SRU_BIBLIOS_PORT=9998
ZEBRA_SRU_AUTHORITIES_PORT=9999
KOHA_USER=koha
KOHA_GROUP=koha
ZEBRA_PASS=xxxxxxxxxx
ZEBRA_USER=kohauser
INTRANET_CGI_DIR=/usr/local/koha3/intranet/cgi-bin
INTRANET_TMPL_DIR=/usr/local/koha3/intranet/htdocs/intranet-tmpl
INTRANET_WWW_DIR=/usr/local/koha3/intranet/htdocs
OPAC_CGI_DIR=/usr/local/koha3/opac/cgi-bin
OPAC_TMPL_DIR=/usr/local/koha3/opac/htdocs/opac-tmpl
OPAC_WWW_DIR=/usr/local/koha3/opac/htdocs
PERL_MODULE_DIR=/usr/local/koha3/lib
KOHA_CONF_DIR=/usr/local/koha3/etc
ZEBRA_CONF_DIR=/usr/local/koha3/etc/zebradb
PAZPAR2_CONF_DIR=/usr/local/koha3/etc/pazpar2
MISC_DIR=/usr/local/koha3/misc
SCRIPT_DIR=/usr/local/koha3/bin
MAN_DIR=/usr/local/koha3/man
DOC_DIR=/usr/local/koha3/doc
ZEBRA_LOCK_DIR=/usr/local/koha3/var/lock/zebradb
ZEBRA_DATA_DIR=/usr/local/koha3/var/lib/zebradb
ZEBRA_RUN_DIR=/usr/local/koha3/var/run/zebradb
ZEBRA_MARC_FORMAT=marc21
ZEBRA_LANGUAGE=en
ZEBRA_AUTH_CFG=zebra-authorities-dom.cfg
AUTH_RETRIEVAL_CFG=retrieval-info-auth-dom.xml
MERGE_SERVER_HOST=gilbert
MERGE_SERVER_PORT=11001
PAZPAR2_HOST=gilbert
PAZPAR2_PORT=11002
INSTALL_MODE=single
INSTALL_BASE=/usr/local/koha3
INSTALL_ZEBRA=yes
INSTALL_SRU=no
INSTALL_PAZPAR2=no
AUTH_INDEX_MODE=dom
RUN_DATABASE_TESTS=no
PATH_TO_ZEBRA=/usr/bin
USE_MEMCACHED=no
MEMCACHED_SERVERS=
MEMCACHED_NAMESPACE=


More information about the Koha mailing list