[Koha] Fwd: re:koha and zebra

Joe Atzberger ohiocore at gmail.com
Thu Apr 2 02:19:10 NZDT 2009


Unless you are going to run your zebrasrv process as root, you will need to
change ownership on all the zebra files to be your zebra user.  In most
cases, this is the same as you koha user.

The reason it would be a problem is that you ran the rebuild_zebra job as
root, and therefore may have created new files owned by root that will be
uneditable to the zebra user.  In the future, run that job as the zebra/koha
user to avoid such problems.

--Joe

2009/4/1 arun kumar <arunjan13 at gmail.com>

> hi friends .
>
>                               i am arun kumar ,now i am installing koha3 on
> ubuntu8.10 ,i have choosen *zebra* option ,and i created my library and
> order and received the books ,but if i made a search in opac it shows that
> result not found .
>
>      try to rebuild the index
>
> root at ubuntu-laptop:~#* export PERL5LIB=/usr/share/koha/lib*
> root at ubuntu-laptop:~# export KOHA_CONF=/etc/koha/koha-conf.xml
>  root at ubuntu-laptop:~#*/usr/share/koha-3.00.00/misc/migration_tools/rebuild_zebra.pl -a
> *
>
> it shows the result as
> Zebra configuration information
> ================================
> Zebra biblio directory      = /var/lib/koha/zebradb/biblios
> Zebra authorities directory = /var/lib/koha/zebradb/authorities
> Koha directory              = /usr/share/koha/intranet/cgi-bin
> BIBLIONUMBER in :     999$c
> BIBLIOITEMNUMBER in : 999$d
> ================================
> ====================
> exporting authority
> ====================
>
> Records exported: 0
> ====================
> REINDEXING zebra
> ====================
> skipping biblios
> ====================
> CLEANING
> ====================
> root at ubuntu-laptop:~#*/usr/share/koha-3.00.00/misc/migration_tools/rebuild_zebra.pl -b
> *
> Zebra configuration information
> ================================
> Zebra biblio directory      = /var/lib/koha/zebradb/biblios
> Zebra authorities directory = /var/lib/koha/zebradb/authorities
> Koha directory              = /usr/share/koha/intranet/cgi-bin
> BIBLIONUMBER in :     999$c
> BIBLIOITEMNUMBER in : 999$d
> ================================
> skipping authorities
> ====================
> exporting biblio
> ====================
> 1
> Records exported: 1
> ====================
> REINDEXING zebra
> ====================
> 10:36:24-01/04 zebraidx(7149) [log] zebra_start
> /etc/koha/zebradb/zebra-biblios.cfg 1.3.50
> 10:36:24-01/04 zebraidx(7149) [debug][log] zebra_register_open rw = 1
> useshadow=1 p=0x9369268,n=,rp=(none)
> 10:36:24-01/04 zebraidx(7149) [log] enabling cache
> spec=/var/lib/koha/zebradb/biblios/shadow:4G
> 10:36:24-01/04 zebraidx(7149) [log] cache_fname =
> /var/lib/koha/zebradb/biblios/shadow/cache
> 10:36:24-01/04 zebraidx(7149) [log]
> profilePath=/etc/koha/zebradb/biblios/etc:/etc/koha/zebradb/etc:/etc/koha/zebradb/marc_defs/marc21/biblios:/etc/koha/zebradb/lang_defs/en
> cwd=/root
> 10:36:24-01/04 zebraidx(7149) [log] dir /tmp/ccVUlA8ixY/biblio
> 10:36:24-01/04 zebraidx(7149) [log] add grs.marcxml.record
> /tmp/ccVUlA8ixY/biblio/exported_records 0
> 10:36:24-01/04 zebraidx(7149) [log] zebra_end_trans
> 10:36:24-01/04 zebraidx(7149) [log] sorting section 1
> 10:36:24-01/04 zebraidx(7149) [log] Iterations . . .    458
> 10:36:24-01/04 zebraidx(7149) [log] Distinct words .    195
> 10:36:24-01/04 zebraidx(7149) [log] Updates. . . . .      0
> 10:36:24-01/04 zebraidx(7149) [log] Deletions. . . .      0
> 10:36:24-01/04 zebraidx(7149) [log] Insertions . . .    195
> 10:36:24-01/04 zebraidx(7149) [debug][log] zebra_register_close p=0x9369268
> 10:36:24-01/04 zebraidx(7149) [log] Records:       1 i/u/d 1/0/0
> 10:36:24-01/04 zebraidx(7149) [log] user/system: 2/0
> 10:36:24-01/04 zebraidx(7149) [debug][log] zebra_stop
> 10:36:24-01/04 zebraidx(7149) [log] zebraidx times:  0.20  0.02  0.00
> 10:36:24-01/04 zebraidx(7150) [log] zebra_start
> /etc/koha/zebradb/zebra-biblios.cfg 1.3.50
> 10:36:24-01/04 zebraidx(7150) [log] enabling cache
> spec=/var/lib/koha/zebradb/biblios/shadow:4G
> 10:36:24-01/04 zebraidx(7150) [log] cache_fname =
> /var/lib/koha/zebradb/biblios/shadow/cache
> 10:36:24-01/04 zebraidx(7150) [log] commit start
> 10:36:24-01/04 zebraidx(7150) [debug][log] zebra_stop
> ====================
> CLEANING
> ====================
> *root at ubuntu-laptop:~#
> /usr/share/koha-3.00.00/misc/migration_tools/rebuild_zebra.pl -z
> Must specify -b or -a to reindex bibs or authorities
> Please do '/usr/share/koha-3.00.00/misc/migration_tools/rebuild_zebra.pl
> --help' to see usage.*
>
> AFTER THIS I MADE A SEARCH FOR BOOKS IN MY LIBRARY , BUT STILL IT SHOWS
> RESULT NOT FOUND
> what shall i do further ,please help me friends
>
>
>
>
>
> --
> WITH BEST WISHES
> ARUNKUMAR.P
>
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20090401/e06e4040/attachment-0001.htm 


More information about the Koha mailing list