Open manics opened 4 years ago
Arguably failing to set OMERODIR when a config.xml is required should always be an error. This is likely to be a source of confusion for anyone manually setting up a decoupled server (and we can expect loads of forum posts in response):
OMERODIR
is not set etc/grid/config.xml
is automatically created in ~
but other directories such as var
aren't (in the case of OMERO.web it will try to create something like venv/lib64/var
which may be owned by root, and in any case is clearly an inappropriate place).Is there a use-case for requiring config.xml when not running a server (OMERO.server or OMERO.web)? Otherwise could we always return an error if OMERODIR
isn't set?
I'm pretty sure that the ~/omero/config.xml functionality was never used. I do wonder if $PWD
might be a useful default, but otherwise, :+1: (This is likely a PR against omero-py though)
If
OMERODIR
is set but etc/grid is missing do not use ~/omero/config.xmlUsing
This should be an error since
OMERODIR
is specified, otherwise there is likely to be a lot of confusion over which etc/grid file is used.