Improved Stability

Six weeks, to be exact. Now HA stopped around 1 a.m. which is precisely when I rescheduled the integrity check on my system to run. And, as it has been running for 6 weeks now without affecting HA. Further, the integrity check was done at 2:30 but HA was still unresponsive when I woke up at 5:30 and restarted it.

This problem is vexing me. I think I have the trigger now but why it’s happening I have no idea. If it were conflicts, I’d expect it to clear up and resume when the task was done.

Anyway, it won’t let me post the full logs, but around the 1 a.m. there were a ton of these (which I get tons of now all day long fwiw):

2024-07-12 01:01:50.439 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by integration 'ps4' at homeassistant/components/ps4/__init__.py, line 176: games = load_json_object(g_file) (offender: /usr/src/homeassistant/homeassistant/util/json.py, line 78: with open(filename, mode="rb") as fdesc:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+ps4%22
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 680, in _async_handle_interval_callback
    self.config_entry.async_create_background_task(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1164, in async_create_background_task
    task = hass.async_create_background_task(target, name, eager_start)
  File "/usr/src/homeassistant/homeassistant/core.py", line 860, in async_create_background_task
    task = create_eager_task(target, name=name, loop=self.loop)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 37, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1050, in _async_update_entity_states
    await entity.async_update_ha_state(True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/ps4/media_player.py", line 160, in async_update
    self._parse_status()
  File "/usr/src/homeassistant/homeassistant/components/ps4/media_player.py", line 166, in _parse_status
    self._games = load_games(self.hass, cast(str, self.unique_id))
  File "/usr/src/homeassistant/homeassistant/components/ps4/__init__.py", line 176, in load_games
    games = load_json_object(g_file)

Then at 1:05 things start reporting delays and/or connection failures, like:

2024-07-12 01:05:22.488 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.refrigerator is taking over 10 seconds
2024-07-12 01:06:06.563 ERROR (MainThread) [homeassistant.components.fully_kiosk] Timeout fetching 192.168.2.222 data

Then from 1:14 until 5:30 (when I restarted) all I have is repeats of:

2024-07-12 05:24:09.849 ERROR (Thread-12) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-12 05:24:09.854 WARNING (Thread-12) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection

Hi, FYI what this category is about

Be aware that this is not the right place for posting this and expect something is done about it.
Just saying…

Got to be that guy eh? Ok, I’ll bite.

FYI - the request is to improve stability. Except at least half the people believe there are no stability issues because THEY don’t have stability issues. Have I proved it yet? No, probably not to them.

FYI - a good portion of those will say there are only stability issues from 3rd party plugins. Except the one legit error I have is from a built in integration.

FYI - I’ve also gotten more help here on this post than I’ve got from any post I’ve ever made in this community. I’ll take what I can get.

Thanks for your help.

No clue what you mean by that, I was just trying to help you by telling that a feature request is not the best way to get help with your current problem but hey, just have a ball!

All your posts here have been so helpful. Thanks.

Welp, I set the integrity check to only run monthly, thinking it would buy me a longer lifespan. It bought me less than 2 weeks. This time HA went down overnight the night before last while the integrity check was not running. So, I have no flipping clue here.

The logs:

2024-07-24 22:45:32.801 ERROR (MainThread) [custom_components.alexa_media] Error fetching alexa_media data: Error communicating with API: 
2024-07-24 22:53:56.803 ERROR (MainThread) [homeassistant.components.androidtv.entity] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from 192.168.2.228:5555 timed out (9.0 seconds)
2024-07-24 22:53:58.803 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.2.228:5555.  TcpTimeoutException: Connecting to 192.168.2.228:5555 timed out (1.0 seconds)
2024-07-24 23:08:20.863 ERROR (MainThread) [custom_components.nws_alerts] Error fetching NWS Alerts data: Cannot connect to host api.weather.gov:443 ssl:default [Network unreachable]
2024-07-24 23:17:33.945 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: [Errno 113] Connect call failed ('192.168.2.51', 9999)
2024-07-24 23:19:13.940 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:21:28.939 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:23:46.941 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:24:57.941 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:25:01.826 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to connect to the device: 192.168.2.135:9999: 
2024-07-24 23:26:57.940 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:30:36.829 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to connect to the device: 192.168.2.135:9999: 
2024-07-24 23:35:08.940 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:42:23.288 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to query the device 192.168.2.135:9999: 
2024-07-24 23:50:18.942 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:52:58.941 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.51 data: Unable to connect to the device: 192.168.2.51:9999: 
2024-07-24 23:56:38.827 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to connect to the device: 192.168.2.135:9999: 
2024-07-25 00:11:57.826 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to connect to the device: 192.168.2.135:9999: 
2024-07-25 00:24:25.828 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to connect to the device: 192.168.2.135:9999: 
2024-07-25 00:26:49.827 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.135 data: Unable to connect to the device: 192.168.2.135:9999: 
2024-07-25 01:00:41.538 WARNING (MainThread) [fullykiosk] Invalid response from Fully Kiosk Browser API: 500
2024-07-25 01:00:41.540 WARNING (MainThread) [fullykiosk] Invalid response from Fully Kiosk Browser API: 500
2024-07-25 01:00:41.542 ERROR (MainThread) [homeassistant.components.fully_kiosk] Error fetching 192.168.2.222 data: (500, 'Remote admin server starting...')
2024-07-25 01:37:29.209 WARNING (Thread-23) [pychromecast.socket_client] [Office Music Chromecast(192.168.2.78):8009] Heartbeat timeout, resetting connection
2024-07-25 01:37:29.210 WARNING (Thread-17) [pychromecast.socket_client] [SHIELD(192.168.2.231):8009] Heartbeat timeout, resetting connection
2024-07-25 01:37:30.947 WARNING (Thread-20) [pychromecast.socket_client] [Den Chromecast(192.168.2.218):8009] Heartbeat timeout, resetting connection
2024-07-25 01:37:30.953 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Heartbeat timeout, resetting connection
2024-07-25 01:37:30.959 WARNING (Thread-28) [pychromecast.socket_client] [Den Receiver(192.168.2.237):8009] Heartbeat timeout, resetting connection
2024-07-25 01:37:31.464 WARNING (Thread-22) [pychromecast.socket_client] [Bedroom Tablet(192.168.2.162):8009] Heartbeat timeout, resetting connection
2024-07-25 01:37:31.965 WARNING (Thread-8 (_thread_main)) [roombapy.roomba] Unexpectedly disconnected from Roomba 192.168.2.216, code The connection was lost
2024-07-25 01:37:33.279 WARNING (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.protocol] Device client connection failed: 5
2024-07-25 01:37:35.786 WARNING (MainThread) [hass_nabucasa.iot] Connection closed: Cannot write to closing transport
2024-07-25 01:37:36.310 WARNING (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.protocol] Device client connection failed: 5
2024-07-25 01:40:02.923 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:40:02.924 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:43:20.211 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:43:20.253 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:45:33.613 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:45:33.619 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:47:40.659 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:47:40.670 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:49:47.715 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:49:47.715 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:51:58.230 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:51:58.236 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:54:08.849 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:54:08.855 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:56:23.028 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:56:23.034 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 01:58:34.505 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 01:58:34.505 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:01:45.327 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:01:45.333 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:05:02.629 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:05:02.635 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:08:49.987 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:08:49.998 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:11:16.025 ERROR (Thread-23) [pychromecast.socket_client] [Office Music Chromecast(192.168.2.78):8009] Error reading from socket.
2024-07-25 02:11:16.031 WARNING (Thread-23) [pychromecast.socket_client] [Office Music Chromecast(192.168.2.78):8009] Error communicating with socket, resetting connection
2024-07-25 02:11:16.053 ERROR (Thread-23) [pychromecast.socket_client] [Office Music Chromecast(192.168.2.78):8009] Failed to connect to service HostServiceInfo(host='192.168.2.78', port=8009), retrying in 5.0s
2024-07-25 02:12:43.332 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:12:43.338 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:14:50.347 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:14:50.353 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:15:23.934 ERROR (Thread-22) [pychromecast.socket_client] [Bedroom Tablet(192.168.2.162):8009] Error reading from socket.
2024-07-25 02:15:23.940 WARNING (Thread-22) [pychromecast.socket_client] [Bedroom Tablet(192.168.2.162):8009] Error communicating with socket, resetting connection
2024-07-25 02:18:45.295 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:18:45.301 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:20:52.603 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:20:52.609 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:23:03.398 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:23:03.404 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:25:14.123 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:25:14.129 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:27:25.039 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:27:25.138 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:29:45.883 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Heartbeat timeout, resetting connection
2024-07-25 02:30:16.126 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Failed to connect to service HostServiceInfo(host='192.168.2.229', port=8009), retrying in 5.0s
2024-07-25 02:37:56.811 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:37:56.867 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:40:05.219 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:40:05.219 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:42:17.107 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:42:17.113 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:44:21.599 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:44:21.605 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:46:31.977 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:46:31.983 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:48:43.015 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:48:43.015 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:50:54.325 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:50:54.331 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:53:07.203 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:53:07.203 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:55:07.780 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:55:07.786 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 02:58:25.680 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 02:58:25.686 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:00:30.185 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:00:30.185 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:02:41.439 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:02:41.445 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:04:52.120 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:04:52.126 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:06:59.187 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:06:59.193 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:09:10.195 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:09:10.201 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:11:17.187 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:11:17.193 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:13:28.205 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:13:28.211 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:15:42.790 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:15:42.796 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:17:43.297 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:17:43.303 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:19:53.830 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:19:53.830 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:22:00.835 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:22:00.835 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:25:13.107 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:25:13.113 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:27:23.674 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:27:23.680 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:29:34.225 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:29:34.225 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:31:44.801 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:31:44.807 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:33:59.334 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:33:59.340 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:36:01.503 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:36:01.509 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:39:18.803 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:39:18.809 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:41:32.590 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:41:32.596 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:43:39.563 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:43:39.563 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:45:50.526 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:45:50.532 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:48:01.920 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:48:01.926 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:51:19.091 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:51:19.091 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:53:33.490 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:53:33.490 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:55:44.900 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:55:44.906 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 03:59:28.955 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 03:59:28.955 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:01:39.686 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:01:39.686 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:05:00.700 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:05:00.711 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:07:12.128 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:07:12.134 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:09:23.516 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:09:23.516 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:12:40.723 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:12:40.729 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:14:55.016 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:14:55.021 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:17:06.506 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:17:06.511 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:20:17.250 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:20:17.250 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:22:28.632 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:22:28.638 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:25:45.763 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:25:45.769 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:28:00.046 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:28:00.052 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:30:11.464 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:30:11.470 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection
2024-07-25 04:32:18.443 ERROR (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-07-25 04:32:18.449 WARNING (Thread-16) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection

It looks like you have a local network issue.

It would seem so except:

  1. No other device or service on my network displays the same issue. That includes Frigate, MQTT, and other services that run all the time
  2. Even if somehow network connectivity were interrupted during the night, why does HA not resume when connectivity is resumed without needing a restart?

Unless it’s a hardware issue specific to your HA server.

Without knowing your server, hardware and network setup it’s hard to say more.

Synology DS718+, DSM 7.1.1, running HA in a docker container. The NAS nor any other container on the NAS experience this issue (though HA is the most resource intensive container).

While I know many users run their HA on a Synology NAS, I don’t have any experience with it, but I would say the issue doesn’t seem related to hardware then. Unfortunatley, I don’t think I’ll be able to offer any other advice at this stage.

I’m back!

It failed again last night, but earlier than it has been before. So now I’m not even sure it’s correlated with the backup. But somehow it stops being able to do any network activity.

The only thing unusual I see is a lot of these errors throughout the day yesterday. This is a rarely used device, but seems fine from the Kasa app:

2024-08-08 00:08:43.309 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.2.99 data: Unable to query the device 192.168.2.99:9999: 

That and the fact that it always finishes with this same error repeated even after it is unresponsive:

2024-08-08 01:46:15.171 ERROR (Thread-12) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error reading from socket.
2024-08-08 01:46:15.177 WARNING (Thread-12) [pychromecast.socket_client] [TV(192.168.2.229):8009] Error communicating with socket, resetting connection

At this point, I think I’m just going to write a script to restart HA after my nightly backups finish, which should fix 9 out of 10 cases. But it would sure be nice to not have to do that.

I still don’t get, why this should be a FR? It has nothing to do with the problem at hand, there is no feature requested and it limits the response from people willing to help, as it’s not in the correct category. A lot of people don’t even look at this category…

Please read further, before you get offended, I have some good reasons, why I’m saying that. :slight_smile:

This category of the forum is for feature requests, and people from the developer team are looking into this category from time-to-time. It doesn’t really make sense, to post in here, if you don’t have a specific feature to request. The broader the request is, the less attention it will get. In this case, it will likely end in some dark and dusty corner of the forum, just because it doesn’t get enough attention. And that couldn’t be the goal of this. :wink:

In your case, and a perfect world, that would mean, you have a problem and ask for a solution (eg. in Configuration). In that thread the problem should be solved, or it becomes clear, that this is not a bug, and could be a valuable feature for all users. That’s when a thread in this category should be openend, and then, this will get attention, but it presumes, that there really is a feature, that is requested. I hope you see, where I’m going with this.

It’s not because your problem isn’t taken seriously, it’s just that in this category of the forum, it will not work like this.

And in the end, this won’t help others or you, as I said above, it will likely get lost in the depth of the forum.

So my advice or recommendation would be, to move this thread to a category where people are looking to help others, and therefor you. :slight_smile: If you agree with this, please say so, so the thread can be moved. :slight_smile: Or you open up a new thread, where you sum up this thread and look for help to solve your problem.

That being said, I’d speculate on a local network issue, too. My guess would be, that your router is limiting the IP of your HA installation, because of to much traffic. Some routers have these settings. And it would explain, why other networking devices aren’t affected.

1 Like

FYI, I see many errors like yours in the logs, but my HA is rock solid and stable…
running as a docker container in a dell thin client with i3 and 3 GB of ram.
IMO you’re barking at the wrong tree here…
That said, I suggest you to:

  • check all the logs (all containers’ ones)
  • check the logs on your synology
  • post elsewhere

my 2€c
ciao

There I moved the thread. Now it can collect dust elsewhere in the forum.

Improving stability should be a goal of the developers, and shouldn’t be that hard to understand. There are some few that have worked on that, and to them, my thanks.

But in case I wasn’t clear before, I gave up and implemented a workaround.

Let me just say one more thing then I’m done here: this is literally the most frustrating “community” I’ve ever been a part of.

Your problem lays in your network as the log messages indicate those devices are unreachable.

Now, if the integration fails to reconnect when the device becomes reachable, that is a bug and should reported.

believe me, if you’re born in 1998 you have no idea of what a “frustrating community” is :wink:
I agree that developers should aim to stability, and I’m sure they already are… but if you double check here, you’ll se that HA is quite stable…

David, I’ve been a user of your custom components for a long time, so I appreciate your efforts with HA, but I think this is a little harsh.

As Patrick so nicely explained, you should actually getter better feedback this way. It really does make a difference.

It’s best to phrase specific stability issues. A broad statement such as to improve stability generally speaking isn’t helpful to address. It would’ve been nice if HA also recorded some public (opt-in) crash statistics to quantify this, but at least anecdotally, I’d say that stability issues are commonly used by custom components.

2 Likes