Since today I face a lot of issues with my KNX connection. I haven’t changed anything on the KNX configuration or on the device setup, so I really don’t know what may have caused this. Hope someone can help as other threads here point to the same/similar issue but the provided solutions didn’t help.
Setup:
- openHAB 3.2 via Docker on Synology NAS
- Enertex KNXnet/IP Router with PoE
Settings:
UID: knx:ip:bridge
label: KNX IP Gateway
thingTypeUID: knx:ip
configuration:
useNAT: true
readRetriesLimit: 3
ipAddress: 10.0.0.10
autoReconnectPeriod: 60
localIp: 10.0.0.20
localSourceAddr: 0.0.0
readingPause: 50
type: TUNNEL
portNumber: 3671
responseTimeout: 60
Error from log file
there have been multiple but I just have this last one as the log got lost after some restarts :-/
[ERROR] [p.KNXnet/IP Tunneling 10.0.0.10:3671] - close connection - maximum send attempts
tuwien.auto.calimero.KNXAckTimeoutException: maximum send attempts, no service acknowledgment received
WARN ] [calimero.mgmt.TL 10.0.0.10:3671 ] - disconnected not gracefully (timeout)
tuwien.auto.calimero.KNXAckTimeoutException: maximum send attempts, no service acknowledgment received
Sometimes the device is shown as ONLINE, sometimes the other KNX devices are shown as ONLINE or some as UNKOWN.
What I tried so far
- restarting the docker container → helps a view seconds
- switching to ROUTER mode → didn’t work (don’t have log files atm)
- increasing the responseTimeout to 120
- setting useNAT to false
- stopping the docker container and starting it a few minutes later → helps a view minutes
- disconnecting the KNX router from the network (PoE powered)
- checking my firewall if it blocks any requests from the NAS to the interface → no it does not
- connecting via ETS to the KNX bus → works
- reinstalling the KNX binding → did not help
- disabling the bridge and reenable it again → did not help
- disabling bridge, restarting container, enabling after a few minutes → did only help for a view minutes (I could send one request to turn on a light but afterwards the bridge went to ERROR:COMM again)
Is it possible that openHAB “saves” the tunneled connections? There is a limit of 5 on the device but atm I only run openHAB and nothing more. Connection from the ETS works without any issues, but to be sure I closed the connection again of course.
Could it be a network issue as I’m facing some connection issues with a Fronius bridge as well (only a few ms)? As for the Fronius bridge it may be a bad WiFi connection or an issue with the Inverter itself - wanted to take a look in the next few weeks.
There has also been some power fluctuations (just a few ms) yesterday/today in my area. But actually the interface and NAS are behind a USP - so those should not have been effected.
I addition it seems openHAB has issues to save changes on the thing from time to time. Especially when the device had some connection issues, I could not save changes on the thing. openHAB sent the PUT request, but there has not been any response. The log just states:
[ERROR] [st.core.internal.thing.ThingResource] - Exception during HTTP PUT request for update config at ‘things/knx:ip:bridge/config’
java.lang.IllegalStateException: Thing with UID knx:ip:bridge has no handler attached.
As you can see, I’m running out of ideas. And I did not had this issues back when I’ve used openHAB 2.4 a few weeks ago.
Hope someone has a glue/idea and can help.