openhab / openhab-cloud

Cloud companion for openHAB instances
Eclipse Public License 2.0
315 stars 161 forks source link

OpenHAB offline, when trying to access from myOpenHAB.org instance #459

Closed demichve closed 5 months ago

demichve commented 5 months ago

As of last night (26th May), you cannot access anymore your local OpenHAB instance using web browser, when using myopenHAB.org service.

I am not sure, if this is the right place to raise this issue.

There are already discussions in community: https://community.openhab.org/t/openhab-is-offline-error/154427/21 https://community.openhab.org/t/cloud-connector-ipv6-errors/156209

Steps to reproduce: Run https://myopenhab.org/ and login with your user credentials. Click on the dashboard link -> fails with "OpenHAb Offline"

Notifications are sent using the service, the rest is dead.

Michael

curlyel commented 5 months ago

In my case, myOpenHAB considers my openHAB server to be online: image

And: remote integration via Amazon Alexa is still working. Just the MainUI is not shown. See also for more details: https://github.com/openhab/openhab-addons/issues/16809

demichve commented 5 months ago

@curlyel Yes, it's online. But you cannot access the dashboard.

digitaldan commented 5 months ago

Sorry about that, we did a small deployment that created an api endpoint to return some info on the proxy settings for our mobile clients. Unfortunately this set the host header we send in the request to a users’s openHAB to https://home.myopenhab.org:443 instead of home.myopenhab.org:443 (its not suppose to have the protocol in it). Jetty, which is what openHAB uses for web requests, choked on this and was trying to parse it as a ipv6 address. So while openHABs where connected, http requests back to them will malformed.

I just made a fix and deployed it, things should be back to normal now or at least in a few mins when everyone connects.

demichve commented 5 months ago

Ok, solved :-)