We're Hiring!

OMERO.web ERROR Cannot create a guest connection

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 ERROR Cannot create a guest connection

Postby jwil » Wed Aug 22, 2018 10:09 am

Hi All,
We are running OMERO.server 4.5.7 and OMERO.web on seperate RHEL7 servers. We followed the OMERO.web installation separately from OMERO.server on CentOS 7 and IcePy 3.6 instructions.

The OMERO.server is running, we can login using OMERO.insight and load and view images. Great program and we love it. But we can not login to the web client on the OMERO.web and it seems to be a communication problem between the two servers. The OMERO.web server can listen and ping each other but the guest login seems to have gone wrong:

2018-08-22 04:51:51,126 ERROR [omeroweb.connector] (proc.21932) create_guest_connection():192 Cannot create a guest connection.
Traceback (most recent call last):
File "/home/omero/OMERO.py/lib/python/omeroweb/connector.py", line 186, in create_guest_connection
if connection.connect():
File "/home/omero/OMERO.py/lib/python/omero/gateway/__init__.py", line 2174, in connect
self._createSession()
File "/home/omero/OMERO.py/lib/python/omero/gateway/__init__.py", line 2034, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/omero/OMERO.py/lib/python/omero/clients.py", line 569, in createSession
prx = rtr.createSession(username, password, ctx)
File "/home/omero/omerowebvenv/lib/python2.7/site-packages/Glacier2_Router_ice.py", line 258, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
ConnectionRefusedException: Ice.ConnectionRefusedException:
Connection refused
2018-08-22 04:51:51,127 INFO [ omero.gateway] (proc.21932) close():1932 closed connection (uuid=None)

We wiped and reinstalled OMERO.web and got the same problem. We then installed the 2 servers again in our IT companies servers and reproduce the same error.

Do you have any ideas on why the two servers can not communicate?

J
jwil
 
Posts: 3
Joined: Wed Aug 22, 2018 3:22 am

Re: OMERO.web ERROR Cannot create a guest connection

Postby jmoore » Wed Aug 22, 2018 10:20 am

Can you please share with us your OMERO.web configuration (bin/omero config get) making sure there there is no sensitive information present?

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: OMERO.web ERROR Cannot create a guest connection

Postby jwil » Wed Aug 22, 2018 11:02 am

ERROR: Could not import omero.cli! (No module named Ice)

This means that your installation is incomplete. Contact
the OME mailing lists for more information:

https://www.openmicroscopy.org/support/

If you are building from source, please supply the build log
as well as which version you are building from. If you
downloaded a distribution, please provide which link you
used.

********************************************************************************

Debugging Info:
--------------
CWD=/home/omero
VERSION=2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
OMERO_HOME=None
PYTHONPATH=['/home/omero/OMERO.py/lib/python', '/home/omero/OMERO.py/var/lib', '/home/omero/OMERO.py-5.4.7-ice36-b93/bin', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/home/omero/OMERO.py/lib/fallback']

J
jwil
 
Posts: 3
Joined: Wed Aug 22, 2018 3:22 am

Re: OMERO.web ERROR Cannot create a guest connection

Postby jmoore » Wed Aug 22, 2018 11:16 am

i.e. you followed https://docs.openmicroscopy.org/omero/5.4.7/sysadmins/unix/install-web/walkthrough/omeroweb-install-centos7-ice3.6.html?

Can you activate the virtualenv and then retry `bin/omero config`?

https://docs.openmicroscopy.org/omero/5.4.7/sysadmins/unix/install-web/walkthrough/omeroweb-install-centos7-ice3.6.html#configuring-omero-web

Code: Select all
. /home/omero/omerowebvenv/bin/activate

/home/omero/OMERO.py/bin/omero config ...


Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: OMERO.web ERROR Cannot create a guest connection

Postby jwil » Fri Aug 24, 2018 2:48 am

Hi Josh,

Your question prompted us to look around for more info and we have now solved the problem. We ran:

sudo su - omero
. /home/omero/omerowebvenv/bin/activate
cd OMERO.py
bin/omero config set omero.web.server_list "[[\"<the omero server name>\", 4064, \"prod\"]]”
bin/omero web stop
bin/omero web start
------------------


Now we are up and running thanks for the advice. The omero config set omero.web.server_list the script was not in the walkthrough so we missed it.

J
jwil
 
Posts: 3
Joined: Wed Aug 22, 2018 3:22 am

Re: OMERO.web ERROR Cannot create a guest connection

Postby jmoore » Mon Aug 27, 2018 7:30 am

Hi James,

glad you're back up and running. We'll look into getting omero.web.server_list mentioned in the walkthroughs (card). Sorry for the troubles.
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron