[ome-users] Another newbie question - why won't Omero web come up?

Taylor, Ronald C ronald.taylor at pnl.gov
Wed May 26 06:14:20 BST 2010


Hello Ola,

I have (finally) tried what you suggested after being away from the install for several days. That is, I did this:

1) I altered the
     templates.xml  file

by adding the line

   <option>130.20.186.103:8000</option>

for where the machine (sidney.pnl.gov) where OMERO is installed.

2) I altered the
     server.py file

by changing one line to this:

    django = ["python","manage.py","runserver","130.20.186.103:8000","--noreload"]+list(args)

I then started OMERO using

  omero admin start

and started the web server using

  omero  admin ice
   >>  enable server
   >>  start server

Unfortunately, the server still does not come up properly when I type in my browser this address:
    http://sidney.pnl.gov:8000 <ret>
or
    http://130.20.186.103:8000 <ret>

However, I do get something - a traceback, rather than the browser saying that it could not find any such address. So I suppose that is progress of a sort. Here is the page of text that the browser returns using either of the above addresses:

"Traceback (most recent call last):

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/servers/basehttp.py", line 277, in run
    self.result = application(self.environ, self.start_response)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/servers/basehttp.py", line 634, in __call__
    return self.application(environ, start_response)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/handlers/wsgi.py", line 239, in __call__
    response = self.get_response(request)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/handlers/base.py", line 116, in get_response
    return self.handle_uncaught_exception(request, resolver, sys.exc_info())

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/handlers/base.py", line 160, in handle_uncaught_exception
    return callback(request, **param_dict)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/omeroweb/feedback/views.py", line 109, in handler500
    return custom_server_error(request, error500)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/omeroweb/feedback/views.py", line 97, in custom_server_error
    return HttpResponse(t.render(c))

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/__init__.py", line 176, in render
    return self.nodelist.render(context)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/__init__.py", line 768, in render
    bits.append(self.render_node(node, context))

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/__init__.py", line 781, in render_node
    return node.render(context)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/loader_tags.py", line 97, in render
    return compiled_parent.render(context)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/__init__.py", line 176, in render
    return self.nodelist.render(context)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/__init__.py", line 768, in render
    bits.append(self.render_node(node, context))

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/__init__.py", line 781, in render_node
    return node.render(context)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/template/defaulttags.py", line 378, in render
    args=args, kwargs=kwargs)

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/urlresolvers.py", line 252, in reverse
    *args, **kwargs)))

  File "/sid/Omero/Omero_install/omero_dist/lib/python/django/core/urlresolvers.py", line 241, in reverse
    "arguments '%s' not found." % (lookup_view, args, kwargs))

NoReverseMatch: Reverse for 'omeroweb.webstatic' with arguments '(u'css/layout.css',)' and keyword arguments '{}' not found."

%%%%%%%%%%%%%%%%%%%%%

Alas, I'm not a Python programmer. But perhaps the last line is the key to the error report? Could anybody give me some guidance as to what I should try next to bring up the OMERO web server?

  - Ron


___________________________________________
Ronald Taylor, Ph.D.
Computational Biology & Bioinformatics Group
Pacific Northwest National Laboratory
902 Battelle Boulevard
P.O. Box 999, Mail Stop J4-33
Richland, WA  99352 USA
Office:  509-372-6568
Email: ronald.taylor at pnl.gov



________________________________
From: Aleksandra Tarkowska [mailto:aleksandrat at lifesci.dundee.ac.uk]
Sent: Thursday, May 13, 2010 8:32 AM
To: Taylor, Ronald C
Cc: 'ome-users at lists.openmicroscopy.org.uk'; ronald.taylor24 at gmail.com
Subject: Re: [ome-users] Another newbie question - why won't Omero web come up?

Hi Ronald

It looks like the webserver started successfully.

I suspect you require to configure the out of the box setup to listen for webadmin and webclient connections on different host configure the following:
 *

Configure the following in ~/Desktop/omero/etc/grid/templates.xml by adding after --noreload:

<server-template id="WebTemplate">
  <parameter name="act" default="on-demand"/>
  <server id="Web" exe="python" activation="${act}" pwd="${OMEROPY_HOME}omeroweb">
    <option>manage.py</option>
    <option>runserver</option>
    <option>--noreload</option>
    <option>0.0.0.0:8000</option><!-- your ip & port here -->
    <env>${PYTHONPATH}</env>
    <adapter name="WebAdapter" register-process="true" endpoints="tcp" server-lifetime="false"/>
  </server>
</server-template>


In your ~/Desktop/omero/lib/python/omero/plugins/ directory configure the following in server.py:

django = ["python","manage.py","runserver","0.0.0.0:8000","--noreload"]+list(args)

Thanks
Ola


On 12 May 2010, at 00:00, Taylor, Ronald C wrote:



Hello,

In addition to my problem about the Omero Java client not coming up (see separate, earlier email), I also cannot get the Omero web server to come up on port 8000 on my desktop (sidney.pnl.gov).  So I could also use some help with that.

Omero web settings were set like so - which appeared to work fine:

sidney85% omero web settings

Please enter the domain you want to run OMERO.web on (http://www.domain.com:8000/):http://sidney.pnl.gov:8000
Please enter the Email address you want to send from (omero_admin at example.com<mailto:omero_admin at example.com>): ronald.taylor at pnl.gov<mailto:ronald.taylor at pnl.gov> Please enter the SMTP server host you want to send from (smtp.example.com): mailhost.emsl.pnl.gov
Optional: please enter the SMTP server port (default 25):
Optional: Please enter the SMTP server username:
Optional: Password:

Optional: TSL? (yes/no):
Saved to /sid/Omero/Omero_install/omero_dist/lib/python/omeroweb/custom_settings.py


Please enter Username for OMERO.web administrator: rtaylor Please enter Email address: ronald.taylor at pnl.gov<mailto:ronald.taylor at pnl.gov> Please enter password for OMERO.web administrator: r*****9

Please re-enter password for OMERO.web administrator: r*****9

<string>:36: DeprecationWarning: the sha module is deprecated; use the hashlib module instead Saved to /sid/Omero/Omero_install/omero_dist/lib/python/omeroweb/initial_data.json


Database synchronization...

Creating table django_admin_log
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table feedback_emailtemplate
Creating table webadmin_gateway
Installing index for admin.LogEntry model Installing index for auth.Permission model Installing index for auth.Message model Installing json fixture 'initial_data' from absolute path.
Installed 2 object(s) from 1 fixture(s)
OMERO.web was configured successful. Please start the application.

sidney86%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I next invoked ICE and started the OMERO web server, like so:


sidney294% omero admin ice
Ice 3.4.0  Copyright 2003-2010 ZeroC, Inc.
>>> server enable web
error: couldn't find server `web'
>>>
>>> server enable Web
>>>
>>> server start Web
>>>
>>> server state Web
active (pid = 7269, enabled)
>>>
>>> exit
sidney295%
sidney295%


That appeared to work OK, too. I also checked on port 8000 - it is open.

However, when I point my browser to

  http://sidney.pnl.gov:8000

My browser says that it connot connect. What is going wrong?

   - Ron Taylor

PS - Though I gave the results of a "omero adimin diagnostics" run in the earlier email, I repeat it here at bottom for easy reference.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Diagnostic run:

sidney87% omero admin diagnostics

================================================================================
OMERO Diagnostics Beta-4.1.1-r5927-b91
================================================================================

Commands:   java -version                  1.6.0     (/msrc/apps/jdk_1.6/bin/java -- 2 others)
Commands:   python -V                      2.6.5     (/sid/Omero/Python/bin/python -- 2 others)
Commands:   icegridnode --version          3.4.0     (/sid/Omero/Ice/Ice-3.4.0/bin/icegridnode)
Commands:   icegridadmin --version         3.4.0     (/sid/Omero/Ice/Ice-3.4.0/bin/icegridadmin)
Commands:   psql --version                 8.3.10    (/sid/Omero/Postgres/8.3/bin/psql)

Server:     icegridnode                    running
Server:     Blitz-0                        active (pid = 7016, enabled)
Server:     DropBox                        inactive (disabled)
Server:     FSServer                       active (pid = 7029, enabled)
Server:     Indexer-0                      active (pid = 7031, enabled)
Server:     OMERO.Glacier2                 active (pid = 7034, enabled)
Server:     OMERO.IceStorm                 inactive (disabled)
Server:     Processor-0                    inactive (disabled)
Server:     Tables-0                       inactive (disabled)
Server:     TestDropBox                    inactive (enabled)
Server:     Web                            active (pid = 7774, enabled)

Log dir:    /sid/Omero/Omero_install/omero_dist/var/log exists

Log files:  Blitz-0.log                    44.0 KB       errors=2    warnings=34
Log files:  DropBox.log                    n/a
Log files:  FSServer.log                   2.0 KB        errors=0    warnings=12
Log files:  Indexer-0.log                  3.0 KB        errors=0    warnings=2
Log files:  OMEROweb.log                   0.0 KB
Log files:  OMEROweb.log.2010-05-11        0.0 KB
Log files:  Processor-0.log                n/a
Log files:  Tables-0.log                   n/a
Log files:  TestDropBox.log                n/a
Log files:  master.err                     6.0 KB        errors=0    warnings=4
Log files:  master.out                     0.0 KB
Log files:  Total size                     0.06 MB
sidney88%


I also set the Omero web parameters, like so:

sidney85% omero web settings

Please enter the domain you want to run OMERO.web on (http://www.domain.com:8000/):http://sidney.pnl.gov:8000
Please enter the Email address you want to send from (omero_admin at example.com<mailto:omero_admin at example.com>): ronald.taylor at pnl.gov<mailto:ronald.taylor at pnl.gov> Please enter the SMTP server host you want to send from (smtp.example.com): mailhost.emsl.pnl.gov
Optional: please enter the SMTP server port (default 25):
Optional: Please enter the SMTP server username:
Optional: Password:

Optional: TSL? (yes/no):
Saved to /sid/Omero/Omero_install/omero_dist/lib/python/omeroweb/custom_settings.py


Please enter Username for OMERO.web administrator: rtaylor
Please enter Email address: ronald.taylor at pnl.gov<mailto:ronald.taylor at pnl.gov>
Please enter password for OMERO.web administrator: r*****9

Please re-enter password for OMERO.web administrator: r*****9

<string>:36: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
Saved to /sid/Omero/Omero_install/omero_dist/lib/python/omeroweb/initial_data.json


Database synchronization...

Creating table django_admin_log
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table feedback_emailtemplate
Creating table webadmin_gateway
Installing index for admin.LogEntry model Installing index for auth.Permission model Installing index for auth.Message model Installing json fixture 'initial_data' from absolute path.
Installed 2 object(s) from 1 fixture(s)
OMERO.web was configured successful. Please start the application.

sidney86%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

___________________________________________
Ronald Taylor, Ph.D.
Computational Biology & Bioinformatics Group
Pacific Northwest National Laboratory
902 Battelle Boulevard
P.O. Box 999, Mail Stop J4-33
Richland, WA  99352 USA
Office:  509-372-6568
Email: ronald.taylor at pnl.gov<mailto:ronald.taylor at pnl.gov>


_______________________________________________
ome-users mailing list
ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users

Thanks
Ola

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20100525/1b6edf48/attachment.html>


More information about the ome-users mailing list