Page 1 of 1

Omero.figure installation

PostPosted: Wed Oct 29, 2014 9:21 am
by LeroyAlex
Hello,

We recently installed omero 5.0.5 in our institute and i was eager to try the omeoro.figure
omero.web application. So i followed the installation instructions gave on http://will-moore.github.io/figure/
and when i enter the command:
bin\omero config append omero.web.apps '"figure'", i get this message as an answer:
NoValueError: No JSON object could be decoded
So, i m not informatician and i have no idea of what it means, but i got it was in relation with java so i checked if there was any problem with it running a diagnostic and it says it s working.
If someone have an idea to fix my problem, let me know.

Best,

Alex.

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 10:12 am
by atarkowska
Hi Alex,

I think your command should be:

Code: Select all
bin\omero config append omero.web.apps '"figure"'


the quotes are not closed correctly, basically you need:
Code: Select all
(single quote) (double quote) figure (double quote) (single quote)


Please double check documentation

Ola

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 10:55 am
by LeroyAlex
Hi Ola,

Thx for your answer.
I took caution to write single quote double quote figure double single as you told me to but that was apparently not my mistake since i still get the same error message.

Alex.

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 11:04 am
by wmoore
Assuming you have no other apps installed, you could try setting the whole list as described for OMERO 4.4 (still supported in OMERO 5).

Code: Select all

bin\omero config set omero.web.apps '["figure"]'



If there's really some JSON parsing issue, then you'll get the same message, but it's worth trying.

Will

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 11:13 am
by atarkowska
Hi Alex,

Could you show me an output of bin\omero config get ? Please wipe all passwords before you publish on the forum

Ola

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 12:45 pm
by LeroyAlex
Hi,

wmoore:
Assuming you have no other apps installed


You were right, no other apps installed, so i did as intructed and i dont get the JSON eror message.
But when i want to stop and restart omero.web, i get this error message (Invalid additional_apps JSON:" '[figure]' "; i note that the quote order is reversed, dunno why though ) and cannot connect to omero web.

Ola, i assume you only need the part concerning omero.web, if not let me know and i ll add the rest but it s a hassle since i cant copy paste from the cli.
here is the output for config get:

Code: Select all
omero.data.dir=E:\\Omero-data\\OMERO
omero.web.application_server=development
omero.web.debug=True
opmero.web.server_list=[["10.2.4.251", 4064, "prod"], ["10.2.4.251", 4064, "dev"]]


Output after the bin\omero config set omero.web.apps '["figure"]' command:

Code: Select all
omero.data.dir=E:\\Omero-data\\OMERO
omero.web.application_server=development
omero.web.apps='[figure]'
omero.web.debug=True
opmero.web.server_list=[["10.2.4.251", 4064, "prod"], ["10.2.4.251", 4064, "dev"]]


Thx for your answers,

Alex.

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 1:04 pm
by atarkowska
Ok, We have just noticed that you are using Windows, then your command will be:

bin\omero config append omero.web.apps "\"figure\""


On Windows please use the escape sequence \" for nesting double quotes

In your bin/omero config get you should see:

omero.web.apps=["figure"]


Ola

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 1:26 pm
by LeroyAlex
Well, it s working!
Thx you so much guys.
I'm sorry i did not precise i was on windows from the begining :oops:

Best,

Alex.

Re: Omero.figure installation

PostPosted: Wed Oct 29, 2014 2:10 pm
by wmoore
Great. I'll update the figure install docs to add the reminder to escape for Windows users.

Any other feedback you have on OMERO.figure is also always welcome!

Thanks,

Will.