[Koha] Rebuild Zebra Index

Mark Tompsett mtompset at hotmail.com
Fri Jul 26 09:41:42 NZST 2013


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 



More information about the Koha mailing list