[Koha-zebra] Cronjob of "rebuild_zebra.pl" doesn't work
Mark Tompsett
mtompset at hotmail.com
Fri Aug 10 09:52:51 CEST 2012
Greetings,
--- SNIP ---
./proc/1071/fd:
lrwx------ 1 root root 64 Aug 10 01:29 3 -> /tmp/koha-zebra-ctl.koha.pid
l-wx------ 1 root root 64 Aug 10 01:29 4 ->
--- SNIP ---
That's weird, but I don't think these are relevant. But
/tmp/koha-zebra-ctl.koha.pid is.
What is the ls -la for /tmp/koha*?
--- SNIP ---
/var/log/koha/koha-zebradaemon.err
l-wx------ 1 root root 64 Aug 10 01:29 5 ->
/var/log/koha/koha-zebradaemon-output.log
l-wx------ 1 root root 64 Aug 10 01:29 6 ->
/var/log/koha/koha-zebradaemon-output.log
--- SNIP ---
That's weird too. The piping I used is based on knowing it is the last three
lines. Here's mine (ls -la /var/log/koha | tail --lines=3):
--- SNIP ---
-rw-r--r-- 1 koha koha 1183 Aug 7 13:33 koha-zebradaemon-output.log
-rw-r--r-- 1 koha koha 0 Feb 23 03:10 koha-zebradaemon.err
-rw-r--r-- 1 koha koha 1 Jun 29 04:09 koha-zebradaemon.log
--- SNIP ---
These are generated by the koha-zebra-daemon. So, you may wish to stop it.
Delete these. And restart it. Hopefully it will generate something closer to
what I've shown you.
--- SNIP ---
./etc/init.d
lrwxrwxrwx 1 root root 37 Jun 4 09:17 koha-zebra-daemon ->
/usr/share/koha/bin/koha-zebra-ctl.sh
--- SNIP ---
That should be fine *IF* /usr/share/koha/bin/koha-zebra-ctl.sh is owned by
koha.
But does an RPM-base system use /etc/init.d? I don't feel like spending 20
minutes to boot my CentOS VM to check.
--- SNIP ---
The original file however are owned by koha; is it possible that these
symbolic links are the cause of the iusse?
--- SNIP ---
Perhaps.
Are you running the reindexing as koha, or another user? You need to run the
reindexing as koha.
And though you may start the koha-zebra-daemon as root, it should be running
as koha too:
(ps aux | grep zebra)
koha 5041 0.0 0.0 16832 548 ? Ss Aug09 0:00
daemon --name=koha-zebra-ctl.kohadata --errlog=/var/log/koha/koha-zebradaemon.err
--stdout=/var/log/koha/koha-zebradaemon.log --output=/var/log/koha/koha-zebradaemon-output.log
--verbose=1 --respawn --delay=30 --user=koha koha -- /usr/bin/zebrasrv -v
none,fatal,warn -f /etc/koha/koha-conf.xml
mtompset 5846 0.0 0.0 348 72 pts/0 R+ 15:50 0:00
grep --color=auto zebra
koha 22494 0.0 0.6 99632 7188 ? S 01:15 0:00
/usr/bin/zebrasrv -v none,fatal,warn -f /etc/koha/koha-conf.xml
GPML,
Mark Tompsett
More information about the Koha-zebra
mailing list