Unable to resolve host "<openhab-local-address>": No address associated with hostname

Hey Guys,

I am using OpenHab for several years now, as well as the Android App. So far everything is super. Some time ago my P30 was updated to Android 10 and I think after that update, (it might also be an App update of the OpenHab app afterwards) the app cannot connect anymore via WLAN after a while. I have to disable the WLAN and reenable it. Then the app connects normally. I have activated the extended protocol and error messages, showing the error above. This is what I found in the log:

10-13 09:54:55.599 22691 22691 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
10-13 09:54:55.603 22691 22691 I FirebaseInitProvider: FirebaseApp initialization successful
10-13 09:54:55.619 22691 22715 I AndroidSecurityKeyStore: keystore characteristics promise future onFinished.
10-13 09:54:55.625 22691 22715 I AndroidSecurityKeyStore: keystore operation promise future onFinished.
10-13 09:54:55.639 22691 22691 I EngineFactory: Provider GmsCore_OpenSSL not available
10-13 09:54:55.641 22691 22691 I ConnectivityManager: requestNetwork and the calling app is: org.openhab.habdroid
10-13 09:54:55.694 22691 22691 I ActivityThread: finishPreloaded end mPreloadStatus 0
10-13 09:54:55.694 22691 22691 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@a0c295c
10-13 09:54:55.740 22691 22691 I RmeSchedManager: init Rme, version is: v1.0
10-13 09:54:55.760 22691 22750 W Gralloc3: mapper 3.x is not supported
10-13 09:54:55.772 22691 22691 I HwViewRootImpl: removeInvalidNode jank list is null
10-13 09:54:55.775 22691 22691 W InputMethodManager: startInputReason = 1
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/api/v1/settings/notifications
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:54:55.776 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:54:55.779 22691 22691 W InputMethodManager: startInputReason = 5
10-13 09:54:55.947 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/api/v1/settings/notifications
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:54:56.242 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:54:56.243 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/rest/
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:54:58.291 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:54:58.297 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:58.301 22691 22691 E MainActivity: Error: org.openhab.habdroid.util.HttpClient$HttpException: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:54:58.301 22691 22691 E MainActivity: HTTP status code: 500
10-13 09:55:00.587 22691 22691 I AwareBitmapCacher: init lrucache size: 2097152 pid=22691
10-13 09:55:20.363 22691 22691 I Hwaps   : APS: EventAnalyzed: initAPS: version is 10.1.0.18
10-13 09:55:20.365 22691 22691 I hwaps   : HwAps: JNI_OnLoad
10-13 09:55:20.369 22691 22691 W Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
10-13 09:55:21.308 22691 22691 W HiTouch_PressGestureDetector: Touch pointer move a lot. The moving distance of X is:1.0, limit is:51The moving distance of Y is:51.475952, limit is:51
10-13 09:55:21.414 22691 22691 W HwApsManager: HwApsManagerService, registerCallback, start !
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: --> GET https://<openhab-local-address>/rest/
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: User-Agent: openHAB client for Android
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: Cache-Control: no-cache
10-13 09:55:28.338 22691 22774 I okhttp.OkHttpClient: --> END GET
10-13 09:55:28.351 22691 22774 I okhttp.OkHttpClient: <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:55:28.352 22691 22691 E MainActivity: Error: org.openhab.habdroid.util.HttpClient$HttpException: java.net.UnknownHostException: Unable to resolve host "<openhab-local-address>": No address associated with hostname
10-13 09:55:28.352 22691 22691 E MainActivity: HTTP status code: 500
10-13 09:55:28.376 22691 22691 I HwViewRootImpl: removeInvalidNode all the node in jank list is out of time

As I am not sure if the local address is removed only from the logs (in the app it shows the correct hostname in the error message) or if it does not set the correct hostname in the request, I hope you could help me.

Thanks and best regards
Peter

The server address is replaced by <openhab-local-address> in the log file only. Can you check the latest beta version?

I have installed the beta App, but it does not let me add the server until I reconnect to the Wifi. So, same problem. Furthermore the app randomly shows just a black screen when I press the back button. So there is no improvement unfortunately.

One thing came to my mind, though, I have lots of networt interfaces when I run a “ip addr” in terminal emulator, there a two interfaces “rmnet_tun10” and “rmnet_r_ims10” that are up and have an IP 10.29.XXX.XX/32 besides my wifi interface. Maybe the app uses the wrong interface for the connection to openhab?

Adding servers works fully offline. Are you sure you meant “add”?

A completely black screen? Does any message show up, e.g. “openHAB Beta doesn’t respond”?

I never ran this command on Android, but tun sounds like a VPN network adapter to me. Is there any VPN enabled?

The log should show us which interface is used.

With “does not let me add the server” I meant it did not connect until I reset the Wifi.

not completely black screen, I pressed the back button in the top menubar of the openhab app, and the main window of the app turned black (I have the dark theme), then nothing else happened. I could press the back button again and only the title of the window changed but the main window remained empty.

And there is no interface in the logs from which I pasted a selection above. Also no interface in the beta logs. What do I have to change in the settings that it does show the interface. By the way, yes I have two VPN connections installed and configured, but not active. When I have my private VPN active, meaning connecting into my net from the outside, everything works fine.