Page 1 of 1

omero web css and js not found

PostPosted: Wed Jan 28, 2015 10:49 am
by phm
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

Re: omero web css and js not found

PostPosted: Wed Jan 28, 2015 1:16 pm
by sbesson
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

Re: omero web css and js not found

PostPosted: Fri Jan 30, 2015 11:47 am
by phm
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

Re: omero web css and js not found

PostPosted: Fri Jan 30, 2015 4:07 pm
by sbesson
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