Closed Sticky12 closed 1 year ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
recorder documentation recorder source (message by IssueLinks)
Seems to be related with the fact that HA can't reach the db
Yes. I have restarted the MariaDB add-on and now Home Assistant can restart normally again.
Good to hear! For next time, please use the support channels for this :)
I still believe it is Home Assistant that somehow must have locked the tables at 13.15.
The fact that the logs also indicate that this is because of a service in the addon, makes me believe its something else
The problem
Sometimes when restarting Home Assistant I get the message: Setup of recorder is taking longer than 300 seconds. Startup will proceed without waiting any longer and the following integrations will fail to start: Unable to set up dependencies of filter. Setup failed for dependencies: recorder Unable to set up dependencies of history. Setup failed for dependencies: recorder Unable to set up dependencies of logbook. Setup failed for dependencies: recorder Unable to set up dependencies of energy. Setup failed for dependencies: history, recorder Unable to set up dependencies of default_config. Setup failed for dependencies: energy, history, logbook
In this case I was restarting after installing an update through HACS and addinig a group in my groups.yaml file, both seems to work after restart, so does not seem to be related.
I was restarting through the Settings page.
I tried restarting shortly after, and the same thing happened again. I assume it is related to the MariaDB being locked for some reason.
What version of Home Assistant Core has the issue?
core-2023.10.3
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
recorder
Link to integration documentation on our website
https://www.home-assistant.io/integrations/recorder/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
I am using MariaDB through Add-On version 2.6.1
Here is log information from MariaDB
[13:15:18] INFO: Start MariaDB client (to lock tables for backups) s6-rc: info: service mariadb-lock-core successfully started s6-rc: info: service mariadb-lock-post: starting [13:15:18] INFO: MariaDB tables locked s6-rc: info: service mariadb-lock-post successfully started s6-rc: info: service mariadb-lock-post: stopping [16:31:15] INFO: MariaDB tables unlocked s6-rc: info: service mariadb-lock-post successfully stopped s6-rc: info: service mariadb-lock-core: stopping [16:31:15] INFO: MariaDB client (to lock tables for backups) stopped s6-rc: info: service mariadb-lock-core successfully stopped s6-rc: info: service mariadb-lock-core: starting [13:15:15] INFO: Start MariaDB client (to lock tables for backups) s6-rc: info: service mariadb-lock-core successfully started s6-rc: info: service mariadb-lock-post: starting [13:15:15] INFO: MariaDB tables locked s6-rc: info: service mariadb-lock-post successfully started 2023-10-20 14:39:05 25 [Warning] Aborted connection 25 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 14:39:05 26 [Warning] Aborted connection 26 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 14:39:05 24 [Warning] Aborted connection 24 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 14:39:05 27 [Warning] Aborted connection 27 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 14:39:06 28 [Warning] Aborted connection 28 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got timeout reading communication packets) 2023-10-20 15:24:41 36 [Warning] Aborted connection 36 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 15:24:41 35 [Warning] Aborted connection 35 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 15:24:41 34 [Warning] Aborted connection 34 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 15:24:41 32 [Warning] Aborted connection 32 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 15:24:41 33 [Warning] Aborted connection 33 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got an error reading communication packets) 2023-10-20 15:24:41 31 [Warning] Aborted connection 31 to db: 'homeassistant' user: 'homeassistant' host: '172.30.32.1' (Got timeout reading communication packets)