Bug 8974

Summary: koha-rebuild-zebra should check directory ownership
Product: Koha Reporter: Jared Camins-Esakov <jcamins>
Component: PackagingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: jcharaoui, reed, robin
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jared Camins-Esakov 2012-10-26 15:47:58 UTC
Rather than just fail silently, koha-rebuild-zebra should check file and directory ownership on necessary directories and complain loudly if the directories belong to root or are not writable by the Koha user.
Comment 1 Jerome Charaoui 2012-10-26 16:05:43 UTC
+1 -- the check should look at least into /var/lib/koha/<user>, /var/lock/koha/<user> and directories and files under those. I struggled for a while before finding a permission problem under /var/lock/koha/<user>. Bad ownership on a lockfile was causing reindexing to failing silently, even with "-v -v".
Comment 2 Robin Sheat 2012-10-27 05:06:27 UTC
Yes, we have a lot of failing silently, or exploding in a ball of meaningless errors going on in those scripts. I'd like to make a small script library that allows things (like this) to be sanity checked, and to provide useful tips for fixing things when they do get out of wack (which shouldn't happen, but sometimes does.)
Comment 3 Robin Sheat 2014-06-26 22:20:18 UTC
Can't set this back to new if it's been accidentally marked something else. Anyway, we now have a script library this sort of thing could happen in.