[Koha-bugs] [Bug 10670] /etc/init.d/koha-common fails to start zebra due to log permission problem

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 14 23:07:42 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10670

Robin Sheat <robin at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20035|0                           |1
        is obsolete|                            |

--- Comment #4 from Robin Sheat <robin at catalyst.net.nz> ---
Created attachment 22952
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22952&action=edit
Bug 10670 - koha-common fails to start zebra without log permissions

If koha-common is started when zebra log files are owned by root
it will fail to start without any useful message (since zebra can't
write errors in log files because it lacks permissions to do so).

This patch creates empty log files and ensure they have correct
permissions.

I can't pin-point why log files gets owned root, but I suspect it
has something to do with zebra crashing and logrotate, but this is
just theory. We have seen this behaviour since koha 3.1 every
few months, and every time it happends we have root owned logs and
crashed zebra so this patch will at least help sites which have
some kind of automatic koha-common start if it's not running.

Signed-off-by: Robin Sheat <robin at catalyst.net.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list