Previously configured and registered JON Agent will not start

Solution Verified - Updated -

Issue

  • JON agent is not able to start, following error found in agent.log
FATAL [main] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.startup-error}The agent encountered an error during startup and must abort
java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
    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)
  • The agent is failed to start with following error:
Failed to start the agent
java.io.IOException: SocketServerInvoker[192.168.122.1:16163] error creating ServerSocket[192.168.122.1:16163]: Address already in use (Bind failed)
        at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSockets(SocketServerInvoker.java:375)
        at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:251)
        at org.jboss.remoting.transport.Connector.start(Connector.java:376)
        at org.rhq.enterprise.communications.ServiceContainer.setupServerConnector(ServiceContainer.java:1288)
        at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:596)
        at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:514)

Environment

  • Red Hat JBoss Operations Network (ON)
    • 2.x
    • 3.x
  • JON Agent

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In