Hi i am having some trouble connecting to my IHC controller
i have tried downgrading Java to 1.8.121 but still no cigar
if anybody could help me with this or at least in the right direction please don’t hesitate to comment
the log is showing this
21:56:09.512 [ERROR] [org.openhab.binding.ihc.ws.IhcClient ] - New notifications wait failed…
org.openhab.binding.ihc.ws.IhcExecption: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.3:443 [/192.168.1.3] failed: Read timed out
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:103) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcResourceInteractionService.waitResourceValueNotifications(IhcResourceInteractionService.java:574) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient.waitResourceValueNotifications(IhcClient.java:390) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient.access$1(IhcClient.java:386) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient$IhcResourceValueNotificationListener.waitResourceNotifications(IhcClient.java:489) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient$IhcResourceValueNotificationListener.run(IhcClient.java:476) [229:org.openhab.binding.ihc:1.11.0]
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.3:443 [/192.168.1.3] failed: Read timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143) ~[?:?]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[?:?]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]
… 5 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:?]
at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[?:?]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:?]
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:?]
at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:?]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[?:?]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385) ~[?:?]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) ~[?:?]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394) ~[?:?]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) ~[?:?]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ~[?:?]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[?:?]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]
… 5 more
21:56:09.529 [WARN ] [enhab.binding.ihc.internal.IhcBinding] - Error occurred on communication to IHC controller: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.3:443 [/192.168.1.3] failed: Read timed out
PING 192.168.1.3 (192.168.1.3): 56 data bytes
64 bytes from 192.168.1.3: icmp_seq=0 ttl=64 time=0.466 ms
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.461 ms
64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.392 ms
64 bytes from 192.168.1.3: icmp_seq=3 ttl=64 time=0.503 ms
64 bytes from 192.168.1.3: icmp_seq=4 ttl=64 time=0.335 ms
— 192.168.1.3 ping statistics —
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.335/0.431/0.503/0.060 ms
Ok we have covered the basics… As you suspected, it could be java https and ssl configuration
I am not able to help with that unfortunately. ANYONE ELSE?
I would google it and try myself first. Then failing that I would remove java and start again with the latest version.
Good luck
Change the title of the thread to “Time out on IHC binding” or something like that and IHC users will pick it up and also probably the IHC binding maintainer (But not always)…
00:05:32.777 [ERROR] [org.openhab.binding.ihc.ws.IhcClient ] - New controller state change notification wait failed…
org.openhab.binding.ihc.ws.IhcExecption: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.3:443 [/192.168.1.3] failed: Read timed out
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:103) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcControllerService.waitStateChangeNotifications(IhcControllerService.java:164) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient.waitStateChangeNotifications(IhcClient.java:347) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient.access$4(IhcClient.java:343) [229:org.openhab.binding.ihc:1.11.0]
at org.openhab.binding.ihc.ws.IhcClient$IhcControllerStateListener.run(IhcClient.java:564) [229:org.openhab.binding.ihc:1.11.0]
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.3:443 [/192.168.1.3] failed: Read timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:143) ~[?:?]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)~[?:?]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]
… 4 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:?]
at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[?:?]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:?]
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:?]
at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:?]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[?:?]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385) ~[?:?]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:?]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) ~[?:?]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394) ~[?:?]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) ~[?:?]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ~[?:?]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[?:?]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)~[?:?]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[?:?]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[?:?]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[?:?]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[?:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQ(IhcHttpsClient.java:119) ~[?:?]
at org.openhab.binding.ihc.ws.IhcHttpsClient.sendQuery(IhcHttpsClient.java:87) ~[?:?]
… 4 more
00:05:32.804 [WARN ] [enhab.binding.ihc.internal.IhcBinding] - Error occurred on communication to IHC controller: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.3:443 [/192.168.1.3] failed: Read timed out
00:05:33.837 [INFO ] [enhab.binding.ihc.internal.IhcBinding] - Connecting to IHC / ELKO LS controller [IP=‘192.168.1.3’ Username=‘Openhab’ Password=’******’].
Communication to IHC controller seems to work as communication problem occurs during notification listeners. Listeners are started only if login and project file is downloaded successfully. After timeout occurs, IHC connection to controller seems to fail as well, so for me this sounds controller or network problem.
What is you network topology? Are both openHAB and IHC connected to Ethernet? Do you have firewall in between?
What is your IHC controller HW and SW version?
You could change ihc binding log level to DEBUG (or TRACE) to get more information.