I just upgraded from 0.109.X, to 0.115.2, and hit this also:
sudo systemctl start home-assistant@homeassistant; ./hass-logs.sh
(snip)
Sep 20 15:13:06 hass systemd[1]: Started Home Assistant.
Sep 20 15:13:15 hass hass[14746]: 2020-09-20 15:13:15 WARNING (MainThread) [homeassistant.components.http] The 'base_url' option is deprecated, please remove it from your configuration
Sep 20 15:13:25 hass hass[14746]: 2020-09-20 15:13:25 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
Sep 20 15:14:10 hass hass[14746]: 2020-09-20 15:14:10 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
Sep 20 15:15:10 hass hass[14746]: 2020-09-20 15:15:10 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
Sep 20 15:15:10 hass hass[14746]: 2020-09-20 15:15:10 WARNING (Recorder) [homeassistant.components.recorder.migration] Database is about to upgrade. Schema version: 7
Sep 20 15:15:10 hass hass[14746]: 2020-09-20 15:15:10 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding columns context_parent_id to table events. Note: this can take several minutes on large databases and slow computers. Please be patient!
Sep 20 15:15:10 hass hass[14746]: 2020-09-20 15:15:10 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding columns old_state_id to table states. Note: this can take several minutes on large databases and slow computers. Please be patient!
Sep 20 15:15:10 hass hass[14746]: 2020-09-20 15:15:10 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_events_context_parent_id` to database. Note: this can take several minutes on large databases and slow computers. Please be patient!
Sep 20 15:16:12 hass hass[14746]: 2020-09-20 15:16:12 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
Sep 20 15:17:06 hass hass[14746]: 2020-09-20 15:17:06 WARNING (Recorder) [homeassistant.components.recorder.migration] Adding index `ix_events_event_type_time_fired` to database. Note: this can take several minutes on large databases and slow computers. Please be patient!
Sep 20 15:17:12 hass hass[14746]: 2020-09-20 15:17:12 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
Sep 20 15:18:12 hass hass[14746]: 2020-09-20 15:18:12 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
(homeassistant) homeassistant@hass:~/.homeassistant$ ls -ahl | grep db
-rw-r--r-- 1 homeassistant homeassistant 925M Sep 20 15:18 home-assistant_v2.db
I can confirm I/O on the system is pegged during this operation.
Subsequent logs are coming during startup but very very slow.
Eventually hass started (though the new system defaulting to only warning/error logs I wasn’t sure when it actually finished…)
Subsequent restarts STILL show
Sep 20 15:51:39 hass hass[16181]: 2020-09-20 15:51:39 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
Sep 20 15:52:29 hass hass[16181]: 2020-09-20 15:52:29 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: recorder
...
So what is the expectation here? Are we supposed to be running some sort of DB prune periodically? Will this startup time take this long every time from now on? (!)