Page 1 of 1

OMERO_TEMPDIR is deprecated

PostPosted: Fri May 29, 2015 1:17 pm
by phm
Hi,

After upgrading from 5.1.0 to 5.1.2 I got :
Code: Select all
/opt/OMERO.server/lib/python/omero/util/temp_files.py:140: DeprecationWarning: OMERO_TEMPDIR is deprecated. Use OMERO_TMPDIR instead.
  DeprecationWarning)


I can't remember where to define the OMERO_TMPDIR variable !!!

Thanks

Philippe

Re: OMERO_TEMPDIR is deprecated

PostPosted: Fri May 29, 2015 1:34 pm
by sbesson
Hi,

both of these variables should be defined as environment variables (see also the Client configuration).

On Linux/OSX operationg systems, you should be able to set them under a profile file (which name may depend on your system/shell) by adding:

Code: Select all
export OMERO_TMPDIR=/path/to/custom_tmp_dir


and re-sourcing this profile file or starting another shell session before restarting the server.

Best,
Sebastien

Re: OMERO_TEMPDIR is deprecated

PostPosted: Fri May 29, 2015 1:42 pm
by phm
sbesson wrote:Hi,

both of these variables should be defined as environment variables (see also the Client configuration).

On Linux/OSX operationg systems, you should be able to set them under a profile file (which name may depend on your system/shell) by adding:

Code: Select all
export OMERO_TMPDIR=/path/to/custom_tmp_dir


and re-sourcing this profile file or starting another shell session before restarting the server.

Best,
Sebastien


Thanks Sebastien

Philippe