[Koha] cron issue with Koha on Ubuntu

Steve Nickerson stevenanickerson at gmail.com
Fri Feb 24 03:15:26 NZDT 2017


OK, so I dug further and do indeed find cron running and can see the jobs executing via /var/log/syslog.   It appears that everything is working EXCEPT that the zebra indexing updates aren't working correctly.   I see the line "Uncomment the following line if you do not want to use the koha-index-daemon integration" and the line following that is commented out...should it be?   How do I know if I'm using the koha-index-daemon or not?  As it stands right now items that are added do not show in search results and items removed continue to show, until I run a zebra rebuild manually.

Thanks!
Steve

-----Original Message-----
From: Mark Alexander [mailto:marka at pobox.com] 
Sent: Tuesday, February 21, 2017 1:58 PM
To: Steve Nickerson <stevenanickerson at gmail.com>
Cc: koha <koha at lists.katipo.co.nz>
Subject: RE: [Koha] cron issue with Koha on Ubuntu

Excerpts from Steve Nickerson's message of 2017-02-21 12:04:10 -0500:
> The server on all the time, but the problem was that /usr/sbin/anacron didn't exist so the jobs were never kicking off because of the "test -x /usr/sbin/anacron" was of course not finding anacron.

That is surprising. If anacron isn't present, the normal cron takes over via run-parts, as for example:

> 25 6    * * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

In other words, it should be possible to run your cron jobs without anacron.
There must be something else missing.  Maybe the cron daemon hasn't been started; you can see if it is running using:

  ps auxfw | egrep cron

Or maybe it hasn't been installed; this can be checked using:

  dpkg -S /usr/sbin/cron

or

  aptitude search "~i cron"



More information about the Koha mailing list