Different /tmp location for OOD?

As our OOD instance is running on a shared system, where people also at times run pip install. We noticed that the /tmp directory is full with data, causing an error for OOD because it’s not able to write its required temporary files.

Is there a way to define an alternative path of OOD/Phusion Passenger?

Hi and welcome!

Many programs respond to the TMPDIR environment variable. A quick google search indicates that pip will respond to this. Seems like you can set it to something in /etc/environment or /etc/profile.d/some_new_file.sh or similar if you want to change it for your python users.

For setting it in OOD - it may be hard to set it for nginx/passenger as something like $HOME may not evaluate correctly depending on when it’s evaluated.

That said - you can set it for the dashboard and other apps specifically. You can set the TMPDIR environment variable in /etc/ood/config/apps/dashboard/env to something like

TMPDIR="$HOME/tmp"

This to get to write to the users HOME drive.

That said - taking a peak at this similar discussion, Customize passenger environment for apps - #15 by jeff.ohrstrom

I found that there maybe passenger settings you can tweak as well.

https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_instance_registry_dir