We're Hiring!

OMERO.web Development doesn't load html css javascript

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 Development doesn't load html css javascript

Postby agelos » Wed Aug 29, 2012 12:15 am

Hello,

I am trying to install OMERO.server-4.4.2-ice34-b3 on Windows 7 x64. I have managed to install everything, the server starts fine, as does the development web server.
When I go to http://localhost:4080/ despite the fact that the page loads and I am able to login, I don't receive any css, images or javascript files. I can see from Firebug and the web server's logs that it cannot find several files and keeps giving 404 errors.

E.g.:
Code: Select all
2012-08-29 02:45:40,990 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webgateway/css/reset.css
2012-08-29 02:45:41,035 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webgateway/css/reset.css
2012-08-29 02:45:41,045 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webgateway/css/ome.body.css
2012-08-29 02:45:41,055 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/3rdparty/jquery-ui-1.8.19/themes/base/jquery.ui.base.css
2012-08-29 02:45:41,066 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webclient/css/dusty.css
2012-08-29 02:45:41,078 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/feedback/css/layout.css
2012-08-29 02:45:47,437 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webgateway/css/reset.css
2012-08-29 02:45:47,480 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webgateway/css/reset.css
2012-08-29 02:45:47,490 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/webgateway/css/ome.body.css
2012-08-29 02:45:47,500 WARNI [                          django.request] (proc.08064) get_response:142 Not Found: /static/3rdparty/jquery-ui-1.8.19/themes/base/jquery.ui.base.css


Here's the diagnostics:
Code: Select all
================================================================================
OMERO Diagnostics 4.4.2-ice34-b3
================================================================================
       
Commands:   java -version                  1.6.0     (C:\Windows\system32\java.EXE)
Commands:   python -V                      2.6.6     (C:\Python26\python.EXE)
Commands:   icegridnode --version          3.4.2     (C:\Ice342\bin\icegridnode.EXE)
Commands:   icegridadmin --version         3.4.2     (C:\Ice342\bin\icegridadmin.EXE)
Commands:   psql --version                 9.1.4     (C:\Program Files (x86)\PostgreSQL\9.1\bin\psql.EXE)

Server:     icegridnode                    running
Server:     Blitz-0                        active (pid = 7976, enabled)
Server:     DropBox                        active (pid = 7708, enabled)
Server:     FileServer                     active (pid = 6120, enabled)
Server:     Indexer-0                      active (pid = 5304, enabled)
Server:     MonitorServer                  active (pid = 7852, enabled)
Server:     OMERO.Glacier2                 active (pid = 5356, enabled)
Server:     OMERO.IceStorm                 active (pid = 7104, enabled)
Server:     PixelData-0                    active (pid = 8108, enabled)
Server:     Processor-0                    active (pid = 5644, enabled)
Server:     Tables-0                       inactive (disabled)
Server:     TestDropBox                    inactive (enabled)

Log dir:    c:\omero_dist\var\log          exists

Log files:  Blitz-0.log                    464.0 KB      errors=2    warnings=6   
Log files:  DropBox.log                    6.0 KB        errors=0    warnings=2   
Log files:  FileServer.log                 0.0 KB       
Log files:  Indexer-0.log                  66.0 KB       errors=0    warnings=1   
Log files:  MonitorServer.log              2.0 KB       
Log files:  OMEROweb.log                   71.0 KB       errors=0    warnings=444
Log files:  OMEROweb_request.log           71.0 KB       errors=0    warnings=456
Log files:  PixelData-0.log                6.0 KB       
Log files:  Processor-0.log                4.0 KB        errors=0    warnings=2   
Log files:  Tables-0.log                   n/a
Log files:  TestDropBox.log                n/a
Log files:  master.err                     0.0 KB       
Log files:  master.out                     0.0 KB       
Log files:  Total size                     0.70 MB

Parsing Blitz-0.log:[line:114] => Server restarted <=
Parsing Blitz-0.log:[line:1858] => Server restarted <=
Parsing Blitz-0.log:[line:2028] => Server restarted <=

Environment:OMERO_HOME=(unset)             
Environment:OMERO_NODE=(unset)             
Environment:OMERO_MASTER=(unset)           
Environment:PATH=C:\Program Files (x86)\PostgreSQL\9.1\bin;C:\Ice342\bin;C:\Python26;...%Path%

Environment:ICE_HOME=(unset)               
Environment:LD_LIBRARY_PATH=(unset)       
Environment:DYLD_LIBRARY_PATH=(unset)     

OMERO data dir: 'C:\\OMERO'   Exists? True   Is writable? True
OMERO.web status... DEVELOPMENT: You will have to check status by hand!


Thanks!
Attachments
omero_web.png
Home page screehnshot
omero_web.png (129.98 KiB) Viewed 3118 times
agelos
 
Posts: 4
Joined: Wed Aug 29, 2012 12:01 am

Re: OMERO.web Development doesn't load html css javascript

Postby bpindelski » Wed Aug 29, 2012 9:16 am

Hi,

bin/omero admin diagnostics is indicating that OMERO.web is running in development mode. To also have static content (CSS, JS) served by the development HTTP server, another setting has to be used:

Code: Select all
bin/omero config set omero.web.debug True


This setting is mentioned in the documentation for OMERO.web (http://www.openmicroscopy.org/site/support/omero4/server/install_web#section-6). After applying the settings, please restart the server and OMERO.web.

With kind regards,
Blazej
bpindelski
 

Re: OMERO.web Development doesn't load html css javascript

Postby agelos » Wed Aug 29, 2012 10:13 am

Hey it worked! Thanks!
agelos
 
Posts: 4
Joined: Wed Aug 29, 2012 12:01 am

Re: OMERO.web Development doesn't load html css javascript

Postby agelos » Mon Sep 03, 2012 9:34 am

Hello again,

one more question. I'm running the developer server in debug mode and everything is good. When I try to run OMERO.insight from within Java Web Start I get a 404 error again for insight's jar:

http://localhost:4080/static/webstart/j ... nsight.jar
Code: Select all
Page not found (404)
Request Method:    GET
Request URL:    http://localhost:4080/static/webstart/jars/omero.insight.jar

'webstart\jars\omero.insight.jar' could not be found

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.


Do you know what might be wrong?
Thank you
agelos
 
Posts: 4
Joined: Wed Aug 29, 2012 12:01 am

Re: OMERO.web Development doesn't load html css javascript

Postby agelos » Mon Sep 03, 2012 9:44 am

Btw I've tried the following python:

Code: Select all
import sys
sys.path.append('C:\\Omero_dist\\lib\\python')
import omero.cli


as was suggested in other topics and it works fine.
agelos
 
Posts: 4
Joined: Wed Aug 29, 2012 12:01 am

Re: OMERO.web Development doesn't load html css javascript

Postby cxallan » Mon Sep 17, 2012 8:37 am

Because of the way that the OMERO build works and the way the development server starts up it is not currently supported to run web start in that mode.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest