-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python instability issues/crashing #134164
Comments
This is most likely not the reason that its crashing, but these logs are because of a custom intergation for govee. |
Hi, I have been having similar issues from last few days. Smartlife and Tuya integration fails to startup. Have been adding new hub all the time. The log says: Logger: tuya_sharing net work error = Detected that custom integration 'smartlife' calls hass.config_entries.async_update_entry from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassconfig_entriesasync_update_entry at custom_components/smartlife/init.py, line 261: self.hass.config_entries.async_update_entry(self.entry, data=data). Please report it to the author of the 'smartlife' custom integration Log details (WARNING) Detected that custom integration 'smartlife' calls hass.config_entries.async_update_entry from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassconfig_entriesasync_update_entry at custom_components/smartlife/init.py, line 261: self.hass.config_entries.async_update_entry(self.entry, data=data). Please report it to the author of the 'smartlife' custom integration |
That isa custom component as well and should be reported at their issue tracker instead |
Hi joostlet, I am struggling to find where to report this issue. "This project has now officially been integrated into the Home Assistant official project core repository, corresponding to version 2024.2. This project will no longer continue to iterate. Subsequent iterations and support will be carried out under the Home Assistant official project. If you have any questions, please communicate at https://github.com/home-assistant/core/issues. Thank you." Thank you for your guidance! |
I also cannot install esphome via addon. This is the only supervisor error I’m getting so I assume this is blocking install? |
This is not a supervisor error. But if this is the python instability you mention in the title I would first recommend checking out the forums or discord, because I don't see anything that can help point to something we can fix. The logs you posted is to stop things from blocking, but this usually isn't major and usually isn't the reason of an instable system |
@abhishekbanik Yes, they have put that on their repository, but that is untrue. You're still running a custom component and that is not our responsibility. If you want to run the core tuya one, you should migrate your devices. But again, this is not part of this issue. |
The problem
My HASS is crashing due to Python issue. Here is error:
Logger: homeassistant.util.loop
Source: util/loop.py:77
First occurred: 12:20:02 PM (1 occurrences)
Last logged: 12:20:02 PM
Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f741ecf6f90>, '/usr/local/lib/python3.13/site-packages/certifi/cacert.pem', None, None) in /usr/local/lib/python3.13/ssl.py, line 717: context.load_verify_locations(cafile, capath, cadata) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 227, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.13/site-packages/govee_led_wez/govee.py", line 717, in _http_poller await self.query_http_devices() File "/usr/local/lib/python3.13/site-packages/govee_led_wez/govee.py", line 239, in query_http_devices devices = await http_get_devices(self.api_key) File "/usr/local/lib/python3.13/site-packages/govee_led_wez/http.py", line 37, in http_get_devices ssl_context = ssl.create_default_context(cafile=certifi.where()) File "/usr/local/lib/python3.13/ssl.py", line 717, in create_default_context context.load_verify_locations(cafile, capath, cadata)
What version of Home Assistant Core has the issue?
core-2024.12.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Unclear; possibly home-llm?
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: