Bug 8974 - koha-rebuild-zebra should check directory ownership
Summary: koha-rebuild-zebra should check directory ownership
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Packaging (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-26 15:47 UTC by Jared Camins-Esakov
Modified: 2023-07-29 11:56 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.