Hudson et problème de multicast pour version supérieur à la 1.359

Publié le par sglon

 

Voici un petit problème qui ma occupé une bonne journée.

Tout d'abord, voici l'environnement dans lequels je travail:

- Glassfish 3.0.1

- Java 1.6.20

- ubuntu 8.10

 

Au démarrage de ma nouvelle install d'Hudson 1.360 j'ai constaté la trace suivante dans mes logs:

JuJun 3, 2010 3:28:58 PM javax.jmdns.impl.tasks.Canceler run
WARNING: run() exception
java.io.IOException: Operation not permitted
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:612)
        at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1190)
        at javax.jmdns.impl.tasks.Canceler.run(Canceler.java:94)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Jun 3, 2010 3:29:00 PM javax.jmdns.impl.JmDNSImpl recover
WARNING: recover() Start services exception
java.lang.IllegalThreadStateException
        at java.lang.Thread.start(Thread.java:595)
        at javax.jmdns.impl.JmDNSImpl.start(JmDNSImpl.java:249)
        at javax.jmdns.impl.JmDNSImpl.recover(JmDNSImpl.java:1270)
        at javax.jmdns.impl.tasks.Prober.run(Prober.java:175)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Jun 3, 2010 3:29:00 PM javax.jmdns.impl.JmDNSImpl recover
WARNING: recover() We are back!

 

D'après plusieurs site internet, depuis la version 1.360, Hudson a besoin du multicast pour démarrer.

Voici donc les modifications apporté à Iptable pour autoriser les communications avec le protocole IGMP.

# Accepter le protocole IGMP (pour le multicast)
iptables -A INPUT -p igmp -j ACCEPT


Faire de même pour le output et le problème est réglé.

Il ne reste plus qu'à redémarrer votre domaine glassfish.

Publicité

Publié dans Informatique

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article