[Koha] Problems with OPAC

PasiK pasi.korkalo at oululainen.com
Tue Feb 16 02:46:16 NZDT 2010


I can't get the zebra-daemons to start, this is what they say with sh -x:

koha-zebra-ctl.sh:

+ USER=__KOHA_USER__
+ GROUP=__KOHA_GROUP__
+ DBNAME=__DB_NAME__
+ NAME=koha-zebra-ctl.__DB_NAME__
+ LOGDIR=__LOG_DIR__
+ ERRLOG=__LOG_DIR__/koha-zebradaemon.err
+ STDOUT=__LOG_DIR__/koha-zebradaemon.log
+ OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log
+ KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml
+ RUNDIR=__ZEBRA_RUN_DIR__
+ LOCKDIR=__ZEBRA_LOCK_DIR__
+ ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv
+ test -f __PATH_TO_ZEBRA__/zebrasrv
+ exit 0

koha-zebraqueue-ctl.sh:

+ USER=__KOHA_USER__
+ GROUP=__KOHA_GROUP__
+ DBNAME=__DB_NAME__
+ NAME=koha-zebraqueue-ctl-__DB_NAME__
+ LOGDIR=__LOG_DIR__
+ PERL5LIB=__PERL_MODULE_DIR__
+ KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml
+ ERRLOG=__LOG_DIR__/koha-zebraqueue.err
+ STDOUT=__LOG_DIR__/koha-zebraqueue.log
+ OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log
+ export KOHA_CONF
+ export PERL5LIB
+ ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl
+ test -f __SCRIPT_DIR__/zebraqueue_daemon.pl
+ exit 0

Obviously something wrong with the configuration, but what configuration
where?


Braedon Vickers wrote:
> 
> On 11/02/10 11:27, PasiK wrote:
>> How can we make the switch to Zebra? Besides changing the system
>> parameter
>> what else needs to be done?
>>    
> You need to setup and start the Zebra daemons, index all your current 
> inventory, and set up a cron job to automatically update the index.
> 
> What OS and install type(dev/standard) are you on?
> 
> For an Ubuntu standard install, do the following. Adjust to your system 
> if different.
> 
> Setup the Daemons:
> 
> sudo aptitude update
> 
> sudo aptitude installidzebra-2.0
> sudo  ln  -s 
> /usr/share/koha/bin/koha-zebra-ctl.sh/etc/init.d/koha-zebra-daemon
> sudo  update-rc.d koha-zebra-daemon defaults
> sudo  /etc/init.d/koha-zebra-daemon start
> 
> sudo  ln  -s 
> /usr/share/koha/bin/koha-zebraqueue-ctl.sh/etc/init.d/koha-zebraqueue-daemon
> sudo  update-rc.d koha-zebraqueue-daemon defaults
> sudo  /etc/init.d/koha-zebraqueue-daemon start
> 
> Make sure you have set the following environmental variables so you can 
> run the scripts:
> 
> export KOHA_CONF=/etc/koha/koha-conf.xmlexport
> PERL5LIB=/usr/share/koha/lib
> 
> I put them in /etc/enviroment, but there are a few other options also.
> 
> This command should do the initial index:
> 
> perl -I /usr/share/koha/lib
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -v -b -w
> 
> The cron job to do regular index updates should be set up for the koha 
> user, assuming you have. To open a crontab editor for the koha user:
> 
> sudo  -u  koha crontab-e
> 
> The following lines are what I have in my crontab:
> 
> # ZEBRA INDEX UPDATES with -z option, incremental index updates throughout
> the day
> # for both authorities and bibs
> */10 * * * *  /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a
> -z>  /dev/null
> 
> Once you have done all that, you should be able to switch the preference 
> over in Koha.
> 
> Note that I have only tested this on Ubuntu standard install of 3.00.05.
> 
> Hope that helps,
> 
>      Braedon Vickers
> 
> -- 
> TechnologyWise Ltd, Tauranga, NZ
> braedon at tw.co.nz
> www.technologywise.co.nz
> ph: +64 (0)7 571 1060
> fax: +64 (0)7 571 1061
> 
> 
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
> 
> 

-- 
View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27594000.html
Sent from the Koha - Discuss mailing list archive at Nabble.com.



More information about the Koha mailing list