We're Hiring!

omero web css and js not found

Having a problem deploying OMERO? 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

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

omero web css and js not found

Postby phm » Wed Jan 28, 2015 10:49 am

Solved
change
Code: Select all
omero.web.static_url=/omero/static/
to
omero.web.static_url=/static/



Hi,

After restarted my omero web server (I change the public access to true) all css and images are missing from the web page. The error log is :
Code: Select all
tail OMEROweb.log
2015-01-28 10:43:19,616 WARNI [                 omeroweb.feedback.views] (proc.04894) handler404:174 Not Found: /omero/static/webgateway/css/ome.body.css
2015-01-28 10:43:19,616 WARNI [                 omeroweb.feedback.views] (proc.04896) handler404:174 Not Found: /omero/static/webclient/css/dusty.css
2015-01-28 10:43:19,617 WARNI [                 omeroweb.feedback.views] (proc.04893) handler404:174 Not Found: /omero/static/webgateway/css/ome.login.css
2015-01-28 10:43:19,621 WARNI [                 omeroweb.feedback.views] (proc.04895) handler404:174 Not Found: /omero/static/webclient/css/layout.css
2015-01-28 10:43:19,631 WARNI [                 omeroweb.feedback.views] (proc.04897) handler404:174 Not Found: /omero/static/3rdparty/jquery-1.7.2.js
2015-01-28 10:43:19,637 WARNI [                 omeroweb.feedback.views] (proc.04894) handler404:174 Not Found: /omero/static/webgateway/js/ome.csrf.js
2015-01-28 10:43:19,639 WARNI [                 omeroweb.feedback.views] (proc.04896) handler404:174 Not Found: /omero/static/webclient/javascript/jquery.infieldlabel.js
2015-01-28 10:43:19,649 WARNI [                 omeroweb.feedback.views] (proc.04895) handler404:174 Not Found: /omero/static/webclient/image/logo_login_web.png
2015-01-28 10:43:19,660 WARNI [                 omeroweb.feedback.views] (proc.04897) handler404:174 Not Found: /omero/static/webgateway/img/nuvola_encrypted_grey16.png
2015-01-28 10:43:19,661 WARNI [                 omeroweb.feedback.views] (proc.04896) handler404:174 Not Found: /omero/static/webgateway/img/OME_logo_grey_110.png


Of course the images and css files are still there.
My omero config
Code: Select all
omero.data.dir=/OMERO
omero.db.name=omero_database
omero.db.pass=*******************
omero.db.user=*******************
omero.jvmcfg.percent.blitz=20
omero.jvmcfg.system_memory=32000
omero.web.application_server=fastcgi-tcp
omero.web.apps=["figure"]
omero.web.debug=False
omero.web.force_script_name=/omero
omero.web.login_logo=/static/webclient/image/logo_CIRB.jpg
omero.web.public.enabled=False
omero.web.static_url=/omero/static/
omero.web.ui.top_links=[["Figure", "figure_index", {"target": "figure"}]]



Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: omero web css and js not found

Postby sbesson » Wed Jan 28, 2015 1:16 pm

Hi Philippe,

just to be sure, did you also update your nginx configuration file to reflect the new `/omero` prefix and reload the nginx configuration?

Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Re: omero web css and js not found

Postby phm » Fri Jan 30, 2015 11:47 am

Hi Sebastien,

I'm runing apache, however my apache.conf was :

Code: Select all
Alias /static /opt/OMERO.server/lib/python/omeroweb/static
Alias /omero "/opt/OMERO.server/var/omero.fcgi/"


May be the changes come from the switch to omero the public access configuration ???

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: omero web css and js not found

Postby sbesson » Fri Jan 30, 2015 4:07 pm

Hi Philippe,

can you regenerate the apache stanza with

Code: Select all
$ bin/omero web config apache


I would expect the new configuration file to look like

Code: Select all
Alias /omero/static /opt/OMERO.server/lib/python/omeroweb/static
Alias /omero "/opt/OMERO.server/var/omero.fcgi/"


Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest