Sorry for the delayed reply. After enabling the debug output on the server, here is what I get in the server logs
--------------------------------------------------------------------------------------------------------------------
2010-08-13 17:37:47,690 ERROR [org.rhq.enterprise.communications.command.client.ClientCommandSenderTask] {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=10000, rhq.send-throttle=true}]; params=[{targetInterfaceName=org.rhq.enterprise.communications.Ping, invocation=NameBasedInvocation[ping]}]]. Cause: java.util.concurrent.TimeoutException:null. Cause: java.util.concurrent.TimeoutException
2010-08-13 17:37:47,791 DEBUG [org.rhq.enterprise.server.core.comm.ServerCommunicationsService] {ServerCommunicationsService.ping-failed}Failed to ping endpoint [socket://172.16.0.252:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]. Cause: java.lang.reflect.UndeclaredThrowableException:null -> java.util.concurrent.TimeoutException:null
2010-08-13 17:38:36,736 WARN  [org.rhq.enterprise.communications.command.server.CommandProcessor] {CommandProcessor.failed-authentication}Command failed to be authenticated!  This command will be ignored and not processed: Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.agent-name=tnsb, rhq.externalizable-strategy=AGENT, rhq.send-throttle=true}]; params=[{targetInterfaceName=org.rhq.core.clientapi.server.core.CoreServerService, invocation=NameBasedInvocation[getLatestPlugins]}]
2010-08-13 17:39:07,809 ERROR [org.rhq.enterprise.communications.command.client.ClientCommandSenderTask] {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=20000, rhq.send-throttle=true}]; params=[{targetInterfaceName=org.rhq.enterprise.communications.Ping, invocation=NameBasedInvocation[ping]}]]. Cause: java.util.concurrent.TimeoutException:null. Cause: java.util.concurrent.TimeoutException
2010-08-13 17:39:07,809 DEBUG [org.rhq.enterprise.server.core.comm.ServerCommunicationsService] {ServerCommunicationsService.ping-failed}Failed to ping endpoint [socket://172.16.0.252:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]. Cause: java.lang.reflect.UndeclaredThrowableException:null -> java.util.concurrent.TimeoutException:null
2010-08-13 17:40:48,020 ERROR [org.rhq.enterprise.communications.command.client.ClientCommandSenderTask] {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=10000, rhq.send-throttle=true}]; params=[{targetInterfaceName=org.rhq.enterprise.communications.Ping, invocation=NameBasedInvocation[ping]}]]. Cause: java.util.concurrent.TimeoutException:null. Cause: java.util.concurrent.TimeoutException
2010-08-13 17:40:48,020 DEBUG [org.rhq.enterprise.server.core.comm.ServerCommunicationsService] {ServerCommunicationsService.ping-failed}Failed to ping endpoint [socket://172.16.0.252:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]. Cause: java.lang.reflect.UndeclaredThrowableException:null -> java.util.concurrent.TimeoutException:null
2010-08-13 17:42:08,039 ERROR [org.rhq.enterprise.communications.command.client.ClientCommandSenderTask] {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=20000, rhq.send-throttle=true}]; params=[{targetInterfaceName=org.rhq.enterprise.communications.Ping, invocation=NameBasedInvocation[ping]}]]. Cause: java.util.concurrent.TimeoutException:null. Cause: java.util.concurrent.TimeoutException
2010-08-13 17:42:08,040 DEBUG [org.rhq.enterprise.server.core.comm.ServerCommunicationsService] {ServerCommunicationsService.ping-failed}Failed to ping endpoint [socket://172.16.0.252:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]. Cause: java.lang.reflect.UndeclaredThrowableException:null -> java.util.concurrent.TimeoutException:null
2010-08-13 17:43:48,663 ERROR [org.rhq.enterprise.communications.command.client.ClientCommandSenderTask] {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.timeout=10000, rhq.send-throttle=true}]; params=[{targetInterfaceName=org.rhq.enterprise.communications.Ping, invocation=NameBasedInvocation[ping]}]]. Cause: java.util.concurrent.TimeoutException:null. Cause: java.util.concurrent.TimeoutException
2010-08-13 17:43:48,663 DEBUG [org.rhq.enterprise.server.core.comm.ServerCommunicationsService] {ServerCommunicationsService.ping-failed}Failed to ping endpoint [socket://172.16.0.252:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]. Cause: java.lang.reflect.UndeclaredThrowableException:null -> java.util.concurrent.TimeoutException:null
--------------------------------------------------------------------------------------------------------------------

Here the client has a static IP Address on 172.16.0.252 and connects to the internet via DSL Cable which provides static public IP. This case would be true for the agents / clients which would be behind corporate firewalls to have static DMZ IP and then Firewall would have a static Public IP - aka NAT.

On the client side, I am binding the service to its IP, 172.16.0.252 and agent / server complain that this is IP is not pingable. I cannot bind the agent to public IP as it throws error

How to solve this?

On Thu, Aug 12, 2010 at 7:21 PM, John Mazzitelli <mazz@redhat.com> wrote:
> As stated in my problem statement, I am able to reach the agent from the
> server and vice-versa through the ping command. Also when the agent is
> active / started I can telnet into the agent's IP Address:16163. Hence
> the I am ruling out the possibility of firewall in between as there are
> no firewalls involved on the client side.
>
> WRT HA / Server config: The End Point Address is the public IP
> (122.181.162.143) of the server and is reachable from outside.
>
> What else could be the problem ... How should I solve this ?

I have never seen this failure when it wasn't one of those two things I
mentioned earlier. Therefore, the only thing I can suggest is that you
look in the server logs for any types of error messages the server might
be logging that we missed.

In addition, you can add this to the
<rhq-server-install-dir>/jbossas/server/default/conf/jboss-log4j.xml:

   <category
name="org.rhq.enterprise.server.core.comm.ServerCommunicationsService">
     <priority value="DEBUG"/>
   </category>

Wait for that change to get hot deployed (server polls for changes every
60 seconds, so it won't take long). Then restart your agent. Look for
this to be logged at the DEBUG level and tell us what you see:

"Failed to ping endpoint [<your agent endpoint>]. Cause: <find out what
this exception message says>"


_______________________________________________
rhq-users mailing list
rhq-users@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users



--
Thanks & Regards
Prashant N