Page 1 of 1

CLOSED:Cannot connect remotely to webadmin

PostPosted: Fri Sep 25, 2009 3:06 pm
by Juan
Hi everybody,

We are running OMERO.server on windows xp and locally we can connect to omero.webadmin and omero.clients (insight and importer) but remotely we can only connect with omero.clients and not with omero.webadmin.

We have tried editing /omero_dist/lib/python/omero/plugins/server.py as mentioned above:

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


where 170.210.29.134 is the IP adress of the computer that has the server instaled on and port 8000 is open.

Then, when we type 170.210.29.134:8000/webadmin/ on the internet browser of the remote PC we get an error that says that the requested URL could not be retrieved.

Is there anything wrong in the line edited in /omero_dist/lib/python/omero/plugins/server.py?
Is 170.210.29.134:8000/webadmin/ the correct address to reference to a remote PC?


Thanks in advance.

Re: Cannot connect remotely to webadmin

PostPosted: Fri Sep 25, 2009 8:03 pm
by atarkowska
Could you please confirm you configured the following:
If you require to configure the out of the box setup to listen for webadmin and webclient connections on different host configure the following in /home/omero/omero_dist/etc/grid/templates.xml by adding after --noreload:

Code: Select all
<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>10.0.0.1:8000</option><!-- your ip & port here -->
    <env>${PYTHONPATH}</env>
    <adapter name="WebAdapter" register-process="true" endpoints="tcp" server-lifetime="false"/>
  </server>
</server-template>


Django application offers development web server what is documented in http://docs.djangoproject.com/en/dev/in ... ent-server but we do not recommend using this server in a production mode. It has not gone through security audits or performance tests. Apache with mod_python is the preferred setup for deploying a Django application on a production server. You can find more information on the Django site http://docs.djangoproject.com/en/1.0/ho ... modpython/.

Re: Cannot connect remotely to webadmin

PostPosted: Wed Sep 30, 2009 3:32 pm
by Juan
Hi,

Thanks for your answer. I have now configured C:\omero_dist\etc\grid\templates.xml like this:

Code: Select all
<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>170.210.29.134:8000</option>
      
        <env>${PYTHONPATH}</env>
        <adapter name="WebAdapter" register-process="true" endpoints="tcp" server-lifetime="false"/>
      </server>
    </server-template>


where 170.210.29.134 is the IP adress of the computer that has the server instaled on, but still now working, we can not connect remotely to omero.webadmin.

I am tring to access with this address: http://170.210.29.134:8000/webadmin/
Is that the correct way?

On the other hand, i am not very sure what do you mean when you say "server in a production mode" or "production server". I am not familiar with that term, sorry.

We just want to be able to use omero.webadmin and omero.clients on any PC of the network. We are able to do that with omero.clients but no yet with omero.webadmin.

Thanks in advance.

Re: Cannot connect remotely to webadmin

PostPosted: Mon Oct 05, 2009 11:55 am
by atarkowska
OMERO platform includes a development server (a lightweight Web server written purely in Python), which is ideal for demonstrating/testing how powerful OMERO platform is. Unfortunately, this server is only designed to run in a local environment and could not deal with the pressures of a production mode of the application used by many people concurrently. For that, you need to deploy OMERO.web to a production-grade web server, such as Apache.

You will need mod_python http://www.modpython.org/ module for Apache http://httpd.apache.org/

For more details how to run the OMERO.web in the production mode please follow the instruction on:
http://www.openmicroscopy.org.uk/site/s ... nstall-web Configuration Guide for mod_python (production) section.

Ola

Re: Cannot connect remotely to webadmin

PostPosted: Mon Feb 08, 2010 4:25 pm
by NUser
I cannot get to my webadmin http://127.0.0.1:8000/ webadmin and I cannot login to my omero clients.
When I load my site I get the message

Traceback (most recent call last):

File "C:\omero\omero_dist\lib\python\django\core\servers\basehttp.py", line 277, in run

File "C:\omero\omero_dist\lib\python\django\core\servers\basehttp.py", line 634, in __call__

File "C:\omero\omero_dist\lib\python\django\core\handlers\wsgi.py", line 239, in __call__

File "C:\omero\omero_dist\lib\python\django\core\handlers\base.py", line 67, in get_response

File "C:\omero\omero_dist\lib\python\django\middleware\common.py", line 72, in process_request

File "C:\omero\omero_dist\lib\python\django\core\urlresolvers.py", line 244, in resolve

File "C:\omero\omero_dist\lib\python\django\core\urlresolvers.py", line 180, in resolve

File "C:\omero\omero_dist\lib\python\django\core\urlresolvers.py", line 178, in resolve

File "C:\omero\omero_dist\lib\python\django\core\urlresolvers.py", line 197, in _get_urlconf_module

File "C:\omero\omero_dist\lib\python\omeroweb\webadmin\urls.py", line 30, in <module>
from omeroweb.webadmin import views

File "C:\omero\omero_dist\lib\python\omeroweb\webadmin\views.py", line 71, in <module>
from webgateway.views import getBlitzConnection, timeit, _session_logout, _createConnection

File "C:\omero\omero_dist\lib\python\omeroweb\webgateway\views.py", line 38, in <module>
logger.debug("INIT")

File "C:\Python25\lib\logging\__init__.py", line 971, in debug
apply(self._log, (DEBUG, msg, args), kwargs)

File "C:\Python25\lib\logging\__init__.py", line 1100, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)

File "C:\omero\omero_dist\lib\python\djangologging\middleware.py", line 162, in enhanced_make_record

File "C:\Python25\lib\inspect.py", line 618, in getsourcelines
lines, lnum = findsource(object)

File "C:\Python25\lib\inspect.py", line 468, in findsource
raise IOError('could not get source code')

IOError: could not get source code

Could it something to to with the apache httpd.exe?
I change it like the description but when I start the httpd.exe I get the message
Code: Select all
Invalid Command 'PythonHandler, perhaps misspelled or defined by a module not included in the server configuration


Greeting
Nadine

Re: Cannot connect remotely to webadmin

PostPosted: Mon Feb 15, 2010 8:34 am
by atarkowska
It seems that mod_python is not fully configured yet. Did you try to google your problem? http://www.google.co.uk/#hl=en&q=window ... 97cb1cb636

Re: Cannot connect remotely to webadmin

PostPosted: Mon Feb 15, 2010 3:29 pm
by NUser
Oh, okay.
I solve now the problem