Can't upload images using Sunstone [passenger] [apache]

Hi. I’ve just installed ONe 5.2.1 (CentOS 7 hosts, with Sunstone running on Passenger) and noticed I can’t upload images.
For some reason oned.log complains they’re not in /var/tmp, yet TMPDIR is set to /var/tmp (see for logs). ATM I can’t really figure out why it keeps doing that, except that maybe I missed some Passenger configuration telling it where TMPDIR is?
Can anybody shed any light on this?

Hi, Yuri.

When running Sunstone with the Apache+Passenger on the CentOS 7, you have to modify Apache service configuration not to use isolated private temp. Otherwise, the /var/tmp/ location as seen from the Apache/Passenger is namespaced and completely different to what other unsandboxed applications (like oned) see.

Following should help:

mkdir /etc/systemd/system/httpd.service.d/
cat <<EOF >/etc/systemd/system/httpd.service.d/override.conf

systemctl daemon-reload
systemctl restart httpd

Best regards,
Vlastimil Holer