MODCLUSTER000034 “java.net.SocketException: No such device” error on node startup with mod_cluster and JBoss EAP

Solution Unverified - Updated -

Issue

  • An error similar to the following is generated on startup of server with mod_cluster configuration:

    ERROR [org.jboss.modcluster] (ServerService Thread Pool -- 82) MODCLUSTER000034: Failed to start advertise listener: java.net.SocketException: No such device
            at java.net.PlainDatagramSocketImpl.join(Native Method)
            at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
            at java.net.MulticastSocket.joinGroup(MulticastSocket.java:323)
            at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.init(AdvertiseListenerImpl.java:153)
            at org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.start(AdvertiseListenerImpl.java:161)
            at org.jboss.modcluster.ModClusterService.init(ModClusterService.java:165)
            at org.wildfly.mod_cluster.undertow.UndertowEventHandlerAdapterService.start(UndertowEventHandlerAdapterService.java:85)
            at org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:117)
            at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
            at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
            at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
            at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
            at java.lang.Thread.run(Thread.java:748)
            at org.jboss.threads.JBossThread.run(JBossThread.java:485)
    
  • Getting MODCLUSTER000034: Failed to start advertise listener during JBoss EAP start up.

08:29:05,939 ERROR [org.jboss.modcluster] (ServerService Thread Pool -- 78) MODCLUSTER000034: Failed to start advertise listener: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
    at java.base/java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method)
    at java.base/java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:161)
    at java.base/java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:352)
    at java.base/java.net.MulticastSocket.setInterface(MulticastSocket.java:477)
    at org.jboss.mod_cluster.core@1.4.4.Final-redhat-00001//org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.init(AdvertiseListenerImpl.java:151)
    at org.jboss.mod_cluster.core@1.4.4.Final-redhat-00001//org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl.start(AdvertiseListenerImpl.java:161)
    at org.jboss.mod_cluster.core@1.4.4.Final-redhat-00001//org.jboss.modcluster.ModClusterService.init(ModClusterService.java:166)
    at org.wildfly.mod_cluster.undertow@7.4.6.GA-redhat-00002//org.wildfly.mod_cluster.undertow.UndertowEventHandlerAdapterService.start(UndertowEventHandlerAdapterService.java:83)
    at org.wildfly.clustering.service@7.4.6.GA-redhat-00002//org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:117)
    at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
    at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
    at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
    at java.base/java.lang.Thread.run(Thread.java:834)
    at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.JBossThread.run(JBossThread.java:513)
  • How can I use mod_cluster advertisements when there is no default network route/gateway?
  • Issue while configuring mod_cluster with JBoss server.

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • mod_cluster
  • No default network route/gateway

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