JON Agent fails to start on 2 or more servers, with shared home directory, due to "Cannot assign requested address"
Issue
- Cannot start JBoss Operations Network (JON) agent on 2 or more servers
- Get the following exception when starting rhq-agent on other servers
Failed to start the agent java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:170) at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264) at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193) at org.jboss.remoting.transport.Connector.start(Connector.java:324) at org.rhq.enterprise.communications.ServiceContainer.setupServerConnector(ServiceContainer.java:1226) at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:550) at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:468) at org.rhq.enterprise.agent.AgentMain.startCommServices(AgentMain.java:2148) at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:636) at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:413) Agent will be restarted soon to see if the failure condition cleared up - First agent fails to start due to "Cannot assign requested address" after second agent is configured
- First agent is attempting to start using second agent's address
- Agent is attempting to start using the configuration of another agent from the JON system
- Unable to start agent on multiple machines that share the same user home directory
Environment
- JBoss Operations Network (JON) 2.4.1
- JON Agent
- JON Agent host machines using a shared user or service account home directory
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
