[omniORB] Can't connect to server when launched from Linux?!?

John D. Heintz jheintz@isogen.com
Fri, 19 Jan 2001 16:24:57 -0600


Hello,every one:

Our system setup is pretty simple and common.

We are launching an "omniNames -logdir <somewhere>" and our Python
server script with
"python launch.py -ORBInitRef NameService=corbaname::localhost".

This script creates a servant and object reference, gets a ref to the
NameService, and binds (actually rebinds) a string name to the object
reference.

A client test script uses "corbaname::hostname#ServerName" to connect.

This works perfectly for localhost client and server, it works for
windows based server and any client, it does not work for linux based
server and any non-localhost clients!

We have also checked our hosts.allow and hosts.deny files, ultimately 
trying "ALL : ALL" in hosts.allow just to be sure.

Here is the trace from the failing client connection, followed by the
start where the successful client connections pick up and continue.

Thanks for any help!
John

################## Failing client connection script trace#########
omniORB: The omniDynamic library is not linked.
omniORB: strand Ripper: start.
omniORB: scavenger : start.
omniORB: Python thread state scavenger start.
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: key<0x4e616d6553657276696365>
target id      : IDL:omg.org/CORBA/Object:1.0
most derived id:
ll_send: 108 bytes
4749 4f50 0100 0100 6000 0000 0000 0000 GIOP....`.......
0100 0000 0100 0000 0b00 0000 4e61 6d65 ............Name
5365 7276 6963 6500 0600 0000 5f69 735f Service....._is_
6100 0000 0700 0000 6e6f 626f 6479 0000 a.......nobody..
2800 0000 4944 4c3a 6f6d 672e 6f72 672f (...IDL:omg.org/
436f 734e 616d 696e 672f 4e61 6d69 6e67 CosNaming/Naming
436f 6e74 6578 743a 312e 3000           Context:1.0.
ll_recv: 25 bytes
4749 4f50 0100 0101 0d00 0000 0000 0000 GIOP............
0100 0000 0000 0000 01                  .........
omniORB: strand Rope::incrRefCount: old value = 1
omniORB: Creating ref to remote: key<0x4e616d6553657276696365>
target id      : IDL:omg.org/CosNaming/NamingContext:1.0
most derived id:
omniORB: string_to_object attempting to resolve `BonnellServer' from
naming service
ll_send: 108 bytes
4749 4f50 0100 0100 6000 0000 0000 0000 GIOP....`.......
0200 0000 0100 0000 0b00 0000 4e61 6d65 ............Name
5365 7276 6963 6500 0600 0000 5f69 735f Service....._is_
6100 0000 0700 0000 6e6f 626f 6479 0000 a.......nobody..
2800 0000 4944 4c3a 6f6d 672e 6f72 672f (...IDL:omg.org/
436f 734e 616d 696e 672f 4e61 6d69 6e67 CosNaming/Naming
436f 6e74 6578 743a 312e 3000           Context:1.0.
ll_recv: 25 bytes
4749 4f50 0100 0101 0d00 0000 0000 0000 GIOP............
0200 0000 0000 0000 01                  .........
ll_send: 93 bytes
4749 4f50 0100 0100 5100 0000 0000 0000 GIOP....Q.......
0300 0000 0100 0000 0b00 0000 4e61 6d65 ............Name
5365 7276 6963 6500 0800 0000 7265 736f Service.....reso
6c76 6500 0700 0000 6e6f 626f 6479 0000 lve.....nobody..
0100 0000 0e00 0000 426f 6e6e 656c 6c53 ........BonnellS
6572 7665 7200 696e 0100 0000 00        erver.in.....
ll_recv: 110 bytes
4749 4f50 0100 0101 6200 0000 0000 0000 GIOP....b.......
0300 0000 0000 0000 1e00 0000 4944 4c3a ............IDL:
626f 6e6e 656c 6c2f 426f 6e6e 656c 6c53 bonnell/BonnellS
6572 7665 723a 312e 3000 0000 0100 0000 erver:1.0.......
0000 0000 2600 0000 0101 0000 0a00 0000 ....&...........
3132 372e 302e 302e 3100 0e0c 0e00 0000 127.0.0.1.......
fec0 6068 3a00 0001 ab00 0000 0000      ..`h:.........
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: root<0>
target id      : IDL:omg.org/CORBA/Object:1.0
most derived id: IDL:bonnell/BonnellServer:1.0
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 2
omniORB: ObjRef() -- deleted.
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 1
omniORB: ObjRef() -- deleted.
omniORB: strand Rope::incrRefCount: old value = 1
omniORB: Creating Python ref to remote: root<0>
target id      : IDL:omg.org/CORBA/Object:1.0
most derived id: IDL:bonnell/BonnellServer:1.0
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 2
omniORB: ObjRef(IDL:bonnell/BonnellServer:1.0) -- deleted.
omniORB: strand Rope::incrRefCount: old value = 1
omniORB: Creating Python ref to remote: root<0>
target id      : IDL:bonnell/BonnellServer:1.0
most derived id: IDL:bonnell/BonnellServer:1.0
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 2
omniORB: ObjRef(IDL:bonnell/BonnellServer:1.0) -- deleted.
omniORB: throw omniConnectionBroken from tcpSocketMTfactory.cc:1085
omniORB: tcpSocketStrand::~Strand() close socket no. 4294967295
omniORB: throw COMM_FAILURE from remoteIdentity.cc:178
Traceback (innermost last):
File "client.py", line 15, in ?
bServ.getSession("admin", "admin")
File "C:\home\joshu\bonnell-impl\Bonnell_idl.py", line 2453, in getSession

omniORB.CORBA.COMM_FAILURE: Minor: 0, Completed: COMPLETED_NO.
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 1
omniORB: ObjRef(IDL:bonnell/BonnellServer:1.0) -- deleted.

######################### end of failing trace ####################

############### Fragment of successful trace ######################
# I have duplicated the first line from the common parts of the
# trace to help locate the branch-point
omniORB: ObjRef(IDL:bonnell/BonnellServer:1.0) -- deleted.
ll_send: 102 bytes
4749 4f50 0100 0100 5a00 0000 0000 0000 GIOP....Z.......
0100 0000 0100 0000 0e00 0000 fec0 6068 ..............`h
3a00 0001 ab00 0000 0000 0000 0600 0000 :...............
5f69 735f 6100 0000 0700 0000 6e6f 626f _is_a.......nobo
6479 0000 1e00 0000 4944 4c3a 626f 6e6e dy......IDL:bonn
656c 6c2f 426f 6e6e 656c 6c53 6572 7665 ell/BonnellServe
723a 312e 3000                          r:1.0.
ll_recv: 25 bytes
4749 4f50 0100 0101 0d00 0000 0000 0000 GIOP............
0100 0000 0000 0000 01                  .........
ll_send: 94 bytes
4749 4f50 0100 0100 5200 0000 0000 0000 GIOP....R.......
0200 0000 0100 0000 0e00 0000 fec0 6068 ..............`h
3a00 0001 ab00 0000 0000 0000 0b00 0000 :...............
6765 7453 6573 7369 6f6e 0000 0700 0000 getSession......
6e6f 626f 6479 0000 0600 0000 6164 6d69 nobody......admi
6e00 6c2f 0600 0000 6164 6d69 6e00      n.l/....admin.
omniORB: Python thread state scavenger start.
ll_recv: 176 bytes
4749 4f50 0100 0101 a400 0000 0000 0000 GIOP............
0200 0000 0000 0000 1f00 0000 4944 4c3a ............IDL:
626f 6e6e 656c 6c2f 426f 6e6e 656c 6c53 bonnell/BonnellS
6573 7369 6f6e 3a31 2e30 0000 0100 0000 ession:1.0......
0000 0000 6800 0000 0101 0000 0a00 0000 ....h...........
3132 372e 302e 302e 3100 0e0c 5000 0000 127.0.0.1...P...
ff5a 4f44 4243 6f72 6261 5365 7276 6572 .ZODBCorbaServer
3937 3939 3139 3034 302e 3037 36ff 3937 979919040.076.97
3939 3139 3034 362e 3239 302e 3433 3431 9919046.290.4341
3831 3937 3338 3335 fec0 6068 3a02 0001 81973835..`h:...
ab00 426f 6e6e 656c 6c53 6573 7369 6f6e ..BonnellSession
omniORB: strand Rope::incrRefCount: old value = 1
omniORB: Creating Python ref to remote:
root/ZODBCorbaServer979919040.076/979919046.290.434181973835<BonnellSession>
target id      : IDL:bonnell/BonnellSession:1.0
most derived id: IDL:bonnell/BonnellSession:1.0
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 2
omniORB: ObjRef(IDL:bonnell/BonnellSession:1.0) -- deleted.
omniORB: omniRemoteIdentity deleted.
omniORB: strand Rope::decrRefCount: old value = 1
omniORB: ObjRef(IDL:bonnell/BonnellServer:1.0) -- deleted.

################### end of successful client script fragment ##########