[ome-users] Permissions for OMERO_HOME/var/nginx_tmp?

Chris MacLeod ckm at glencoesoftware.com
Wed Aug 29 12:58:59 BST 2012


On Aug 29, 2012, at 7:53 AM, Harri Jäälinoja wrote:
> Hi All,
> 
> I noticed that when I restart Nginx (service nginx restart), it will set the permissions like this:
> [root at lmu-omero2 ~]# ls /opt/OMERO/OMERO.server-4.4.2-ice33-b3/var/ | grep nginx
> drwx------ 2 nginx root  4096 Aug 29 14:32 nginx_tmp
> 
> This causes problems for OMERO:
> [root at lmu-omero2 ~]# service omero restart
> Server not running
> FATAL: Cannot access /opt/OMERO/OMERO.server-4.4.2-ice33-b3/var/nginx_tmp, a required file/directory for OMERO
> 
> If I just change the permissions,
> [root at lmu-omero2 ~]# chmod go+rwx /opt/OMERO/OMERO.server-4.4.2-ice33-b3/var/nginx_tmp
> OMERO starts up fine.
> 
> Is this a good way to fix this? What is the purpose of this directory, should it be kept less public for security reasons etc.?


Harri,

This is addressed in bug 8363 (http://trac.openmicroscopy.org.uk/ome/ticket/8363) and fixed in PR320 (https://github.com/openmicroscopy/openmicroscopy/pull/320).  Basically it's an artifact when running nginx as the omero user vs as the general OS user.

Comment (or remove) out the fastcgi_temp_path and proxy_temp_path directives from your omero-nginx conf file and this issue will go away.  Omero doesn't make use of the nginx_tmp directory directly and nginx has no need for it to be located within the omero install when it's running as the OS defined user.

C




More information about the ome-users mailing list