Connection issue from android app

Hello, I’m facing an issue with the android application. When I start the app if it often shows an error icon and can’t connect to the home assistant instance.

In the logs I can see a lot of logs like this:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:53
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:15:29 (1 occurrences)
Last logged: 14:15:29
[140368327253968] Xavier from 192.168.0.112 (Mozilla/5.0 (Linux; Android 13; Pixel 7 Pro Build/TQ3A.230605.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/114.0.5735.60 Mobile Safari/537.36 Home Assistant/2023.6.0-10170 (Android 13; Pixel 7 Pro)): Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving; Last message was: {"id":6051,"type":"result","success":true,"result":null}

I have to restart to app to make it working again.
The log says “The system’s load is too high or an integration is misbehaving” but I don’t think it is related to system load as nothing the system has not changed since months. I did not setup any new integration and I had no problem prior to version 2023.6 (never happened on version 2023.5). So I think most probably it comes from an integration but I have no idea how to identify which one.

Do you have any idea how I can debug such an issue ?

All the messages in logs are like this one : {"id":6051,"type":"result","success":true,"result":null}

In the companion app logs I can see entries like that:

06-20 12:05:20.713 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":20}
06-20 12:05:20.953 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":21}
06-20 12:05:20.955 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:21.411 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":22}
06-20 12:05:21.733 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":23}
06-20 12:05:21.735 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:22.755 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":24}
06-20 12:05:23.129 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":25}
06-20 12:05:23.131 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:23.582 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":26}
06-20 12:05:23.910 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":27}
06-20 12:05:23.913 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:24.975 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":28}
06-20 12:05:25.359 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":29}
06-20 12:05:25.363 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:25.805 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":30}
06-20 12:05:26.181 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":31}
06-20 12:05:26.185 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:27.146 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":32}
06-20 12:05:27.567 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":33}
06-20 12:05:27.569 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:27.917 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":34}
06-20 12:05:28.259 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":35}
06-20 12:05:28.261 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false
06-20 12:05:29.380 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"disconnected"},"id":36}
06-20 12:05:29.764 16161 20517 D WebviewActivity: External bus {"type":"connection-status","payload":{"event":"connected"},"id":37}
06-20 12:05:29.767 16161 16161 D ServerConnectionInfo: localUrl is: true, usesInternalSsid is: false, usesWifi is: false

It happens when I’m on the same wifi network and also from external network.
My Home Assistant instance is running in Docker on a Synology NAS (latest stable version so 2023.6.2).

Do you have some ideas how to get more info regarding the root cause ?

PS: I placed this topic in the configuration section as it’s probably a configuration issue. If it’s not correct, feel free to tell me where I should move it.

You’re not alone:

There’s also a GitHub issue that I’d recommend adding your experience to; hopefully the more folks that report it, the more likely the developers see it.

2 Likes

I searched for such an issue without finding it. Thank you for pointing that out.