Summary: | Debian 9 vs. Plack vs. /tmp -- attention to PrivateTmp for apache2 | ||
---|---|---|---|
Product: | Koha | Reporter: | Janusz Kaczmarek <januszop> |
Component: | Architecture, internals, and plumbing | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jsterben, liz, mtj, philippe.blouin, pongtawat |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Janusz Kaczmarek
2017-11-21 17:11:38 UTC
For Debian Stretch (9), with plack enabled, you will need to do the following for the noted functions to work (as root or sudo, of course): #> vi /etc/system/multi-user.target.wants/apache2.service Change PrivateTmp:true to PrivateTmp:false #> systemctl daemon-reload #> systemctl restart apache2 #> systemctl show apache | grep PrivateTmp Result should be: PrivateTmp=no Ideal solution is to deal with the fact that when we fork the process, we can't read the old process's tempfiles, but this does solve the immediate problem. *** This bug has been marked as a duplicate of bug 20428 *** Bug 20428 states that it's necessary for 18.05+ only, while we have had this issue with 17.05.06 (+custom). I thus applied Liz's fix with great success. I just wanted to specify that on MY Stretch, the file to modify is in vi /etc/systemd/system/multi-user.target.wants/apache2.service (note the /systemd/ that's different from Liz's solution). In case someone else needs this in the future. Big thanks. I second this big thanks. An OS upgrade to ubuntu 18.04 (koha 18.11) started a problem in which staging MARC records for load would upload the file but then cause failure after options were set and "Stage for import" was clicked ("Failed to submit form: error"). Bug 15032 seemed like the right place to start--it wasn't. Someone graciously pointed me here and this appears to be the fix I needed (with Philippe's directory modification). |