Page 1 of 2
Installation problems (on behalf of Jan Wildenhain)
Posted:
Tue Oct 13, 2009 4:03 pm
by sloynton
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
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Thu Oct 15, 2009 2:24 pm
by atarkowska
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
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Thu Oct 15, 2009 2:24 pm
by cxallan
Do you have TCP/4063 open?
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Thu Oct 15, 2009 8:44 pm
by blah
port 4063 is open on the server and the client side.
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Fri Oct 16, 2009 12:41 pm
by cxallan
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
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Fri Oct 16, 2009 7:29 pm
by blah
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/
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Fri Oct 16, 2009 7:34 pm
by blah
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?
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Fri Oct 16, 2009 7:57 pm
by blah
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
~
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Mon Oct 19, 2009 10:24 am
by cxallan
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.
Re: Installation problems (on behalf of Jan Wildenhain)
Posted:
Mon Oct 19, 2009 1:40 pm
by blah
Thanks cxallan,
have done firewall modifications for a long time now and have never been aware of it.
Best
Jan