home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.13k stars 29.8k forks source link

Crash within 24 hours multiple reboots, is fine for a while #124273

Closed nielswest65 closed 1 day ago

nielswest65 commented 3 weeks ago

The problem

HA crashes within 24 hours of reboot, multiple error on .py components. Database errors, etc. After every reboot the system is fine for a while. I can not download logs because of unknown error. HA 2024.8.2 with db restore after unfortunate update to core 13.

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

2024.8.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Multiple and database

Link to integration documentation on our website

No response

Diagnostics information

Not possible

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

mib1185 commented 3 weeks ago

you say " multiple error on .py components. Database errors" but cannot provide any logs? And what do you mean with "update to core 13"? About the logs - check your config folder for home-assistant.log.1 this should be the log file before HA restarts

nielswest65 commented 3 weeks ago

because I am still restoring the enviroment from a database backup. I will see if I can find the last log from previos install and the first off the new install

nielswest65 commented 3 weeks ago

Hi, I had this issue in the installation git also and uploaded files there this was their answer

👋 @nielswest65, thanks for reporting an issue!

It looks like this issue is related to Home Assistant Core. Please check the Home Assistant Core repository, the issue might have been reported already. Open a new issue in that repository if you can't find a matching issue. supervisor_2024-08-20T11-04-58.988Z.log home-assistant_2024-08-20T11-04-35.978Z.log host_2024-08-20T12-28-26.623Z.log

nielswest65 commented 3 weeks ago

new type off error

Logger: homeassistant.components.recorder.core Bron: components/recorder/core.py:1206 integratie: Recorder (documentatie, problemen) Eerst voorgekomen: 16:55:55 (2078 gebeurtenissen) Laatst gelogd: 18:35:06

Error in database connectivity during commit: Error executing query: (sqlite3.OperationalError) disk I/O error (Background on this error at: https://sqlalche.me/e/20/e3q8). (retrying in 3 seconds) Error in database connectivity during commit: Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: https://sqlalche.me/e/20/e3q8). (retrying in 3 seconds)

nielswest65 commented 3 weeks ago

and Logger: aiohttp.server Bron: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:427 Eerst voorgekomen: 18:34:40 (2 gebeurtenissen) Laatst gelogd: 18:34:52

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 456, in _handle_request File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 537, in _handle File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware File "/usr/src/homeassistant/homeassistant/components/http/static.py", line 35, in _handle File "/usr/local/lib/python3.12/site-packages/aiohttp/web_urldispatcher.py", line 680, in _handle File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/web_urldispatcher.py", line 705, in _resolve_path_to_response File "/usr/local/lib/python3.12/pathlib.py", line 875, in is_dir File "/usr/local/lib/python3.12/pathlib.py", line 840, in stat OSError: [Errno 5] I/O error: '/usr/local/lib/python3.12/site-packages/hass_frontend/frontend_latest/84755.Eu6oHJU9cwI.js'

mib1185 commented 3 weeks ago

Error in database connectivity during commit: Error executing query: (sqlite3.OperationalError) disk I/O error

OSError: [Errno 5] I/O error:

It seems you've a hardware issue

issue-triage-workflows[bot] commented 1 week ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.