Timing out on IHC Binding

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

How is your binding configured?
What is the IP address of your IHC controller? Did you double check in your network switch?

It looks like OH times out on connecting to that IP. Make sure the IP is correct first of all

Hi
This is how it is configured in the IHC.cfg file

Controller IP address

ip=192.168.1.3

Username and password for Controller

username=Openhab
password=XXXXXXXXXXXXX (My password)

Timeout for controller communication

timeout=5000

i have checked the ip is correct
i suspect java security maybe the problem???

What happens when you ping that IP?

it says no loss when i ping

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

thank you so much for the help so far do you know if openhab supports the 161 update

Yes, I run on that

great thx

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)…

that makes sense

actually tried looking through my files and discovered that some of my files were without
// vim: syntax=Xtend
does this make any difference??

I don’t know… Sorry

tried setting it in and woula it works haha 2 days of not working for 3 lines of code

Good, well done.
Publish what you changed and mark the thread as solved, that will help others

This have been solved by adding or making sure that all files ended with
// vim: syntax=Xtend

maybe a coincidence but seems that the syntax is important

edit: not the solution

Not Solved Hmmmm
please help

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=’******’].

Did you reset your controller? Maybe reset the username and password?
Factory reset?

nope

tried to logon with the user and pass on the controller at it worked fine

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.