Any luck with it?
At mine OH3 I get in logs after few hours of working:
2021-02-01 15:50:16.383 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error getting a new connection for endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0]. Error was: java.lang.InterruptedException null
2021-02-01 15:50:16.399 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0] -- aborting request ModbusReadRequestBlueprint@1d6c207[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=72,length=2,maxTries=3] [operation ID f4f52785-0c35-44e2-b93d-cb98bb27b5fb]
2021-02-01 15:50:16.425 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error getting a new connection for endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0]. Error was: java.lang.InterruptedException null
2021-02-01 15:50:16.428 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0] -- aborting request ModbusReadRequestBlueprint@11e0765[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=30,length=2,maxTries=3] [operation ID a4354492-3c0a-40f1-a2f1-1a4a16920cb8]
2021-02-01 15:50:16.512 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error getting a new connection for endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0]. Error was: java.lang.InterruptedException null
2021-02-01 15:50:16.513 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0] -- aborting request ModbusReadRequestBlueprint@c73cbe[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=0,length=2,maxTries=3] [operation ID 24f57a1c-c5a3-4dd8-8fde-0cdae4353eca]
2021-02-01 15:50:16.563 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error getting a new connection for endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0]. Error was: java.lang.InterruptedException null
2021-02-01 15:50:16.564 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0] -- aborting request ModbusReadRequestBlueprint@8ad26c[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=6,length=2,maxTries=3] [operation ID 88908998-404c-4c03-9366-ed622697560f]
2021-02-01 15:50:16.745 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Error getting a new connection for endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0]. Error was: java.lang.InterruptedException null
2021-02-01 15:50:16.758 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@148deba[portName=/dev/ttyUSB0] -- aborting request ModbusReadRequestBlueprint@1e162fc[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=70,length=2,maxTries=3] [operation ID a2bd69a8-e075-4db4-a6f8-5858e4d69c02]
2021-02-01 15:50:18.344 [INFO ] [rt.modbus.internal.ModbusManagerImpl] - Modbus manager activated
2021-02-01 15:50:18.856 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@1e8cb5c[portName=/dev/ttyUSB0,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]
2021-02-01 15:50:18.858 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@1e8cb5c[portName=/dev/ttyUSB0,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]
2021-02-01 15:50:18.859 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection SerialConnection@1e8cb5c[portName=/dev/ttyUSB0,port=<null>] for endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]: Could not get port identifier, maybe insufficient permissions. null
2021-02-01 15:50:18.861 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0] -- aborting request
Then from 15:50 till 19:19 every 5 sec it gets same errors:
2021-02-01 18:52:28.185 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@87e2[portName=/dev/ttyUSB0,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]
2021-02-01 18:52:28.204 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@87e2[portName=/dev/ttyUSB0,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]
2021-02-01 18:52:28.208 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection SerialConnection@87e2[portName=/dev/ttyUSB0,port=<null>] for endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]: Could not get port identifier, maybe insufficient permissions. null
2021-02-01 18:52:28.211 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0] -- aborting request ModbusReadRequestBlueprint@14f4517[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=30,length=2,maxTries=3] [operation ID 6ce328ea-cf35-429c-93f3-49aede90658b]
2021-02-01 18:52:28.217 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@16adad8[portName=/dev/ttyUSB0,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@147cbd8[portName=/dev/ttyUSB0]
And after this time Openhab restarts itself. After restart I see every few minutes WARN like this:
2021-02-01 22:02:27.880 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint@c10428[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=30,length=2,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException Error reading response (EOF) [operation ID 621bfe54-b70b-492e-b483-7a1ac1200b19]
2021-02-01 22:03:06.313 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint@18007fd[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=70,length=2,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException Error reading response (EOF) [operation ID 5fcdcb0d-61f0-4da9-ab6a-a4d9471f84aa]
2021-02-01 22:32:37.714 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint@7e4c81[slaveId=1,functionCode=READ_INPUT_REGISTERS,start=72,length=2,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: IOException Error reading response (EOF) [operation ID 493bb125-127d-45ff-b08f-228cc8a4c44d]
And something like this:
2021-02-02 01:45:26.767 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/3 error: connect timed out. Connection TCPMasterConnection@141adac[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:31.835 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 2/3 error: connect timed out. Connection TCPMasterConnection@141adac[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:36.900 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 3/3 error: connect timed out. Connection TCPMasterConnection@141adac[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:36.902 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 3, throwing last error: connect timed out. Connection TCPMasterConnection@141adac[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:36.903 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@141adac[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]: connect timed out
2021-02-02 01:45:36.905 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502] -- aborting request ModbusReadRequestBlueprint@dcb5a9[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=69,length=50,maxTries=3] [operation ID 71238e03-e60b-409b-8bfd-cfd4fc69c96b]
2021-02-02 01:45:43.031 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/3 error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@1682a20[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:43.099 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 2/3 error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@1682a20[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:43.173 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 3/3 error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@1682a20[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:43.174 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 3, throwing last error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@1682a20[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:43.175 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@1682a20[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]: Połączenie odrzucone (Connection refused)
2021-02-02 01:45:43.176 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502] -- aborting request ModbusReadRequestBlueprint@dcb5a9[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=69,length=50,maxTries=3] [operation ID 8e5f48f7-e874-420d-8a8e-5c357be063ad]
2021-02-02 01:45:48.188 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/3 error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@5c5cbe[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:48.257 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 2/3 error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@5c5cbe[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:48.326 [WARN ] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 3/3 error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@5c5cbe[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:48.327 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 3, throwing last error: Połączenie odrzucone (Connection refused). Connection TCPMasterConnection@5c5cbe[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]
2021-02-02 01:45:48.328 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@5c5cbe[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502]: Połączenie odrzucone (Connection refused)
2021-02-02 01:45:48.329 [WARN ] [rt.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@f9e855[address=192.168.31.47,port=1502] -- aborting request ModbusReadRequestBlueprint@dcb5a9[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=69,length=50,maxTries=3] [operation ID 11745924-5b59-4a57-8cd5-8cd9de3fe891]