Invalid config - The following integrations and platforms could not be set up

I have tried to add the lines indicated here. Restart the HA VM completely. Upgrade HA. The error persists, I leave the log file for your review.

# Configuration Stores and manages historical data in Home Assistant
recorder:

# Enabling detailed logging for the Recorder component in Home Assistant
logger:
  default: info
  logs:
    homeassistant.components.recorder: debug

2024-11-10 06:27:22.027 INFO (MainThread) [homeassistant.setup] Setting up camera
2024-11-10 06:27:22.031 INFO (MainThread) [homeassistant.setup] Setup of domain camera took 0.00 seconds
2024-11-10 06:27:22.033 INFO (MainThread) [homeassistant.setup] Setting up system_health
2024-11-10 06:27:22.035 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.00 seconds
2024-11-10 06:27:22.037 INFO (MainThread) [homeassistant.setup] Setting up input_button
2024-11-10 06:27:22.039 INFO (MainThread) [homeassistant.setup] Setup of domain input_button took 0.00 seconds
2024-11-10 06:27:22.040 INFO (MainThread) [homeassistant.setup] Setting up trace
2024-11-10 06:27:22.040 INFO (MainThread) [homeassistant.setup] Setup of domain trace took 0.00 seconds
2024-11-10 06:27:22.042 INFO (MainThread) [homeassistant.setup] Setting up panel_custom
2024-11-10 06:27:22.042 INFO (MainThread) [homeassistant.setup] Setup of domain panel_custom took 0.00 seconds
2024-11-10 06:27:22.043 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2024-11-10 06:27:22.045 INFO (MainThread) [homeassistant.setup] Setting up media_source
2024-11-10 06:27:22.047 INFO (MainThread) [homeassistant.setup] Setup of domain media_source took 0.00 seconds
2024-11-10 06:27:24.589 INFO (MainThread) [homeassistant.setup] Setting up template
2024-11-10 06:27:24.615 INFO (MainThread) [homeassistant.setup] Setup of domain template took 0.03 seconds
2024-11-10 06:27:24.645 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.670 INFO (MainThread) [homeassistant.setup] Setting up zone
2024-11-10 06:27:24.673 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.00 seconds
2024-11-10 06:27:24.676 INFO (MainThread) [homeassistant.setup] Setting up stream
2024-11-10 06:27:24.677 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'logbook'. Setup failed for dependencies: ['recorder']
2024-11-10 06:27:24.677 ERROR (MainThread) [homeassistant.setup] Setup failed for 'logbook': Could not setup dependencies: recorder
2024-11-10 06:27:24.680 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'edata'. Setup failed for dependencies: ['recorder']
2024-11-10 06:27:24.680 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'edata': Could not setup dependencies: recorder
2024-11-10 06:27:24.682 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'history'. Setup failed for dependencies: ['recorder']
2024-11-10 06:27:24.682 ERROR (MainThread) [homeassistant.setup] Setup failed for 'history': Could not setup dependencies: recorder
2024-11-10 06:27:24.683 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'energy'. Setup failed for dependencies: ['history', 'recorder']
2024-11-10 06:27:24.683 ERROR (MainThread) [homeassistant.setup] Setup failed for 'energy': Could not setup dependencies: history, recorder
2024-11-10 06:27:24.684 INFO (MainThread) [homeassistant.setup] Setting up input_number
2024-11-10 06:27:24.686 INFO (MainThread) [homeassistant.setup] Setting up input_select
2024-11-10 06:27:24.689 INFO (MainThread) [homeassistant.setup] Setting up timer
2024-11-10 06:27:24.693 INFO (MainThread) [homeassistant.setup] Setup of domain timer took 0.00 seconds
2024-11-10 06:27:24.697 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.699 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.700 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.701 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.702 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.703 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.706 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.707 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.751 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 2.71 seconds
2024-11-10 06:27:24.761 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.08 seconds
2024-11-10 06:27:24.770 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 0.08 seconds
2024-11-10 06:27:24.771 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.774 INFO (MainThread) [homeassistant.components.sensor] Setting up time_date.sensor
2024-11-10 06:27:24.777 INFO (MainThread) [homeassistant.setup] Setting up intent
2024-11-10 06:27:24.778 INFO (MainThread) [homeassistant.setup] Setup of domain intent took 0.00 seconds
2024-11-10 06:27:24.780 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.784 INFO (MainThread) [homeassistant.setup] Setting up conversation
2024-11-10 06:27:24.786 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.00 seconds
2024-11-10 06:27:24.789 INFO (MainThread) [homeassistant.setup] Setting up assist_pipeline
2024-11-10 06:27:24.792 INFO (MainThread) [homeassistant.setup] Setup of domain assist_pipeline took 0.00 seconds
2024-11-10 06:27:24.833 INFO (SyncWorker_54) [homeassistant.util.package] Attempting install of cachetools==5.3.0
2024-11-10 06:27:30.487 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 5.81 seconds
2024-11-10 06:27:31.725 INFO (MainThread) [homeassistant.setup] Setting up notify
2024-11-10 06:27:31.726 INFO (MainThread) [homeassistant.components.notify] Setting up notify.smtp
2024-11-10 06:27:31.727 INFO (MainThread) [homeassistant.components.notify] Setting up notify.smtp
2024-11-10 06:27:31.727 INFO (MainThread) [homeassistant.setup] Setting up rest
2024-11-10 06:27:31.727 INFO (MainThread) [homeassistant.setup] Setup of domain rest took 0.00 seconds
2024-11-10 06:27:31.728 INFO (MainThread) [homeassistant.components.notify] Setting up notify.rest
2024-11-10 06:27:31.728 INFO (MainThread) [homeassistant.components.notify] Setting up notify.rest
2024-11-10 06:27:31.729 INFO (MainThread) [homeassistant.components.notify] Setting up notify.rest```

I found on reddit a similar problem, and the solution they provide is:

delete database, restart homeassistant.
If you use the standard database it will be in your configuration directory called something like homeassistant-V2.db. There may also be a couple of temporary files. If you use an external database, remove it from where you put it.
When homeassistant starts up again and sees that there is no database, it will create a new one.

Can this be a good solution?

I also want to add that if I dismiss the notification, and restart the HA virtual machine completely, the error does not reappear. The error is only displayed at the first boot after update 2024.11. is this normal?
image

That isn’t the full log. There should be a lot of DEBUG info for the recorder integration.

I have made

  1. Add the lines indicated here.
  2. Delete database files (in configuration directory something like homeassistant-V2.db and also a couple of temporary files.)
  3. Restart the HA VM completely.
  4. Upgrade HA.

The process worked well, it did not give any error at startup.

I am performing all of this on a copy of my original VM, so I can run whatever tests I want. I never upgrade my original machine without first testing it’s VM clone. Shall we continue testing and I will get you the full log or shall we apply this solution?

# Configuration Stores and manages historical data in Home Assistant
recorder:

If you are happy with losing all your history, sure go with that.

I mean that in my case I have a small history and its loss is not relevant. I could lose it without any problem. You have already helped me a lot, I would never have come this far on my own.
As I have it in VM I have no problem to do the tests and investigations that you consider if you have enough time to accompany me in them. I mean if you want to continue we will learn how to solve it and leave it reflected in the forum for future users who have the same problem since I have not found anything similar here in this forum.
But I leave the choice to you, for me the solution may be to lose the history since I alone can not continue, but if you join me we can continue doing new tests to see where we get! what do you say? :slight_smile:

2024-11-10 06:22:05.846 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.00 seconds
2024-11-10 06:22:05.854 INFO (MainThread) [homeassistant.setup] Setting up frontend
2024-11-10 06:22:05.864 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.01 seconds
2024-11-10 06:22:05.865 INFO (MainThread) [homeassistant.bootstrap] Setting up recorder: {'recorder'}
2024-11-10 06:22:05.869 INFO (MainThread) [homeassistant.components.http] Now listening on port 8223
2024-11-10 06:22:05.870 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.01 seconds
2024-11-10 06:22:05.877 INFO (MainThread) [homeassistant.setup] Setting up recorder
2024-11-10 06:22:05.884 DEBUG (Recorder) [homeassistant.components.recorder.util] The last run ended at: 2024-11-10 05:20:56.598429+00:00 (now: 2024-11-10 05:22:05.884444+00:00)
2024-11-10 06:22:05.884 DEBUG (Recorder) [homeassistant.components.recorder.util] The system was restarted cleanly and passed the basic sanity check
2024-11-10 06:22:05.888 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Created new connection <sqlite3.Connection object at 0x7f5055e4bf10>
2024-11-10 06:22:05.893 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.894 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.894 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:05.894 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.895 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.895 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> reset, transaction already reset
2024-11-10 06:22:05.895 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.897 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.898 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> reset, transaction already reset
2024-11-10 06:22:05.898 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.909 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.909 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:05.910 DEBUG (Recorder) [homeassistant.components.recorder.core] Connected to recorder database
2024-11-10 06:22:05.911 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.918 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.919 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:05.919 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.921 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.921 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:05.923 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:05.927 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:05.927 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:05.928 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:06.118 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:06.118 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:06.120 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:06.130 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> being returned to pool
2024-11-10 06:22:06.130 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> rollback-on-return
2024-11-10 06:22:06.131 DEBUG (Recorder) [homeassistant.components.recorder.pool.RecorderPool] Connection <sqlite3.Connection object at 0x7f5055e4bf10> checked out from pool
2024-11-10 06:22:06.132 DEBUG (Recorder) [homeassistant.components.recorder.migration] Activating event_types manager as all data is migrated
2024-11-10 06:22:06.132 DEBUG (Recorder) [homeassistant.components.recorder.migration] Activating states_meta manager as all data is migrated
2024-11-10 06:22:12.046 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [139983008564272] Received unknown command: supervisor/api
2024-11-10 06:22:12.047 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [139983008564272] Received unknown command: supervisor/api
2024-11-10 06:22:12.136 WARNING (MainThread) [asyncio] socket.send() raised exception.
2024-11-10 06:22:12.138 WARNING (MainThread) [asyncio] socket.send() raised exception.
2024-11-10 06:22:12.266 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [139983008564992] Received unknown command: sensor/numeric_device_classes
2024-11-10 06:22:15.879 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2024-11-10 06:23:05.503 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('recorder', None): 766.408331047}
2024-11-10 06:24:05.612 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('recorder', None): 766.408331047}
2024-11-10 06:25:05.727 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('recorder', None): 766.408331047}
2024-11-10 06:26:05.828 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('recorder', None): 766.408331047}
2024-11-10 06:27:05.878 DEBUG (MainThread) [homeassistant.components.recorder.core] Recorder queue size is: 9
2024-11-10 06:27:05.879 ERROR (MainThread) [homeassistant.setup] Setup of 'recorder' is taking longer than 300 seconds. Startup will proceed without waiting any longer
2024-11-10 06:27:05.879 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 300.00 seconds
2024-11-10 06:27:05.880 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'cloud', 'repairs', 'network', 'zeroconf', 'websocket_api', 'auth', 'dhcp', 'hassio', 'http', 'webhook', 'bluetooth', 'usb', 'ssdp', 'api'}
2024-11-10 06:27:05.881 INFO (MainThread) [homeassistant.setup] Setting up webhook
2024-11-10 06:27:05.882 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.00 seconds
2024-11-10 06:27:05.883 INFO (MainThread) [homeassistant.setup] Setting up network
2024-11-10 06:27:05.903 INFO (MainThread) [homeassistant.setup] Setup of domain network took 0.02 seconds
2024-11-10 06:27:05.904 INFO (MainThread) [homeassistant.setup] Setting up hassio
2024-11-10 06:27:05.937 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('hassio', None): 1066.435614386}
2024-11-10 06:27:07.739 INFO (MainThread) [homeassistant.setup] Setting up cloud
2024-11-10 06:27:07.744 INFO (MainThread) [homeassistant.setup] Setting up ffmpeg
2024-11-10 06:27:07.744 INFO (MainThread) [homeassistant.setup] Setup of domain ffmpeg took 0.00 seconds
2024-11-10 06:27:07.745 INFO (MainThread) [homeassistant.setup] Setting up tts
2024-11-10 06:27:07.746 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.01 seconds
2024-11-10 06:27:07.760 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.01 seconds
2024-11-10 06:27:07.823 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 1.92 seconds
2024-11-10 06:27:07.897 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2024-11-10 06:27:07.898 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.00 seconds
2024-11-10 06:27:07.898 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up hassio.binary_sensor
2024-11-10 06:27:07.901 INFO (MainThread) [homeassistant.setup] Setting up update
2024-11-10 06:27:07.902 INFO (MainThread) [homeassistant.setup] Setup of domain update took 0.00 seconds
2024-11-10 06:27:07.903 INFO (MainThread) [homeassistant.components.update] Setting up hassio.update
2024-11-10 06:27:07.921 INFO (MainThread) [homeassistant.setup] Setting up usb
2024-11-10 06:27:07.921 INFO (MainThread) [homeassistant.setup] Setup of domain usb took 0.00 seconds
2024-11-10 06:27:08.103 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2024-11-10 06:27:08.115 INFO (MainThread) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2024-11-10 06:27:08.116 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.01 seconds
2024-11-10 06:27:17.607 INFO (MainThread) [homeassistant.setup] Setting up dhcp
2024-11-10 06:27:17.608 INFO (MainThread) [homeassistant.setup] Setup of domain dhcp took 0.00 seconds
2024-11-10 06:27:18.231 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2024-11-10 06:27:18.240 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.01 seconds
2024-11-10 06:27:18.403 INFO (MainThread) [homeassistant.setup] Setting up sensor
2024-11-10 06:27:18.405 INFO (MainThread) [homeassistant.setup] Setting up blueprint
2024-11-10 06:27:18.405 INFO (MainThread) [homeassistant.setup] Setup of domain blueprint took 0.00 seconds
2024-11-10 06:27:18.406 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.00 seconds
2024-11-10 06:27:18.406 INFO (MainThread) [homeassistant.components.sensor] Setting up hassio.sensor
2024-11-10 06:27:21.375 INFO (MainThread) [homeassistant.setup] Setting up bluetooth
2024-11-10 06:27:22.016 INFO (MainThread) [homeassistant.setup] Setup of domain bluetooth took 0.64 seconds
2024-11-10 06:27:22.017 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'application_credentials', 'system_health', 'dnsip', 'mobile_app', 'balance_neto', 'radio_browser', 'edata', 'analytics', 'ffmpeg', 'pvpc_hourly_pricing', 'battery_notes', 'hacs', 'energy', 'google_translate', 'default_config', 'input_button', 'automation', 'input_number', 'persistent_notification', 'hardware', 'openweathermap', 'device_automation', 'sems', 'cast', 'diagnostics', 'panel_custom', 'ping', 'utility_meter', 'shell_command', 'config', 'command_line', 'shopping_list', 'xiaomi_miio', 'camera', 'go2rtc', 'input_boolean', 'smlight', 'xiaomi_miot', 'conversation', 'notify', 'image_upload', 'counter', 'flux_led', 'sun', 'assist_pipeline', 'homekit', 'file_upload', 'input_datetime', 'met', 'mqtt', 'zha', 'xiaomi_aqara', 'tuya', 'media_source', 'tag', 'wake_word', 'template', 'telegram_bot', 'script', 'speedtestdotnet', 'stt', 'person', 'schedule', 'zone', 'input_text', 'search', 'blueprint', 'tts', 'esphome', 'sensor', 'tasmota', 'trace', 'lovelace', 'forecast_solar', 'scene', 'fully_kiosk', 'intent', 'bluetooth_adapters', 'fastdotcom', 'tuya_climate_mult_edit', 'androidtv_remote', 'workday', 'stream', 'input_select', 'midea_ac_lan', 'logbook', 'history', 'xiaomi_ble', 'backup', 'alarmo', 'timer', 'dlna_dms', 'sonoff', 'onboarding', 'my', 'netatmo', 'co2signal', 'bodymiscale', 'tarifa_20td', 'homeassistant_alerts'}
2024-11-10 06:27:22.019 INFO (MainThread) [homeassistant.setup] Setting up wake_word
2024-11-10 06:27:22.019 INFO (MainThread) [homeassistant.setup] Setup of domain wake_word took 0.00 seconds
2024-11-10 06:27:22.019 INFO (MainThread) [homeassistant.setup] Setting up stt
2024-11-10 06:27:22.021 INFO (MainThread) [homeassistant.setup] Setup of domain stt took 0.00 seconds
2024-11-10 06:27:22.021 INFO (MainThread) [homeassistant.setup] Setting up scene
2024-11-10 06:27:22.024 INFO (MainThread) [homeassistant.components.scene] Setting up homeassistant.scene
2024-11-10 06:27:22.026 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 0.00 seconds
2024-11-10 06:27:22.027 INFO (MainThread) [homeassistant.setup] Setting up camera
2024-11-10 06:27:22.031 INFO (MainThread) [homeassistant.setup] Setup of domain camera took 0.00 seconds
2024-11-10 06:27:22.033 INFO (MainThread) [homeassistant.setup] Setting up system_health
2024-11-10 06:27:22.035 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.00 seconds
2024-11-10 06:27:22.037 INFO (MainThread) [homeassistant.setup] Setting up input_button
2024-11-10 06:27:22.039 INFO (MainThread) [homeassistant.setup] Setup of domain input_button took 0.00 seconds
2024-11-10 06:27:22.040 INFO (MainThread) [homeassistant.setup] Setting up trace
2024-11-10 06:27:22.040 INFO (MainThread) [homeassistant.setup] Setup of domain trace took 0.00 seconds
2024-11-10 06:27:22.042 INFO (MainThread) [homeassistant.setup] Setting up panel_custom
2024-11-10 06:27:22.042 INFO (MainThread) [homeassistant.setup] Setup of domain panel_custom took 0.00 seconds
2024-11-10 06:27:22.043 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2024-11-10 06:27:22.045 INFO (MainThread) [homeassistant.setup] Setting up media_source
2024-11-10 06:27:22.047 INFO (MainThread) [homeassistant.setup] Setup of domain media_source took 0.00 seconds
2024-11-10 06:27:24.589 INFO (MainThread) [homeassistant.setup] Setting up template
2024-11-10 06:27:24.615 INFO (MainThread) [homeassistant.setup] Setup of domain template took 0.03 seconds
2024-11-10 06:27:24.645 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.670 INFO (MainThread) [homeassistant.setup] Setting up zone
2024-11-10 06:27:24.673 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.00 seconds
2024-11-10 06:27:24.676 INFO (MainThread) [homeassistant.setup] Setting up stream
2024-11-10 06:27:24.677 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'logbook'. Setup failed for dependencies: ['recorder']
2024-11-10 06:27:24.677 ERROR (MainThread) [homeassistant.setup] Setup failed for 'logbook': Could not setup dependencies: recorder
2024-11-10 06:27:24.680 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'edata'. Setup failed for dependencies: ['recorder']
2024-11-10 06:27:24.680 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'edata': Could not setup dependencies: recorder
2024-11-10 06:27:24.682 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'history'. Setup failed for dependencies: ['recorder']
2024-11-10 06:27:24.682 ERROR (MainThread) [homeassistant.setup] Setup failed for 'history': Could not setup dependencies: recorder
2024-11-10 06:27:24.683 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'energy'. Setup failed for dependencies: ['history', 'recorder']
2024-11-10 06:27:24.683 ERROR (MainThread) [homeassistant.setup] Setup failed for 'energy': Could not setup dependencies: history, recorder
2024-11-10 06:27:24.684 INFO (MainThread) [homeassistant.setup] Setting up input_number
2024-11-10 06:27:24.686 INFO (MainThread) [homeassistant.setup] Setting up input_select
2024-11-10 06:27:24.689 INFO (MainThread) [homeassistant.setup] Setting up timer
2024-11-10 06:27:24.693 INFO (MainThread) [homeassistant.setup] Setup of domain timer took 0.00 seconds
2024-11-10 06:27:24.697 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.699 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.700 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.701 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.702 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.703 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.706 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.707 INFO (MainThread) [homeassistant.components.sensor] Setting up template.sensor
2024-11-10 06:27:24.751 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 2.71 seconds
2024-11-10 06:27:24.761 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.08 seconds

finally leave it at that?

Leave it at what?

I thought you fixed it by deleting the db?

I fixed it in a clone of my machine HA OS. But not on the real machine HA OS. If the log I sent you tells you something we can continue testing.

I had (and have fixed) the same error.
Note that errors often ‘cascade’ so the primary cause is not always immediately obvious.
In my case, the only errors were deprecated syntax in the [default_config] YAML file, and there were no problems with any of the other sections/items listed in the log message.

For me all I had to do was:

  • Update the trigger: lists in my template sensors to the new syntax (see the HA Template Docs, noting the syntax change is different from that for Automation triggers: lists);
  • Remove (comment out) the deprecated panel_iframe: section of my config;
  • Do a full restart of HA (NOT just a reload of the YAML).

So you might also be able to resolve your problem by updating your config for recent syntax/feature changes (and deprecated sections of old YAML).