[Koha-devel] koha-zebra-daemon not starting

Tomas Cohen Arazi tomascohen at gmail.com
Mon Aug 20 16:47:29 CEST 2012


On Sun, Aug 19, 2012 at 4:36 PM, Paul <paul.a at aandc.org> wrote:
> Koha 3.8.3 on Ubuntu 12.04 LTS server (new install, full upgrade)
>
> Everything went well on install.  Data from 3.6.1 "converted" to 3.8.3 when
> I opened the staff-admin page; zebra reindex went well for authorities, but
> failed for biblios first time around:
>
> 14:27:16-19/08 zebraidx(3357) [warn] zebra_lock_create fail
> fname=/var/lock/koha/zebradb/biblios/norm..LCK [No such file or directory]
> 14:27:16-19/08 zebraidx(3357) [warn] zebra_lock_create fail
> fname=/var/lock/koha/zebradb/biblios/shadow..LCK [No such file or directory]
> 14:27:16-19/08 zebraidx(3357) [fatal] Could not select database biblios
> errCode=109
>
> but after a reboot, rebuild_zebra.pl -b -r -v -x reported nothing fatal
> (single warning about a register not found, no details); cron job running
> normally.
>
> But neither OPAC nor staff search functions are operational.
>
> The only anomaly that I've found so far is that
> /etc/init.d/koha-zebra-daemon when run from the command line reports failure
> at line 73 (and does not create any error logs), but ps aux reports the
> daemon as running (well, "S+" -- sleep forground.)
>
> Anyone got any thoughts please?
>
> tnx and br - Paul

You need to answer what method r u using for install. If using
tarball, then you might be running the zebra daemon using de 'koha'
user and 'koha' group. Do they exist? If this was the case, then this
should create the missing dir:

mkdir -p /var/lock/koha/zebradb/biblios/ ; chown -R koha:koha
/var/lock/koha/zebradb/

Also (just in case):

chown -R koha:koha /var/log/koha

Also, every time you run rebuild_zebra.pl you should do it like:

su - koha -c "KOHA_CONF=/etc/koha/koha-conf.xml
PERL5LIB=/usr/share/koha/lib
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v -x"

So everything is created with the right UID.

Regards
To+


More information about the Koha-devel mailing list