[SOLVED] Suddenly became offline from openhabcloud- "Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically."

what java vendor SDK and version are you using ? One thing that did happen is Lets Encrypt removed a cross signing root cert that they used to include in their chain. This was in Jan. Our certs auto renewed on March 5, and would have picked up this change. This has bit a few enterprise systems based on Java. Seems like a long shot, as your linux version is quite new, but java still does manage its own cert store i believe.

My Ubuntu runs with

openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)

This is what they changed in this latest release:

  * OpenJDK 17.0.10 release, build 7.
    - CVEs:
      + CVE-2024-20918
      + CVE-2024-20919
      + CVE-2024-20921
      + CVE-2024-20932
      + CVE-2024-20945
      + CVE-2024-20952
    - Security fixes:
      + JDK-8276123, JDK-8316613: ZipFile::getEntry will not return a file entry
        when there is a directory entry of the same name within a Zip File.
      + JDK-8308204: Enhanced certificate processing.
      + JDK-8314295: Enhance verification of verifier.
      + JDK-8314307: Improve loop handling.
      + JDK-8314468: Improve Compiler loops.
      + JDK-8316976: Improve signature handling.
      + JDK-8317547: Enhance TLS connection support.

They have worked on this certificate stuff …

I have now installed Oracle JDK 17

java version "17.0.6" 2023-01-17 LTS
Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)

… but no change the openhabcloud is still reporting the same issue:

Error connecting to the openHAB Cloud instance: EngineIOException websocket error. Should reconnect automatically.

I have:
openjdk version “17.0.10” 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)

openjdk 17.0.10 2024-01-16
OpenJDK Runtime Environment (build 17.0.10+7-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 17.0.10+7-Debian-1deb11u1, mixed mode, sharing)

Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux

Upgraded to version openHAB 4.1.2 Release Build and no change. Still cloud is not working.

… unfortunately the same for me. :cry:

I also did a “clean” restart of my openhab system now.
Shut it down.
Went to /var/lib/openhab/cache & /var/lib/openhab/tmp folders and deleted everything in there
Started OH

→ besides the fact that the startup took much longer I don’t see any improvement.

OH still offline (now since 21 days) :cry:

I am out of ideas on my side.

Big, big thanks to @digitaldan
He did analyze the traffic coming from my IP and basically gave me the right hints to resolve the problem on my side!
I hope this will help others as well.
My system somehow had an issue with the new SSL certificate from myopenhab.org
→ Dan you can better explain it :slight_smile:

What I then did was trying to locate my Ubuntu’s certificate store and update it using

 sudo update-ca-certificates

rebooting the machine, but unfortunately this did not do the trick.

Only when I did

 sudo update-ca-certificates -f

and restarted my openHab the problem was resolved

 sudo update-ca-certificates -f

Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
137 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

Replacing debian:ACCVRAIZ1.pem
Replacing debian:Actalis_Authentication_Root_CA.pem
...
Adding debian:vTrus_ECC_Root_CA.pem
Adding debian:vTrus_Root_CA.pem
done.
done.
sudo systemctl stop openhab.service
sudo systemctl start openhab.service

leads to a successful log entry … and a ONLINE message on the myopenhab.org page

>
2024-03-28 21:08:27.683 [DEBUG] [ons.NotificationModuleHandlerFactory] - bundle org.openhab.io.openhabcloud:4.1.2 (274)[org.openhab.io.openhabcloud.internal.actions.NotificationModuleHandlerFac>
2024-03-28 21:08:28.072 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO OPEN
2024-03-28 21:08:28.094 [DEBUG] [io.openhabcloud.internal.CloudClient] - Socket.IO connected
2024-03-28 21:08:28.095 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = ....... , base URL = http://localhost:8080)

:slight_smile:
Hope this helps others too.

5 Likes

Many thanks, Working for me too.