We're Hiring!

OMERO.figure not loading static contents

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

OMERO.figure not loading static contents

Postby rhamedy » Wed Nov 11, 2015 2:55 pm

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.
rhamedy
 
Posts: 17
Joined: Mon Nov 02, 2015 10:27 am

Re: OMERO.figure not loading static contents

Postby wmoore » Thu Nov 12, 2015 10:37 am

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.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: OMERO.figure not loading static contents

Postby atarkowska » Thu Nov 12, 2015 10:44 am

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
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.figure not loading static contents

Postby rhamedy » Thu Nov 12, 2015 11:27 am

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.
rhamedy
 
Posts: 17
Joined: Mon Nov 02, 2015 10:27 am


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest