JBoss EAP 7 fails to connect to Apache httpd/mod_cluster due to a bad source port caused by port-offset

Solution Verified - Updated -

Issue

  • JBoss fails to connect to Apache httpd/mod_cluster due to permissions issues like the following:

    ERROR [org.jboss.modcluster] (UndertowEventHandlerAdapter - 1) MODCLUSTER000043: Failed to send INFO command to 127.0.0.1/127.0.0.1:6666: Permission denied (Bind failed)
    

    It starts successfully as root

  • JBoss fails to connect to Apache httpd/mod_cluster due to "java.net.ConnectException: Cannot assign requested address (connect failed)" like the following:

    ERROR [org.jboss.modcluster] (UndertowEventHandlerAdapter - 1) MODCLUSTER000043: Failed to send STATUS command to 127.0.0.1/127.0.0.1:6666: Cannot assign requested address
    

    I suspected ephemeral port exhaustion but I could not see such exhaustion from netstat output.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • mod_cluster

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content