openHAB Cloud websocket error

As a relative newbie to OpenHAB, I’ve managed to get some basic automation up & running, and connected it successfully to myopenHAB. At face value, it appears to work OK, but on looking at the logs (openhab.log), it is regularly having problems connecting to the OpenHAB cloud. Log extract below

OpenHAB is running on a Windows 10 machine, with Zulu Java, with a hard-wired connection to the router (which is 4G LTE)

Any ideas gratefully received

Log extract:
2020-02-08 19:25:25.214 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}
io.socket.engineio.client.EngineIOException: websocket error
at io.socket.engineio.client.Transport.onError(Transport.java:63) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket.access$400(WebSocket.java:24) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket$1$5.run(WebSocket.java:107) [bundleFile:?]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: java.net.SocketException: Network is unreachable: recv failed
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.8.0_242]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[?:1.8.0_242]
at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[?:1.8.0_242]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_242]
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:1.8.0_242]
at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:1.8.0_242]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) ~[?:1.8.0_242]
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) ~[?:1.8.0_242]
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) ~[?:1.8.0_242]
at okio.Okio$2.read(Okio.java:139) ~[?:?]
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237) ~[?:?]
at okio.RealBufferedSource.request(RealBufferedSource.java:67) ~[?:?]
at okio.RealBufferedSource.require(RealBufferedSource.java:60) ~[?:?]
at okio.RealBufferedSource.readByte(RealBufferedSource.java:73) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:113) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:97) ~[?:?]
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262) ~[?:?]
at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]

I seem to recall seeing a sticky post yesterday (Feb 8) about maintenance being performed (sorry I don’t have the particulars of the post because I didn’t read it). As your log entry is from yesterday, could the maintenance be the cause of your issue?

1 Like

Mark - thanks for the reply. It’s been going on for quite a few days, so don’t think it’s a openhab cloud maintenance issue - unless they take it down daily?

I see this in my logs sometimes, when it starts to appear more frequently I stop OH and clean the cache to fix it.

sudo systemctl stop openhab2

sudo openhab-cli clean-cache

sudo systemctl start openhab2 or sudo reboot

1 Like

Thanks. Any tips on how I do this with OpenHAB2.5 running on windows 10?

I don’t use Windows, just do a quick forum search (clean cache Windows) or use the Windows cure-all Ctrl + Alt + Delete. :rofl: