I have been using Openhab 2.4 for a while with snapshots.
A few weeks ago, in an early morning, I got errors with anel huts
I don’t know what version of Openhab 2.4 I had, yet I had it already for a few months
So I went back to an older openhab installation. (openHAB 2.3.0 Build #1260 ) (on my backup pine64)
I had no problems for 10 days.
Today I reinstalled my main pine 64
First with 2.3 Release build. No problems.
Then I installed the lastest snapshot (openHAB 2.4.0 Build #1399)
And I get again this error:
22:37:56.567 [ERROR] [ing.anel.internal.AnelConnectorThread] - Error occurred when sending UDP data to Anel device: 'wer da?'
java.lang.Exception: java.net.SocketException: maximum number of DatagramSockets reached
at org.openhab.binding.anel.internal.AnelUDPConnector.sendDatagram(AnelUDPConnector.java:140) ~[237:org.openhab.binding.anel:1.13.0.201810160911]
at org.openhab.binding.anel.internal.AnelConnectorThread.requestRefresh(AnelConnectorThread.java:208) [237:org.openhab.binding.anel:1.13.0.201810160911]
at org.openhab.binding.anel.internal.AnelBinding.refreshAll(AnelBinding.java:149) [237:org.openhab.binding.anel:1.13.0.201810160911]
at org.openhab.binding.anel.internal.AnelBinding.execute(AnelBinding.java:140) [237:org.openhab.binding.anel:1.13.0.201810160911]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:144) [195:org.openhab.core.compat1x:2.4.0.201810181356]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:166) [195:org.openhab.core.compat1x:2.4.0.201810181356]
Caused by: java.net.SocketException: maximum number of DatagramSockets reached
at sun.net.ResourceManager.beforeUdpCreate(ResourceManager.java:73) ~[?:?]
at java.net.AbstractPlainDatagramSocketImpl.create(AbstractPlainDatagramSocketImpl.java:77) ~[?:?]
at java.net.DatagramSocket.createImpl(DatagramSocket.java:337) ~[?:?]
at java.net.DatagramSocket.<init>(DatagramSocket.java:239) ~[?:?]
at java.net.DatagramSocket.<init>(DatagramSocket.java:196) ~[?:?]
at org.openhab.binding.anel.internal.AnelUDPConnector.sendDatagram(AnelUDPConnector.java:136) ~[?:?]
Higher up in the log I also see
22:33:16.195 [WARN ] [se.jetty.util.thread.ThreadPoolBudget] - Low configured threads: (max=8 - required=1)=7 < warnAt=8 for QueuedThreadPool[ServletModel-37]@4e577e{STARTING,8<=0<=8,i=0,q=0}[ReservedThreadExecutor@e95da3{s=0/1,p=0}]
same as https://community.openhab.org/t/low-configured-threads-warning/52084
(I don’t think it’s related, yet just in case I mention it )
config:list “(service.pid=org.openhab.anel)”
Pid: org.openhab.anel
BundleLocation: mvn:org.openhab.binding/org.openhab.binding.anel/1.13.0-SNAPSHOT
Properties:
anel30.host = 192.168.1.130
anel30.password =hidden
anel30.udpReceivePort = 1330
anel30.udpSendPort = 1430
anel30.user = OpenHab30
anel31.host = 192.168.1.131
anel31.password = hidden
anel31.udpReceivePort = 1331
anel31.udpSendPort = 1431
anel31.user = OpenHab31
anel32.host = 192.168.1.132
anel32.password =hidden
anel32.udpReceivePort = 1332
anel32.udpSendPort = 1432
anel32.user = OpenHab32
anel33.host = 192.168.1.133
anel33.password =hidden
anel33.udpReceivePort = 1333
anel33.udpSendPort = 1433
anel33.user = OpenHab50
anel34.host = 192.168.1.134
anel34.password = hidden
anel34.udpReceivePort = 1334
anel34.udpSendPort = 1434
anel34.user = OpenHab34
anel35.host = 192.168.1.135
anel35.password =hidden
anel35.udpReceivePort = 1335
anel35.udpSendPort = 1435
anel35.user = OpenHab35
anel36.host = 192.168.1.136
anel36.password =hidden
anel36.udpReceivePort = 1336
anel36.udpSendPort = 1436
anel36.user = OpenHab36
anel37.host = 192.168.1.137
anel37.password =hidden
anel37.udpReceivePort = 1337
anel37.udpSendPort = 1437
anel37.user = OpenHab37
anel38.host = 192.168.1.138
anel38.password = <hidden>
anel38.udpReceivePort = 1338
anel38.udpSendPort = 1438
anel38.user = OpenHab38
anel39.host = 192.168.1.139
anel39.password = hidden
anel39.udpReceivePort = 1339
anel39.udpSendPort = 1439
anel39.user = OpenHab39
anel40.host = 192.168.1.140
anel40.password =hidden
anel40.udpReceivePort = 1340
anel40.udpSendPort = 1440
anel40.user = OpenHab40
anel41.host = 192.168.1.141
anel41.password =hidden
anel41.udpReceivePort = 1341
anel41.udpSendPort = 1441
anel41.user = OpenHab41
anel42.host = 192.168.1.142
anel42.password = <hidden>
anel42.udpReceivePort = 1342
anel42.udpSendPort = 1442
anel42.user = OpenHab42
anel43.host = 192.168.1.143
anel43.password = hidden
anel43.udpReceivePort = 1343
anel43.udpSendPort = 1443
anel43.user = OpenHab43
anel44.host = 192.168.1.144
anel44.password = <hidden>
anel44.udpReceivePort = 1344
anel44.udpSendPort = 1444
anel44.user = OpenHab44
anel45.host = 192.168.1.145
anel45.password =hidden
anel45.udpReceivePort = 1345
anel45.udpSendPort = 1445
anel45.user = OpenHab45
anel46.host = 192.168.1.146
anel46.password =hidden
anel46.udpReceivePort = 1346
anel46.udpSendPort = 1446
anel46.user = OpenHab46
anel47.host = 192.168.1.147
anel47.password =hidden
anel47.udpReceivePort = 1347
anel47.udpSendPort = 1447
anel47.user = OpenHab47
anel48.host = 192.168.1.148
anel48.password =hidden
anel48.udpReceivePort = 1348
anel48.udpSendPort = 1448
anel48.user = OpenHab48
anel49.host = 192.168.1.149
anel49.password =hidden
anel49.udpReceivePort = 1349
anel49.udpSendPort = 1449
anel49.user = OpenHab49
service.pid = org.openhab.anel
On the other Openhab instance the only setting difference is
Pid: org.openhab.anel
BundleLocation: mvn:org.openhab.binding/org.openhab.binding.anel/1.12.0-SNAPSHOT
so the 1.12 works and the 1.13 does not
Both installs are using the same configuration.
Any idea what could be the problem for my anel hut problems?