[Koha-devel] Authorities / cron

Paul paul.a at aandc.org
Tue Oct 9 01:18:21 CEST 2012


Happy Thanksgiving Day to Canadians and good evening to you all;

Logging the zebra incrementals, Ubuntu 12.04 seems to be a tad touchy on 
this subject, so I'm now using user=koha crontab -e for this. I had 
problems with functionality of recommended envars and had highcoughs for a 
"user" cron if 'koha' appeared on the exec line:

* * * * * koha $KOHA_PATH/bin/migration_tools/rebuild_zebra.pl /
           ^^^^
-a -b -z -v >> /tmp/cron_koha.log

koha at nelson:/tmp$ cat cron_koha.log
/bin/sh: 1: koha: not found)

but the following gave results:

koha at nelson:$ crontab -l
KOHA_CONF=/etc/koha/koha-conf.xml
PERL5LIB=/usr/share/koha/lib
* * * * *    /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -a -b -z 
-v >> /tmp/cron_koha.log 2>&1

Question: to tidy up the [warn]s -- does anyone please have any pointers? 
Here's an extract:

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
1.                          {what is this? not line wrap? Just the first of 
many lines?}
Records exported: 4
====================
REINDEXING zebra
====================
====================
exporting biblio
====================

Records exported: 0
1..................         {same? {what is this? not line wrap? Just the 
first of many lines?}}
Records exported: 38
====================
REINDEXING zebra
====================
18:13:02-08/10 zebraidx(5501) [warn] Missing attribute 'type' in attribute info
18:13:02-08/10 zebraidx(5501) [warn] Missing attribute 'type' in attribute info
18:13:02-08/10 zebraidx(5501) [warn] Unknown register type:
====================
CLEANING
====================

Thanks and best regards -- Paul



More information about the Koha-devel mailing list