Good Morning,
Yesterday evening the connection between Openhab and Alexa did not work anymore.
After a short analysis, it turned out that my on premise Openhab instance no longer has any connection to myopenhab.org.
Since I had the same problem last week on Wednesday (after a reboot, everything is fine again), I searched this time more closely.
The log file contains the following:
2017-11-23 21:24:42.360 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = UUID, base URL = http://localhost:8080)
2017-11-23 21:29:32.519 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = UUID, base URL = http://localhost:8080)
2017-11-23 21:29:37.186 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: xhr post error
at io.socket.engineio.client.Transport.onError(Transport.java:71) [203:org.openhab.io.openhabcloud:2.2.0.201710181101]
at io.socket.engineio.client.transports.PollingXHR.access$000(PollingXHR.java:19) [203:org.openhab.io.openhabcloud:2.2.0.201710181101]
at io.socket.engineio.client.transports.PollingXHR$4$1.run(PollingXHR.java:88) [203:org.openhab.io.openhabcloud:2.2.0.201710181101]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [203:org.openhab.io.openhabcloud:2.2.0.201710181101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:175) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250) ~[?:?]
at io.socket.engineio.client.transports.PollingXHR$Request$1.run(PollingXHR.java:206) ~[?:?]
... 1 more
2017-11-23 21:29:37.220 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = UUID, base URL = http://localhost:8080)
2017-11-23 21:31:10.718 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = UUID, base URL = http://localhost:8080)
but openhab was not connected.
I was hoping to restart the bundle via the Karaf Console, but did not find a bundle.
Then I saved the Cloud Connector without any changes under Services via the Paper UI.
and see there …
2017-11-23 23:34:09.855 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2017-11-23 23:34:09.869 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = UUID, base URL = http://localhost:8080)
2017-11-23 23:34:10.252 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = UUID, base URL = http://localhost:8080)
a few seconds later, my openhab was online again.
my openhab is running openHAB 2.2.0 Build #1068.
I hope that helps you?