Home Assistant Freezing, have to power cycle

Any help would be appreciated. Every few weeks the computer running HA freezes and needs a power cycle. The last log entry was an automation which wasn’t so I disabled it and I thought that had solved the issue but this morning I woke up to HA frozen again. Here is the last entries in the log file:

2024-07-09 06:39:56.522 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/etc/os-release',) inside the event loop by custom integration 'extended_openai_conversation' at custom_components/extended_openai_conversation/helpers.py, line 150: await client.models.list(timeout=10) (offender: /usr/local/lib/python3.12/site-packages/distro/distro.py, line 1099: with open(self.os_release_file, encoding="utf-8") as release_file:), please create a bug report at https://github.com/jekalmin/extended_openai_conversation/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
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 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, 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/setup.py", line 167, in async_setup_component
    result = await _async_setup_component(hass, domain, config)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 449, in _async_setup_component
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/setup.py", line 451, in <genexpr>
    create_eager_task(
  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/config_entries.py", line 734, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/extended_openai_conversation/__init__.py", line 100, in async_setup_entry
    await validate_authentication(
  File "/config/custom_components/extended_openai_conversation/helpers.py", line 150, in validate_authentication
    await client.models.list(timeout=10)

2024-07-09 06:39:59.649 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for m5stack-atom-echo-305098 @ 192.168.2.243: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.2.243', port=6053))]: [Errno 113] Connect call failed ('192.168.2.243', 6053) (SocketAPIError)
2024-07-09 06:39:59.651 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for esp32-bluetooth-proxy-ba11fc @ 192.168.2.154: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.2.154', port=6053))]: [Errno 113] Connect call failed ('192.168.2.154', 6053) (SocketAPIError)
2024-07-09 06:39:59.794 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [None]
2024-07-09 06:40:08.952 WARNING (MainThread) [zigpy.application] Zigbee channel 25 utilization is 85.49%!
2024-07-09 06:40:08.952 WARNING (MainThread) [zigpy.application] If you are having problems joining new devices, are missing sensor updates, or have issues keeping devices joined, ensure your coordinator is away from interference sources such as USB 3.0 devices, SSDs, WiFi routers, etc.
2024-07-09 06:40:09.189 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-07-09 06:40:12.769 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.water_flow_rate (gal/min) cannot be converted to the unit of previously compiled statistics (gpm). Generation of long term statistics will be suppressed unless the unit changes back to gpm or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-07-09 06:40:14.540 ERROR (MainThread) [custom_components.frigate.api] Error fetching information from http://ccab4aaf-frigate:5000/api/stats: Cannot connect to host ccab4aaf-frigate:5000 ssl:default [None]
2024-07-09 06:40:25.185 ERROR (MainThread) [frontend.js.latest.202407050] Uncaught error from Chrome 126.0.0.0 on Mac OS 10.15.7
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "button-card-action-handler" has already been used with this registry
window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14)
/hacsfiles/button-card/button-card.js:1:24357
2024-07-09 06:40:25.186 ERROR (MainThread) [frontend.js.latest.202407050] Uncaught error from Chrome 126.0.0.0 on Mac OS 10.15.7
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mmp-checkbox" has already been used with this registry
window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14)
/local/mini-media-player-bundle.js:162:67
/local/mini-media-player-bundle.js:162:82
t (/local/mini-media-player-bundle.js:15:250)
/local/mini-media-player-bundle.js:702:170

Try disabling that integration (or send the logs to the author).

ok…thank you. I disabled it as I’m not using it anyway. It was a test. Can you please point me to the exact log message which brought you to this conclusion?

thx again
Mike

sorry, I see it now: 2024-07-09 06:39:56.522 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/etc/os-release',) inside the event loop by custom integration 'extended_openai_conversation' at custom_components/extended_openai_conversation/helpers.py, line 150: await client.models.list(timeout=10) (offender: /usr/local/lib/python3.12/site-packages/distro/distro.py, line 1099:

1 Like

So far no crashes :slight_smile:
Can anyone please help with these other log messages?

CustomElementRegistryError: Failed to execute 'define' on 'CustomElementRegistry': the name "button-card-action-handler" has already been used with this registry
window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14)
/hacsfiles/button-card/button-card.js:1:24357
2024-07-12 06:35:27.686 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Chrome WebView 126.0.6478.134 on Android 14
Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mmp-checkbox" has already been used with this registry
window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14)

As you can see in the photo I have 2 instances of UI Lovelace Minimalist and I think this is related to those log messages? and I’m not sure how to get rid of it. I found the files but I’m afraid to delete them.

Any thoughts would be appreciated!
thx,
Mike

Screenshot 2024-07-12 at 8.13.44 AM

/