Page 1 of 1

OMERO.figure not loading static contents

PostPosted: Wed Nov 11, 2015 2:55 pm
by rhamedy
Hi all,

I wanted to setup OMERO.figure in our existing OMERO 5.1.4 installation. I have followed the instruction on how to install OMERO.figure in http://figure.openmicroscopy.org/#install and everything seemed to work.

When clicking on OMERO link opens the figure but, fails to load the static contents. Opening the browser's developer tools window, I see 404 for all contents under /static/figure/*

1. Download figure-1.1.x
2. Unzip and rename it the directly to figure
3. Move the figure directory to {OMERO.server}/lib/python/omeroweb
4. {OMERO.server}/bin/omero web stop
5. {OMERO.server}/bin/omero web start
6. I noticed that Django copied the static contents across (81 static files copied ....) and the static folder have the following structure:

omeroweb
omeroweb/figure
omeroweb/figure/static
omeroweb/figure/static/figure

omeroweb/static
omeroweb/static/figure
omeroweb/static/figure/3rdparty
omeroweb/static/figure/css
omeroweb/static/figure/images
omeroweb/static/figure/js
omeroweb/static/figure/templates

I also looked at the omero-web.config of nginx file and I have the following location directive

location /static {
alias /usr/local/omero/OMERO.server/lib/lib/python/omeroweb/static;
}

Any idea what is causing the 404? Omero web is accessible via http://10.0.0.9/webclient/ and when clicking on figure menu the navigation changes to http://10.0.0.9/figure/ with plain html content. All the static contents with 404 error have the following URL:

http://10.0.0.9/static/figure/3rdparty/ ... ael-min.js
http://10.0.0.9/static/figure/...

I tried to put another location directive to the omero-web.config of ngix as follow but, no difference

location /static/figure {
alias /usr/local/omero/OMERO.server/lib/lib/python/omeroweb/static/figure;
}

Any suggestions?

Raf.

Re: OMERO.figure not loading static contents

PostPosted: Thu Nov 12, 2015 10:37 am
by wmoore
Hi Raf,

I wonder if the omeroweb/static/figure directory has different permissions from the sibling dirs?

Could you let us have your various config & log files:

- Output of $ bin/omero admin diagnostics
- Output of $ bin/omero config get
- Nginx logs
- Web logs from {OMERO.server}/var/log/OMEROweb.log

Many thanks,

Will.

Re: OMERO.figure not loading static contents

PostPosted: Thu Nov 12, 2015 10:44 am
by atarkowska
Hi Raf,

Is your statics alias correct, there are lib/lib, it should be just one lib

Code: Select all
location /static {
alias /usr/local/omero/OMERO.server/lib/python/omeroweb/static;
}


try to test it:

Code: Select all
ls -al /usr/local/omero/OMERO.server/lib/python/omeroweb/static/figure;

Ola

Re: OMERO.figure not loading static contents

PostPosted: Thu Nov 12, 2015 11:27 am
by rhamedy
Thank you wmore and atarkowska for your replies.

I noticed that the nginx location entry is pointing to an older version of OMERO 5.1.1 instead of 5.1.4. We probably messed up some symbolic links/references during the upgrade. I have updated the omero-web.config of nginx to point to the OMERO 5.1.4 and everything is working fine.

Regards,

Raf.