https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19676
Bug ID: 19676
Summary: Debian 9 vs. Plack vs. /tmp -- attention to PrivateTmp
for apache2
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Beware: in Debian 9 apache2 comes with PrivateTmp enabled by default.
As a consequence, there are issues when Plack is enabled for an instance, but
in Koha there is an interaction between Plack enabled and Plack blacklisted
stuff through /tmp directory.
Plack-ed scripts will write temporary files in "real" /tmp directory (as
pointed by Koha::UploadedFile::temporary_directory, i.e. File::Spec->tmpdir)
whereas Plack blacklisted scripts will understand /tmp as private tmp of
apache2, i.e. /tmp/systemd-private-?????????-apache2.service-????/tmp.
This happens for instance for stage-marc-import.pl -- in step 2 the script
won't find the marc file uploaded in step 1.
The simplest instant solution to this would be to disable PrivateTmp for
apache2 (this article gives a clue:
https://www.maxoberberger.net/blog/2017/10/debian-9-private-tmp.html), but
maybe there is a better option?
(When Plack is disabled everything seems to work fine apart of the fact that
the private tmp of apache2 is being used.)
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/