[ome-devel] Problem when setting omero.data.dir in omero.properties file

Josh Moore josh at glencoesoftware.com
Wed Aug 29 14:27:28 BST 2012


On Aug 29, 2012, at 3:21 PM, Luca Lianas wrote:

> Hi everyone,
> 
> since OMERO version  4.3, I can't set the omero.data.dir parameter using
> the omero.properties file.

Correct. etc/omero.properties only shows the defaults and is mostly for documentation. It gets copied into blitz.jar (for the version number) but otherwise is overwritten by the `omero config` system.

Cheers,
~Josh.

> Even if I change the value of this variable, when the server starts it
> looks for the default /OMERO directory in the file system.
> 
> In  my omero.properties file I have
> 
> ...
> omero.data.dir=/opt/omero_4.4/data/
> ...
> 
> but when I run
> 
> ./dist/bin/omero admin start
> 
> I get
> ...
> FATAL: OMERO directory does not exist: /OMERO
> 
> and when looking at the omero.properties file into the generated blitz.jar
> I find
> 
> ...
> omero.data.dir=/opt/omero_4.4/data/
> ...
> (and this is weird...)
> 
> of course, using the
> 
> ./dist/bin/omero config set omero.data.dir /opt/omero_4.4/data/
> 
> fixes the problem.
> 
> It seems that the only parameter affected by this problem is the
> omero.data.dir, I never experienced problems with DB config parameters and
> other variables in the omero.properties file (I also added some new vars
> and everything was fine).

> Luca



More information about the ome-devel mailing list