[ome-users] [ome-nitpick] Fwd: cant connect to server

Josh Moore josh at glencoesoftware.com
Fri Oct 26 10:34:57 BST 2012


On Oct 26, 2012, at 10:32 AM, Blazej Pindelski wrote:

> From: Diana Hughes <diana.hughes3 at frontier.com<mailto:diana.hughes3 at frontier.com>>
> Date: 25 October 2012 17:59:40 GMT+01:00
> To: Blazej Pindelski <b.pindelski at dundee.ac.uk<mailto:b.pindelski at dundee.ac.uk>>
> Subject: Re: [ome-users] cant connect to server

Hi Diana,

> The only settings I have showing in omero config get are:
> 
> omero.data.dir = /home/dhughes/apps/OMERO/OMERO.data
> omero.db.name<http://omero.db.name> = omerodb
> omero.db.pass = <the omero db user passwd>
> omero.db.user=omero
> omero.web.application_server=fastcgi-tcp
> omero.web.logdir=/home/omero/weblog

All looks fine.


> I have the permissions for /home/omero directory and everything under it owned by www-data which is apache2 user.
> 
> When I tried getAdminService with python script:
> 
> dhughes at omero:~$ python
> Python 2.7.3 (default, Aug  1 2012, 05:14:39)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import omero
>>>> c = omero.client("localhost")
>>>> s = c.createSession("root","********")
>>>> a = s.getAdminService()
>>>> print a
> 2f799820-f7ac-4e6e-80e1-0ce08347fc2f/445a74f4-1ba8-42f6-b425-a61013a4d893omero.api.IAdmin -t:tcp -h 144.174.51.125 -p 35097

This seems exactly right. Does this work with omero.client("144.174.51.125")? Does insight also work using "localhost"? This could be an issue with your network configuration. What's in your /etc/hosts file?

Other similar issues have been seen:

 * http://lists.openmicroscopy.org.uk/pipermail/ome-users/2007-May/000596.html
 * http://lists.openmicroscopy.org.uk/pipermail/ome-users/2008-November/001267.html

> I have the last 400 lines of the Blitz-0.log as an attachment

Looking at your logs, I would assume that insight has yet to even reach your server.

Cheers,
~Josh


> Thanks again,
> Diana
> 
> On Oct 24, 2012, at 4:29 AM, Blazej Pindelski wrote:
> 
>> Hi Diana,
>> 
>> Thanks for sending us the log output. From what I can see, the thrown exception indicates
>> a connection error that could have been caused by:
>> - wrong username/password,
>> - wrong hostname,
>> - wrong port number.
>> 
>> The thrown exception "omero.ClientError: Obtained null object proxy" indicates that the Ice router isn't able to obtain a proxy from an Ice node.
>> The method for obtaining a proxy accepts three parameters, from which two are the username and password. This could indicate that
>> the credentials are wrong or that the Ice router isn't able to connect to the Ice grid node (firewalling issues).
>> 
>> At this moment in time the output of "bin/omero config get" and the full Blitz-0.log would be helpful for further debugging.
>> Have you tried connecting using Inisght but disabling the connection encryption (padlock icon)?
>> 
>> Another approach worth trying is connecting to the server using the Python mappings (code should be executed on the machine
>> acting as the server):
>> 
>> $ export PYTHONPATH=$PYTHONPATH:/home/dhughes/apps/OMERO/OMERO.server/lib/python
>> $ python
>>>>> import omero
>>>>> c = omero.client("localhost")
>>>>> s = c.createSession("<root_username>", "<root_password>")
>>>>> a = s.getAdminService()
>> 
>> I hope this helps in resolving the issue.
>> 
>> Regards,
>> Blazej
>> 
>>> Here are error messages from omeroinsight.log
>>> 
>>> Failed to log onto OMERO.
>>> Reason: Can't connect to OMERO. OMERO info not valid.
>>> 
>>> omero.ClientError: Obtained null object proxy
>>>     at omero.client.createSession(client.java:653)
>>>     at org.openmicroscopy.shoola.env.data.OMEROGateway.createSession(OMEROGateway.java:2418)
>>>     at org.openmicroscopy.shoola.env.data.DataServicesFactory.connect(DataServicesFactory.java:523)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginServiceImpl.attempt(LoginServiceImpl.java:139)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginServiceImpl.login(LoginServiceImpl.java:273)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginManager.login(LoginManager.java:98)
>>>     at org.openmicroscopy.shoola.env.init.SplashScreenInit.onEnd(SplashScreenInit.java:165)
>>>     at org.openmicroscopy.shoola.env.init.Initializer.notifyEnd(Initializer.java:189)
>>>     at org.openmicroscopy.shoola.env.Container.runStartupProcedure(Container.java:128)
>>>     at org.openmicroscopy.shoola.env.Container.access$000(Container.java:76)
>>>     at org.openmicroscopy.shoola.env.Container$1.run(Container.java:173)
>>>     at java.lang.Thread.run(Thread.java:680)
>>> 
>>> OMERO address: ***.***.***.***
>>> User Name: root -- Password: *********
>>> org.openmicroscopy.shoola.env.data.DSOutOfServiceException: Can't connect to OMERO. OMERO info not valid.
>>> 
>>> omero.ClientError: Obtained null object proxy
>>>     at omero.client.createSession(client.java:653)
>>>     at org.openmicroscopy.shoola.env.data.OMEROGateway.createSession(OMEROGateway.java:2418)
>>>     at org.openmicroscopy.shoola.env.data.DataServicesFactory.connect(DataServicesFactory.java:523)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginServiceImpl.attempt(LoginServiceImpl.java:139)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginServiceImpl.login(LoginServiceImpl.java:273)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginManager.login(LoginManager.java:98)
>>>     at org.openmicroscopy.shoola.env.init.SplashScreenInit.onEnd(SplashScreenInit.java:165)
>>>     at org.openmicroscopy.shoola.env.init.Initializer.notifyEnd(Initializer.java:189)
>>>     at org.openmicroscopy.shoola.env.Container.runStartupProcedure(Container.java:128)
>>>     at org.openmicroscopy.shoola.env.Container.access$000(Container.java:76)
>>>     at org.openmicroscopy.shoola.env.Container$1.run(Container.java:173)
>>>     at java.lang.Thread.run(Thread.java:680)
>>> 
>>>     at org.openmicroscopy.shoola.env.data.OMEROGateway.createSession(OMEROGateway.java:2424)
>>>     at org.openmicroscopy.shoola.env.data.DataServicesFactory.connect(DataServicesFactory.java:523)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginServiceImpl.attempt(LoginServiceImpl.java:139)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginServiceImpl.login(LoginServiceImpl.java:273)
>>>     at org.openmicroscopy.shoola.env.data.login.LoginManager.login(LoginManager.java:98)
>>>     at org.openmicroscopy.shoola.env.init.SplashScreenInit.onEnd(SplashScreenInit.java:165)
>>>     at org.openmicroscopy.shoola.env.init.Initializer.notifyEnd(Initializer.java:189)
>>>     at org.openmicroscopy.shoola.env.Container.runStartupProcedure(Container.java:128)
>>>     at org.openmicroscopy.shoola.env.Container.access$000(Container.java:76)
>>>     at org.openmicroscopy.shoola.env.Container$1.run(Container.java:173)
>>>     at java.lang.Thread.run(Thread.java:680)
>>> Caused by: omero.ClientError: Obtained null object proxy
>>>     at omero.client.createSession(client.java:653)
>>>     at org.openmicroscopy.shoola.env.data.OMEROGateway.createSession(OMEROGateway.java:2418)
>>>     ... 10 more
>>> Exception in thread "Initializer"
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Blitz-0.log looked like this
>>> 
>>> 2012-10-23 17:35:45,712 INFO  [ome.services.sessions.state.SessionCache] (2-thread-4) Synchronizing session cache. Count = 3
>>> 2012-10-23 17:35:45,713 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(445b8b69-9227-4a77-994a-3b758fc743f2)
>>> 2012-10-23 17:35:45,713 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Args:  [null, InternalSF at 2128384958]
>>> 2012-10-23 17:35:45,720 INFO  [         ome.security.basic.EventHandler] (2-thread-4)  Auth:  user=0,group=0,event=null(Sessions),sess=056d82ec-89ed-4307-a758-63bf19c39e6e
>>> 2012-10-23 17:35:45,733 INFO  [                 org.perf4j.TimingLogger] (2-thread-4) start[1351028145713] time[20] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
>>> 2012-10-23 17:35:45,733 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Rslt:  (ome.model.meta.Experimenter:Id_0, ome.model.meta.ExperimenterGroup:Id_0, (0, 1), ... 4 more)
>>> 2012-10-23 17:35:45,734 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(056d82ec-89ed-4307-a758-63bf19c39e6e)
>>> 2012-10-23 17:35:45,734 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Args:  [null, InternalSF at 2128384958]
>>> 2012-10-23 17:35:45,735 INFO  [         ome.security.basic.EventHandler] (2-thread-4)  Auth:  user=0,group=0,event=null(Sessions),sess=056d82ec-89ed-4307-a758-63bf19c39e6e
>>> 2012-10-23 17:35:45,740 INFO  [                 org.perf4j.TimingLogger] (2-thread-4) start[1351028145734] time[6] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
>>> 2012-10-23 17:35:45,740 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Rslt:  (ome.model.meta.Experimenter:Id_0, ome.model.meta.ExperimenterGroup:Id_0, (0, 1), ... 4 more)
>>> 2012-10-23 17:35:45,740 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Executor.doWork -- ome.services.sessions.SessionManagerImpl.reload(9263f9c0-0887-4921-9e25-a4aff4e7890e)
>>> 2012-10-23 17:35:45,740 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Args:  [null, InternalSF at 2128384958]
>>> 2012-10-23 17:35:45,741 INFO  [         ome.security.basic.EventHandler] (2-thread-4)  Auth:  user=0,group=0,event=null(Sessions),sess=056d82ec-89ed-4307-a758-63bf19c39e6e
>>> 2012-10-23 17:35:45,744 INFO  [                 org.perf4j.TimingLogger] (2-thread-4) start[1351028145740] time[4] tag[omero.call.success.ome.services.sessions.SessionManagerImpl$6.doWork]
>>> 2012-10-23 17:35:45,745 INFO  [        ome.services.util.ServiceHandler] (2-thread-4)  Rslt:  (ome.model.meta.Experimenter:Id_0, ome.model.meta.ExperimenterGroup:Id_0, (0, 1), ... 4 more)
>>> 2012-10-23 17:35:45,745 INFO  [                 org.perf4j.TimingLogger] (2-thread-4) start[1351028145712] time[33] tag[omero.sessions.synchronization]
>>> 2012-10-23 17:35:45,745 INFO  [ome.services.sessions.state.SessionCache] (2-thread-4) Synchronization took 33 ms.
>>> 2012-10-23 17:36:00,023 INFO  [ ome.services.blitz.fire.SessionManagerI] (2-thread-3) Performing requestHeartbeats
>>> 
>>> Thanks,
>>> Diana




More information about the ome-users mailing list