Bug 15218

Summary: Make processes that rely on background jobs run in CGI mode
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Tomás Cohen Arazi <tomascohen>
Status: CLOSED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: major    
Priority: P5 - low CC: dcook, mtj, tomascohen
Version: master   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22481
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22417
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26400
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 17240    
Attachments: Bug 15218: (Plack) background-job-process.pl should be run in CGI mode
Bug 15218: (Plack) Make processes that rely on background jobs run in CGI mode
[PASSED QA] Bug 15218: (Plack) Make processes that rely on background jobs run in CGI mode
[PASSED QA] Bug 15218 [QA Followup] - Fix wording of comment

Description Tomás Cohen Arazi 2015-11-19 15:08:50 UTC
On starman, the background-job-process.pl script dies as shown in bug 15032.
For the 3.22 release (due in a week) we should make it run in CGI mode, until we fix it.
Comment 1 Tomás Cohen Arazi 2015-11-19 15:13:24 UTC Comment hidden (obsolete)
Comment 2 Tomás Cohen Arazi 2015-11-20 03:15:32 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall 2015-11-20 14:13:45 UTC
Created attachment 45044 [details] [review]
[PASSED QA] Bug 15218: (Plack) Make processes that rely on background jobs run in CGI mode

This patch adds an entry to the plack-related apache configuration so the
problematic scripts (that fail under plack/starman) are not processed through
Plack but in CGI mode instead.

To test:
- Follow the setup steps from bug 15032
- Add the line from this patch to /etc/koha/apache-shared-intranet-plack.conf
 (if you are on kohadevbox you should probably change the filesystem path to
  /home/vagrant/kohaclone/tools/background-job-process.pl)
- Do the full import process of MARC data.
=> SUCCESS: It works as expected.
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Kyle M Hall 2015-11-20 14:13:54 UTC
Created attachment 45045 [details] [review]
[PASSED QA] Bug 15218 [QA Followup] - Fix wording of comment

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 5 Tomás Cohen Arazi 2015-11-20 14:26:05 UTC
Patches pushed to master.

Thanks for the followup, Kyle!