OpenHAB is offline error

Since my Upgrade to OpenHAB 4.1 last year I have a strange problem with my Android app.

When I don’t use my app for a longer period (lets say at least 30 minutes) and want to use it again, it doesn’t load my UI and instead I get this error:

Clicking on Try Again changes the error from “Bad Request” to “The user agent does not support public key credentials.”

Clicking on Reload app gets me a 400 Bad Request with “No required SSL certificate was sent” from Nginx. The same happens with purge caches and refresh.

The solution is to force a shutdown of the app and re-open it. Then all works normal again.

I am using Nginx as a reverse proxy with SSL certificates offloading. All requests are forwarded to the 8080 port of OpenHAB. It seems like in some rare cases OpenHAB Android apps forget to send the SSL certificate which I have configured correctly.

Anyone familiar with this?

1 Like

Which app do you use for openHAB?

Hope I don’t understand your question wrong, but I just use the official Android OpenHAB app?

Well, it doesn’t look like the official Android app. Also the app doesn’t contain these strings, e.g. there’s no “Purge Caches and Refresh”. How did you install the app?

That looks like the screen you get when you are just using a browser connection to hit your fqdn that is pointed to nginx. I have seen that before but it was when my wireless shutoff to save power . I have also seen that same behavior if you connection timed out due to connectivity issues going through your router and the android device could not resolve your FQDN till you reloaded the home page and if also if you secured your Nginx with basic auth and the cached creds are not saved in browser I have seen that as well. But as I said only when just using a browser connection not using the android app as was stated earlier.

I’m really sorry (also for the late reply) but this screenshot is really made with the OpenHAB app. And indeed it happens if I do not use the app over a longer period (for example an hour on longer) and the app stays on the background meanwhile.

I do not secure it with basic auth, but with SSL client certificate.

I get the same right now on the app and also the myopenhab in chrome… I am not using any proxy or special config it worked last week just fine

Same thing starts yesterday. I cannot access MainUI via myopenhab.org, web browser/android app. Local version work fine. In openhab.log i found alot of errors about ipv6 and REST access

Hi, i m also seeing this error today. Any suggestion to check?

Sitemap loads fine. Only Main UI is not loading remotely.

All was working till yesterday.

1 Like

I have had the same issue since yesterday evening. Locally works ok, paperUI also works ok (locally and remotely), MainUI doesn’t work remotely.
In dev tools in Chrome, when connecting via myopenhab I can see:

{"error":{"message":"Expected closing bracket for IPv6 address at index 14: http://[https://home.myopenhab.org:443]/rest/","http-code":500,"exception":{"class":"java.lang.IllegalArgumentException","message":"Expected closing bracket for IPv6 address at index 14: http://[https://home.myopenhab.org:443]/rest/","localized-message":"Expected closing bracket for IPv6 address at index 14: http://[https://home.myopenhab.org:443]/rest/","cause":"java.net.URISyntaxException"}}}

1 Like

Was just digging into that issue on my system too!! Same error message in log here too.

  • Works fine locally via App and Browser
  • Remotely the app doesn’t work
  • It appears that Google Assistant integration working (Commands sent via Google working)
  • Also when logging in to myopenhab via browser, get the exact same message:

openHAB Version 4.1.2 (Cloud connector is same version too)
Ubuntu 23.10

Started failing sometime in the last 24 hours - No updates/restarts etc performed on my system in that time.

Cheers

1 Like

Now I am mobile connection and get blank page. Notifications work but not main ui

Same thing here, it stops working via myopenhab.org yesterday at after 6 pm, locally it works.

Same problem since this morning …

I have the same situation. No access via mobile iOS app and no access via myopenhab.org.

Same issue here since yesterday. Only difference is, that it shows:

Error: OK

I’ve got the same issue: myopenhab.org can’t connect to my openHAB server, now I’m not on my local home network.

Maybe it’s got something to do with the update mentioned here: Android users: action required to continue to use push notifications? @digitaldan?

We have the same issue here. It seems there’s a bug on the cloud server side.
Locally all works fine. Cloud connector works also. OH is shown as online in the cloud, but couldn’t access remotely.
All the known tips doesn’t work, as deinstall cloud connector (remove secret and UIID), clearing the cache. Also all updates are done.
So no idea why it doesn’t work.

I’m not using android, but I also got this error.

same problem