Hi,
after every startup of the openhab service i have following errors in openhab.log:
2018-10-06 00:48:11.033 [ERROR] [.jupnp.transport.impl.DatagramIOImpl] - Exception sending datagram to: /239.255.255.250: java.io.IOException: Operation not permitted (sendto failed)
java.io.IOException: Operation not permitted (sendto failed)
at java.net.PlainDatagramSocketImpl.send(Native Method) ~[?:?]
at java.net.DatagramSocket.send(DatagramSocket.java:693) [?:?]
at org.jupnp.transport.impl.DatagramIOImpl.send(DatagramIOImpl.java:156) [173:org.jupnp:2.3.0]
at org.jupnp.transport.impl.DatagramIOImpl.send(DatagramIOImpl.java:149) [173:org.jupnp:2.3.0]
at org.jupnp.transport.RouterImpl.send(RouterImpl.java:300) [173:org.jupnp:2.3.0]
at org.jupnp.protocol.async.SendingSearch.execute(SendingSearch.java:90) [173:org.jupnp:2.3.0]
at org.jupnp.protocol.SendingAsync.run(SendingAsync.java:52) [173:org.jupnp:2.3.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Ok… has to be with the use of multicast in openhab and active iptables
Can multicast be disabled in openhab? Otherwise i have to found some sufficient rules to pass the multicast traffic.
Maybe openhab should catch this exception and only print a single error/warn in log?
I observe the same problem for some time now (on Debian stretch amd64 with OpenJDK as well as with Zulu).
I also think that it’s a problem with iptables (I use firehol on the server), but didn’t find a way to work around this annoying error messages in the log.
@xoxys Did you find a iptables rule to get rid of the errors?