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