[Koha-bugs] [Bug 14774] New: Task Scheduler not working on Ubuntu/Apache2.4
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 3 04:08:03 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14774
Bug ID: 14774
Summary: Task Scheduler not working on Ubuntu/Apache2.4
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Task Scheduler
Assignee: gmcharlt at gmail.com
Reporter: liz at catalyst.net.nz
QA Contact: testopia at bugs.koha-community.org
The task scheduler uses At to schedule reports to be run later. It's doing
something weird in Ubuntu 14, Apache 2.4.
Scheduling a task on Debian/Apache 2.2 results in the job being added, and it
showing up in the web page. This doesn't happen on Ubuntu/Apache 2.4, it
returns a "Failed to add job."
It looks like Koha is asking atq for the list of current jobs (through
Schedule::At) and it's not getting a list back when run on Ubuntu/2.4. This all
works just fine in Debian/2.2.
in /var/spool/cron/atjobs we can see where jobs are added:
Failing job "Failed to add job", Ubuntu, Apache 2.4:
---------- 1 daemon daemon 2.9K Sep 2 15:19 a0004a016e87ae
Successful job displays in the web page, Debian, Apache 2.2
-rwx------ 1 library-koha daemon 2.8K Sep 2 16:15 a00014016f1f52
When we ask for the euid/gid of the user when trying to add these failed jobs,
it seems like it should be OK:
uid: 1005, euid: 1005
Which corresponds to the uid given in /etc/passwd:
library-koha:x:1005:1005
As far as I can tell, those daemon:daemon no permissions jobs aren't actually
run - how could they, they have no executable permissions.
Pretty sure this bug isn't in Koha proper (the scheduler actually works just
fine in Debian/2.2), but some interaction or security thing in Ubuntu/Apache
2.4. It might be nice to figure out why it happens, so we can end run the
problem (or decide to scrap the At reliant scheduler, which is probably a
"should do" anyway).
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list