[ome-users] cant connect to server

Blazej Pindelski b.pindelski at dundee.ac.uk
Wed Oct 24 12:29:20 BST 2012


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

The University of Dundee is a registered Scottish Charity, No: SC015096




More information about the ome-users mailing list