Summary: | Task Scheduler not working on Ubuntu/Apache2.4 | ||
---|---|---|---|
Product: | Koha | Reporter: | Liz Rea <liz> |
Component: | Task Scheduler | Assignee: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Status: | CLOSED WORKSFORME | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | craig, fooquency, robin, tomascohen |
Version: | Main | ||
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
Liz Rea
2015-09-03 02:08:03 UTC
It appears based on some debugging that when running under apache-mpm-itk, setuid binaries like 'at' don't have quite enough permissions to do what they need. While it does end up running as daemon.daemon, and can write to files in /var/spool/cron/atjobs/, it fails at the fchown step with EPERM. From the docs for fchown, that means "The effective UID does not match the owner of the file, and the process is not privileged (Linux: it does not have the CAP_FOWNER capability))". Without going deeper, I expect this is a result of mpm-itk dropping capabilities or privileges to get down to the run-time user, and not being able to elevate back up as a result. This would affect any other setuid programs too. Converting to some sort of app-layer (starman? plack?) may solve it, where apache runs as normal, and the application runs out of app processes that run as the correct user from the start, and which can therefore setuid back up. In additional, unexpected news: Debian Jessie seems to be unaffected, and honestly I expected it would be. On Ubuntu 14.04, I found that installing koha, which installs mpm-itk broke Exim4 mail sending. I found, as per the references below, that adding the following directive to the top-level Apache configuration resolved the problem: LimitUIDRange 0 2000 The description above sounds like a very similar problem. http://blog.gaiterjones.com/send-php-mail-ubuntu-upgrade/ https://esilibrary.com/evergreen-and-koha-sitting-on-a-server/ http://mpm-itk.sesse.net/ |