[Koha] zebra utility after koha upgrade

Mason James mtj at kohaaloha.com
Thu Oct 28 16:15:30 NZDT 2021


On 28/10/21 2:43 am, George Mikuchadze wrote:
> After successful upgrading koha from v3.22.21 to v19.05.17 zebra indexer
> doesn't work in the crontab.
> I have the following cronjobs:
> PERL5LIB=/usr/share/koha/lib
> */5 * * * * KOHA_CONF=/etc/koha/koha-conf.xml
> /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z >/dev
> but after 5 minutes od adding new biblioitems they are not searched.
> If I run the command in the shell:
> $ KOHA_CONF=/etc/koha/koha-conf.xml /usr/share/koha/bin/migration_tools/
> rebuild_zebra.pl -b -a -z >/dev
> the new biblioitems are appearing in serch results.
> Can anybody help me to set up a crontab for the zebra rebuild utility?
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

hi George
you should not need to manually add any cronjob for indexing,

in newer koha versions (like 19.05) the indexing is handled automatically


you should see 2x 'daemon' jobs per koha instance.
  1 job for zebra searching, 1 job for zebra indexing

------------
# /etc/init.d/koha-common status
● koha-common.service - LSB: Start required services for each Koha instance
    Loaded: loaded (/etc/init.d/koha-common; generated)
    Active: active (running) since Thu 2021-10-28 03:05:50 UTC; 3min 13s ago
      Docs: man:systemd-sysv-generator(8)
     Tasks: 4 (limit: 3394)
    Memory: 152.1M
    CGroup: /system.slice/koha-common.service
            ├─29544 daemon --name=dev1-koha-zebra --pidfiles=/var/run/koha/dev1/ --errlog=/var/log/koha/dev1/zebra-error.log --output=/var/log/koha/dev1/zebra-output.log --verb…
            ├─29547 /usr/bin/zebrasrv -v none,fatal,warn -k 1024 -f /etc/koha/sites/dev1/koha-conf.xml
            ├─29620 daemon --name=dev1-koha-indexer --errlog=/var/log/koha/dev1/indexer-error.log --stdout=/var/log/koha/dev1/indexer.log --output=/var/log/koha/dev1/indexer-ou…
            └─29622 /usr/bin/perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -daemon -sleep 5



More information about the Koha mailing list