Closed manics closed 4 years ago
$ omero config get omero.data.dir
/home/mtbc/var/omero/
$ ls -ld /home/mtbc/var/omero/
drwxrwxr-x 2 root mtbc 4096 Apr 22 11:03 /home/mtbc/var/omero/
$ ls /home/mtbc/var/omero/
$ omero admin start
FATAL: OMERO directory which needs to be writeable belongs to root: /home/mtbc/var/omero/
Please use "chown -R NEWUSER /home/mtbc/var/omero/" and run as then run /tmp/omero/bin/omero as NEWUSER
$ pip install -U /tmp/omero-py-5.6.3.dev0.tar.gz
...
Successfully installed omero-py-5.6.2
$ omero admin start
Creating /tmp/OMERO.server-5.6.0-162-891359e-ice36-b418/var/master
Initializing /tmp/OMERO.server-5.6.0-162-891359e-ice36-b418/var/log
Creating /tmp/OMERO.server-5.6.0-162-891359e-ice36-b418/var/registry
No descriptor given. Using etc/grid/default.xml
Waiting on startup. Use CTRL-C to exit
$ ls -l /home/mtbc/var/omero/
total 16
drwxr-xr-x 2 mtbc mtbc 4096 Apr 22 11:27 BioFormatsCache
drwxr-xr-x 2 mtbc mtbc 4096 Apr 22 11:28 Files
drwxr-xr-x 2 mtbc mtbc 4096 Apr 22 11:27 FullText
drwxr-xr-x 3 mtbc mtbc 4096 Apr 22 11:28 ManagedRepository
$
Import, web, etc. all work fine.
This pull request has been mentioned on Image.sc Forum. There might be relevant details there:
What this PR does
The owner/permissions check on the OMERO data dir is too strict, for example it will fail if owned by root even if it is group accessible.
Testing this PR
root
Related reading
Ported from https://github.com/ome/openmicroscopy/pull/5884