We're Hiring!

Installation problems (on behalf of Jan Wildenhain)

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.

Installation problems (on behalf of Jan Wildenhain)

Postby sloynton » Tue Oct 13, 2009 4:03 pm

I have a technical issue. The server ist running, the weblogin works
fine on the server. But I can not use the client to login from another
machine, or start the weblogin from other machines.

I opened port the ports 8000, postgres, and the z-zero ports on server
and client. Still it can not login.
I tried the the /etc/hosts thing as well - still does not work.


Any help appreciated.

Cheers

Jan
sloynton
 

Re: Installation problems (on behalf of Jan Wildenhain)

Postby atarkowska » Thu Oct 15, 2009 2:24 pm

Hi Jan

Could you please confirm you configured different host in your /home/omero/omero_dist/lib/python/omero/plugins/server.py:

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


and 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>


Please be aware that 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
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Installation problems (on behalf of Jan Wildenhain)

Postby cxallan » Thu Oct 15, 2009 2:24 pm

Do you have TCP/4063 open?
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Installation problems (on behalf of Jan Wildenhain)

Postby blah » Thu Oct 15, 2009 8:44 pm

port 4063 is open on the server and the client side.
blah
 
Posts: 6
Joined: Tue Oct 13, 2009 3:46 pm

Re: Installation problems (on behalf of Jan Wildenhain)

Postby cxallan » Fri Oct 16, 2009 12:41 pm

We'll need one of the log files from the client then please.

Mac OS X:

/Users/<username>/omero/log

Windows:

C:\Documents and Settings\<username>\omero\log
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Installation problems (on behalf of Jan Wildenhain)

Postby blah » Fri Oct 16, 2009 7:29 pm

After I modified server.py and the xml file I can execute this line on the localhost but not from other machines.

http://biogrid.bio.ed.ac.uk:8000/webclient/login/
blah
 
Posts: 6
Joined: Tue Oct 13, 2009 3:46 pm

Re: Installation problems (on behalf of Jan Wildenhain)

Postby blah » Fri Oct 16, 2009 7:34 pm

On my windows client no log file is created. I let you know if I can find one on the mac.

Btw. My posgres sever has utf encoding instead of omero | omero | SQL_ASCII encoding, could this turn into an issue?
blah
 
Posts: 6
Joined: Tue Oct 13, 2009 3:46 pm

Re: Installation problems (on behalf of Jan Wildenhain)

Postby blah » Fri Oct 16, 2009 7:57 pm

Apologies,

found it. The server can't connect. I shutdown the firewall and everything works. Here is my iptables file. Can you tell me which ports are missing?

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 4063 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 4064 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8000 -j ACCEPT
COMMIT
~
blah
 
Posts: 6
Joined: Tue Oct 13, 2009 3:46 pm

Re: Installation problems (on behalf of Jan Wildenhain)

Postby cxallan » Mon Oct 19, 2009 10:24 am

The problem looks to be the order of your rules not the ports. iptables uses a first match wins algorithm. So, the four rules you have after your jumps to REJECT will never be matched.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Installation problems (on behalf of Jan Wildenhain)

Postby blah » Mon Oct 19, 2009 1:40 pm

Thanks cxallan,

have done firewall modifications for a long time now and have never been aware of it. :oops:

Best

Jan
blah
 
Posts: 6
Joined: Tue Oct 13, 2009 3:46 pm

Next

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest