[Koha-zebra] Cronjob of "rebuild_zebra.pl" doesn't work

Sander898 scrittore at hotmail.it
Thu Jun 7 07:27:03 CEST 2012


Hi everyone,

I'm running Koha 3.8 on Centos 6.

I have add a cronjob for rebuild the zebra database every 1 minute, but this
cronjob doesn't work, and I can't realize why.

This is the cronjob:

------
[root at host /]# crontab -u koha -l
PERL5LIB=/usr/share/koha/lib
KOHA_CONF=/etc/koha/koha-conf.xml

*/1 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -v >
/tmp/b
------

This is the output of the cronjob:

------
[root at host /]# tail -f /tmp/b
exporting biblio
====================
1.......
Records exported: 8
====================
REINDEXING zebra
====================
====================
CLEANING
====================
tail: /tmp/b: file truncated
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 :     001$@
BIBLIOITEMNUMBER in : 090$a
================================
====================
exporting authority
====================

Records exported: 0
====================
REINDEXING zebra
====================
====================
exporting biblio
====================
1.......
Records exported: 8
====================
REINDEXING zebra
====================
====================
CLEANING
====================
-----

Howewer if I run the rebuild by command line it works, and also the output
is different (with some warnings regarding some fields of the records, that
are properly re-inidicized):

[root at host /]# su koha
[koha at host /]$ cd /usr/share/koha/bin/
[koha at host bin]$ migration_tools/rebuild_zebra.pl -b -v
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 :     001$@
BIBLIOITEMNUMBER in : 090$a
================================
skipping authorities
====================
exporting biblio
====================
1.......
Records exported: 8
====================
REINDEXING zebra
====================
01:23:56-07/06 zebraidx(18412) [warn] Index 'Music-number' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'UPC' not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'tpubdate' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Modified-code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'char-encoding' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'char-encoding' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'char-encoding' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'script-Title' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Country-heading' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Illustration-code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Content-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Content-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Content-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Content-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Conference-code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Festschrift-indicator' not
found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Index-indicator' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Literature-Code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Biography-Code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Type-Of-Serial' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Frequency-code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Regularity-code' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Content-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Content-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Conference-publication-Code'
not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Title-Page-availability-Code'
not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Index-availability-Code' not
found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index
'Cumulative-Index-availability-Code' not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Video-mt' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Graphics-type' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Graphics-support' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Graphics-support' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Serials' not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Serials' not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Printed-music' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Printed-music' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Electronic-ressource' not found
in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Title-host' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'title-host' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'Title-host' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'title-host' not found in
attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'lcn' not found in attset(s)
01:23:56-07/06 zebraidx(18412) [warn] Index 'lcn' not found in attset(s)
====================
CLEANING
====================
-----

Everyone have an idea of what is the iusse with the cronjob?

Thanks and Regards
Sander


--
View this message in context: http://koha.1045719.n5.nabble.com/Cronjob-of-rebuild-zebra-pl-doesn-t-work-tp5715141.html
Sent from the Koha-zebra mailing list archive at Nabble.com.


More information about the Koha-zebra mailing list