Main UI on 5G/4G (ie not on Wifi) Suddenly Stops Working (authentication error)

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
      • OpenHAB 5.1.1 running via Docker on Synology NAS
    • OS: what OS is used and which version
      • Android on Samsung S25Ultra
    • openHAB version: OpenHAB 5.1.1
  • Issue with the topic: Suddenly, I am unable to access the Main UI on 5G.

Today, Openhab 5.1.1 became inaccessible from 5G, while it works perfectly via Wi-Fi, noting nothing changed in the sense that no configuration was touched.

  1. The message initially is that while the cloud is accessible, the instance itself is offline. I got home and found that it is working fine on wifi.
  2. I rebooted the Docker container
  3. I completely uninstalled and reinstalled OpenHAB. That did not fix the issue. The message this time, “An error occurred while loading Main UI” click on “Try Again” for a fraction of a second, shows “Unauthorized”
  4. I checked my partner’s phone, and it works like a charm on both wifi and 5G.
  5. I put my credentials on her phone, and they worked.
  6. I put her credentials on my phone, same error “Unauthorized”
  7. I consulted both Claude and Gemini, and they concluded that Webview is the culprit.
  8. I have a Samsung S25 Ultra. On it, I found Android System Webview and uninstalled updates. The result was the same: “An error occurred while loading Main UI,” and refreshing shows “Unauthorized”, pointing to it might not be a webview.
  9. I am at a loss for the root cause.
  10. I am behind an ISP that has GNAT, so VPN solutions won’t work for me.

Any views from the gurus on what we need to do?

Thank you

Espresso

Can you bring up MainUI through a browser?

iOS or Android?

Hello,

Yes, on Wi-Fi, it works well on a browser (see image below)

I am able to access myopenhab.org properly with my credentials, and the main UI seems to be loading (which never loaded for me, too slow).

I tried the following with the phone in question: https://myopenhab.org/rest/items?limit=1. It asked for the credentials, which worked, and returned values.

The issue is on Android namely S25Ultra, my partner has a different Android phone working fine

I want to add a key thing. Sitemap works fine. But it shows that we are reading from the server. nothing meaningful and quite basic

Related?

I am also sering this today.
Everything works locally. Only when trying to acces remotely via the app do i get an error.

This affects Main UI only. I haveca test sitemap that still works.

Also acces via myopenhab works too.

Thank you for sharing

This is different. The issue is shown below

When clicking try again you will spot “Unauthorized”

Yes this is excactly the same behavoir.

I am happy (sorry) that someone else is having it :slight_smile: to get traction.

Question, do you have a samsung S25Ultra as well (to see if it is model specific)? or another android/iphone?

Older samsung

Same here, Google Pixel Android 16.

Only MainUI, Sitemaps are working.

Edit: openHAB 5.2.0.M6, Android App 3.20.4-beta.

I have the same problem “Unauthorized” on 5G.

Using an Xiaomi 13T Pro with Android 16 and OpenHAB App Version 3.20.5

Server settings are checked.

Edit: Sitemap on 5G is working.

Hi All,

Anyone found by any chance any workaround that we can apply?

How can we progress this? Is this considered a ticket or we need to open a dedicated one?

Thank you

I think the only way would be to ping digitaldan who seems to look after the cloud connectivity? Or tag this post to refeclect that it relates to cloudj connector issues?

So add the cloud tags to the post?

I don’t think it’s a problem with the cloud connectivity, because Sitemaps via 5G are ok.
And the Android app version is very new. May be was the problem there.

Agreed. I have downgraded to 3.19.8 and it is working now.
I had been running 3.20.5 fir a few days with no problem. So not sure why it chose today to break?

For anyone who is experiencing this problem, if you can go into the application settings (e.g. where you set the urls for local and remote settings. Further down in the list of options you’ll find some that refer to logs. Enable debug logging if it’s not already enabled and gather some logs during a failed connection. Those might hint at a work around and definitly will be needed in the issue that needs to be filed on the android app.

i deletetd my personal data if you need some information let me know

I have described an issue here: Main UI "Unauthorized" with mobile connection · Issue #4008 · openhab/openhab-android · GitHub

Fixed in Release 3.20.6-release · openhab/openhab-android · GitHub which will be available on Play Store for testers soon.

I downloaded the new version 3.20.6 from the Play Store.
Thanks a lot for the quick fix. :grinning_face:

Fixed for me. Thank you