Hi,
as title says my HA is crashing regular but irregularly (randomly maybe once in week or two). This mean that I’m able to connect to my instance and almost all sensor are " Unavailable" and cannot use add-ons, use automations or even boot ha from gui(need to power it off from cable). Lights and ac are still working thought HA.
Went trough logs are they look like this. I have Pi 4, 8GB where HA are installed on ssd and I’m using MariaDB.
First erro
r
After this most of integrations and devices report errors:
Few more database errors
Logger: homeassistant.components.recorder
Source: components/recorder/__init__.py:969
Integration: Recorder (documentation, issues)
First occurred: 10:00:06 AM (28 occurrences)
Last logged: 11:05:16 AM
Unhandled database error while processing event <Event time_changed[L]: now=2021-11-22T10:10:46.001285+02:00>: (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host 'core-mariadb' (-3)") (Background on this error at: https://sqlalche.me/e/14/e3q8)
Unhandled database error while processing event <Event time_changed[L]: now=2021-11-22T10:11:16.001599+02:00>: (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host 'core-mariadb' (-3)") (Background on this error at: https://sqlalche.me/e/14/e3q8)
Unhandled database error while processing event <Event time_changed[L]: now=2021-11-22T10:11:46.001014+02:00>: (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host 'core-mariadb' (-3)") (Background on this error at: https://sqlalche.me/e/14/e3q8)
Unhandled database error while processing event <Event time_changed[L]: now=2021-11-22T10:12:16.002080+02:00>: (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host 'core-mariadb' (-3)") (Background on this error at: https://sqlalche.me/e/14/e3q8)
Unhandled database error while processing event <Event time_changed[L]: now=2021-11-22T10:12:46.002538+02:00>: (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host 'core-mariadb' (-3)") (Background on this error at: https://sqlalche.me/e/14/e3q8)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3212, in _wrap_pool_connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 307, in connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 767, in _checkout
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 430, in checkout
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 427, in checkout
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 580, in get_connection
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 611, in __connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 605, in __connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 578, in connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 584, in connect
File "/usr/local/lib/python3.9/site-packages/MySQLdb/__init__.py", line 130, in Connect
File "/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py", line 185, in __init__
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to MySQL server on 'core-mariadb' (115)")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 697, in _process_one_event_or_recover
File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 830, in _process_one_event
File "/usr/src/homeassistant/homeassistant/components/recorder/__init__.py", line 969, in _send_keep_alive
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1519, in connection
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1529, in _connection_for_bind
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 747, in _connection_for_bind
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3166, in connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 96, in __init__
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3245, in raw_connection
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3215, in _wrap_pool_connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2069, in _handle_dbapi_exception_noconnection
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 3212, in _wrap_pool_connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 307, in connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 767, in _checkout
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 430, in checkout
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 427, in checkout
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 580, in get_connection
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 611, in __connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 605, in __connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 578, in connect
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 584, in connect
File "/usr/local/lib/python3.9/site-packages/MySQLdb/__init__.py", line 130, in Connect
File "/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py", line 185, in __init__
sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (2002, "Can't connect to MySQL server on 'core-mariadb' (115)")
(Background on this error at: https://sqlalche.me/e/14/e3q8)
Seems some kinda database errors but do anybody have knowledge what is going on and how to fix this?