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
74.02k stars 31.06k forks source link

Something is blocking Home Assistant from wrapping up the start up phase #85552

Closed gorodilov closed 1 year ago

gorodilov commented 1 year ago

The problem

2023-01-09 21:49:55.311 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: auth, light.tuya, sun, device_automation, file_upload, alarm_control_panel.tuya, onboarding, utility_meter, notify.mobile_app, vacuum.mqtt, tuya, button.tuya, analytics, ffmpeg, repairs, sensor.min_max, schedule, persistent_notification, camera, binary_sensor.mqtt, media_player.samsungtv, scene, sensor.energy, dhcp, network, scene.tuya, config, vacuum.tuya, sensor.template, switch.tuya, blueprint, system_health, select.yandex_station, dlna_dms, sensor.utility_meter, device_tracker.tomato, fan.mqtt, sensor.tuya, cloud, application_credentials, template, energy, lock.mqtt, image, light.xiaomi_miio_philipslight, climate.mqtt, mobile_app, binary_sensor.mobile_app, siren.mqtt, cast, counter, hacs, media_player.dlna_dmr, input_select, humidifier, logger, logbook, button.mqtt, number.tuya, input_boolean, homeassistant, select, webhook, dlna_dmr, notify, camera.mqtt, alarm_control_panel.mqtt, text, bluetooth, input_datetime, climate.tuya, zeroconf, binary_sensor.random, sensor.mqtt, vacuum, update, automation, stream, recorder, input_button, update.mqtt, climate, timer, alarm_control_panel, device_tracker.mobile_app, map, lovelace, modbus, media_source, fan.tuya, number, binary_sensor, input_number, media_player, scene.homeassistant, websocket_api, scene.mqtt, button, switch.mqtt, diagnostics, humidifier.mqtt, zone, homeassistant_alerts, light, lock, sensor.random, history, default_config, siren, usb, camera.tuya, yandex_smart_home, light.mqtt, humidifier.tuya, system_log, script, mqtt, switch, api, samsungtv, frontend, cover, ssdp, cover.mqtt, siren.tuya, device_tracker, sensor.mobile_app, number.mqtt, select.mqtt, http, media_player.yandex_station, search, sensor, fan, person, tag, my, input_text, prometheus, media_player.cast, text.mqtt, binary_sensor.tuya, backup, cover.tuya, select.tuya, yandex_station, trace, sensor.hacs, sensor.modbus, hardware, device_tracker.mqtt

What version of Home Assistant Core has the issue?

2022.12.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

do not know

Link to integration documentation on our website

No response

Diagnostics information

2023-01-09 21:44:19.148 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 21:44:19.153 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration yandex_smart_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 21:44:19.157 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration yandex_station which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 21:44:19.159 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_miio_philipslight which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 21:44:21.732 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly 2023-01-09 21:44:21.816 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=85 from 2022-12-23 13:02:31.451221) 2023-01-09 21:44:36.302 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform mqtt does not generate unique IDs. ID ESPbinary_sensorbutton_6 already exists - ignoring binary_sensor.button_6 2023-01-09 21:49:40.304 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for bootstrap - moving forward 2023-01-09 21:49:55.311 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: auth, light.tuya, sun, device_automation, file_upload, alarm_control_panel.tuya, onboarding, utility_meter, notify.mobile_app, vacuum.mqtt, tuya, button.tuya, analytics, ffmpeg, repairs, sensor.min_max, schedule, persistent_notification, camera, binary_sensor.mqtt, media_player.samsungtv, scene, sensor.energy, dhcp, network, scene.tuya, config, vacuum.tuya, sensor.template, switch.tuya, blueprint, system_health, select.yandex_station, dlna_dms, sensor.utility_meter, device_tracker.tomato, fan.mqtt, sensor.tuya, cloud, application_credentials, template, energy, lock.mqtt, image, light.xiaomi_miio_philipslight, climate.mqtt, mobile_app, binary_sensor.mobile_app, siren.mqtt, cast, counter, hacs, media_player.dlna_dmr, input_select, humidifier, logger, logbook, button.mqtt, number.tuya, input_boolean, homeassistant, select, webhook, dlna_dmr, notify, camera.mqtt, alarm_control_panel.mqtt, text, bluetooth, input_datetime, climate.tuya, zeroconf, binary_sensor.random, sensor.mqtt, vacuum, update, automation, stream, recorder, input_button, update.mqtt, climate, timer, alarm_control_panel, device_tracker.mobile_app, map, lovelace, modbus, media_source, fan.tuya, number, binary_sensor, input_number, media_player, scene.homeassistant, websocket_api, scene.mqtt, button, switch.mqtt, diagnostics, humidifier.mqtt, zone, homeassistant_alerts, light, lock, sensor.random, history, default_config, siren, usb, camera.tuya, yandex_smart_home, light.mqtt, humidifier.tuya, system_log, script, mqtt, switch, api, samsungtv, frontend, cover, ssdp, cover.mqtt, siren.tuya, device_tracker, sensor.mobile_app, number.mqtt, select.mqtt, http, media_player.yandex_station, search, sensor, fan, person, tag, my, input_text, prometheus, media_player.cast, text.mqtt, binary_sensor.tuya, backup, cover.tuya, select.tuya, yandex_station, trace, sensor.hacs, sensor.modbus, hardware, device_tracker.mqtt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

previous log ens with:

2023-01-09 07:01:42.161 WARNING (Thread-10) [pychromecast.socket_client] [Bedroom TV(192.168.2.10):8009] Heartbeat timeout, resetting connection
2023-01-09 07:02:12.198 ERROR (Thread-10) [pychromecast.socket_client] [Bedroom TV(192.168.2.10):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.10', 8009)), retrying in 5.0s
2023-01-09 07:02:25.426 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 07:02:55.462 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 07:22:19.897 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1
2023-01-09 08:15:40.016 ERROR (MainThread) [custom_components.hacs] <Integration Kraineff/minecraft-version> GitHub returned 404 for https://api.github.com/repos/Kraineff/minecraft-version
2023-01-09 09:15:12.923 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 09:15:42.958 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 09:20:43.626 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 09:21:13.658 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 11:06:46.166 WARNING (Thread-10) [pychromecast.socket_client] [Bedroom TV(192.168.2.10):8009] Heartbeat timeout, resetting connection
2023-01-09 11:07:16.206 ERROR (Thread-10) [pychromecast.socket_client] [Bedroom TV(192.168.2.10):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.10', 8009)), retrying in 5.0s
2023-01-09 11:45:12.051 WARNING (MainThread) [homeassistant.components.automation.floor3_start_heating] Floor3 start heating: Already running
2023-01-09 11:45:18.686 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1
2023-01-09 11:45:19.908 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1
2023-01-09 13:03:54.455 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1
2023-01-09 14:04:18.748 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 14:04:48.762 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 14:09:51.632 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 14:10:21.662 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 14:15:54.072 WARNING (MainThread) [homeassistant.components.automation.floor3_start_heating] Floor3 start heating: Already running
2023-01-09 18:36:15.776 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 18:36:45.968 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 18:55:38.877 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 18:55:49.146 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 19:01:09.498 WARNING (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Heartbeat timeout, resetting connection
2023-01-09 19:01:39.530 ERROR (Thread-8) [pychromecast.socket_client] [KIVI 2K Android TV(192.168.2.30):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.30', 8009)), retrying in 5.0s
2023-01-09 20:31:48.810 WARNING (Thread-10) [pychromecast.socket_client] [Bedroom TV(192.168.2.10):8009] Heartbeat timeout, resetting connection
2023-01-09 20:32:18.850 ERROR (Thread-10) [pychromecast.socket_client] [Bedroom TV(192.168.2.10):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.2.10', 8009)), retrying in 5.0s
2023-01-09 21:09:00.488 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Error sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1: ClientConnectorError(ConnectionKey(host='mobile-apps.home-assistant.io', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=2883716373387761747), gaierror(-3, 'Try again'))
2023-01-09 21:17:17.660 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_websocket.py", line 676, in ping
    await self._send_frame(message, WSMsgType.PING)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_websocket.py", line 646, in _send_frame
    self._write(header + mask + message)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_websocket.py", line 663, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
2023-01-09 21:17:24.434 WARNING (Thread-3 (_thread_main)) [homeassistant.components.mqtt.client] Disconnected from MQTT server 192.168.2.112:1883 (7)
s6-rc: info: service legacy-services: stopping
Exception ignored when trying to write to the signal wakeup fd:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/unix_events.py", line 42, in _sighandler_noop
    def _sighandler_noop(signum, frame):
BlockingIOError: [Errno 11] Resource temporarily unavailable
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started

Additional information

almost every restart is frozen memory is always increasing. have to restart when it comes to 4Gb

gorodilov commented 1 year ago

updated to the last version 2023.1.2 the same problem:

2023-01-09 22:12:01.763 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for bootstrap - moving forward 2023-01-09 22:12:16.768 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: select.tuya, binary_sensor, system_health, script, media_source, logbook, search, dlna_dmr, alarm_control_panel.tuya, media_player.samsungtv, diagnostics, fan.tuya, image_upload, lock, sensor.energy, text, binary_sensor.mqtt, media_player, map, number.tuya, backup, tuya, input_number, sensor.random, persistent_notification, alarm_control_panel, sensor.template, switch.tuya, vacuum.tuya, siren.mqtt, number.mqtt, sensor, zone, device_tracker.tomato, input_datetime, zeroconf, yandex_smart_home, input_text, config, bluetooth, prometheus, ssdp, analytics, switch.mqtt, hacs, button.tuya, stream, humidifier, climate, scene, ffmpeg, input_boolean, onboarding, utility_meter, select.mqtt, camera.mqtt, cast, sensor.mqtt, fan, sensor.hacs, network, humidifier.tuya, cover, text.mqtt, climate.mqtt, hardware, automation, history, frontend, humidifier.mqtt, dlna_dms, binary_sensor.random, sensor.utility_meter, counter, samsungtv, dhcp, siren, notify, homeassistant, update, api, cover.tuya, fan.mqtt, light.tuya, trace, notify.mobile_app, light.mqtt, webhook, media_player.cast, button, modbus, button.mqtt, alarm_control_panel.mqtt, binary_sensor.tuya, switch, usb, homeassistant_alerts, camera, device_automation, device_tracker.mqtt, sensor.tuya, camera.tuya, light, scene.mqtt, vacuum, lovelace, websocket_api, cover.mqtt, media_player.dlna_dmr, repairs, timer, lock.mqtt, logger, scene.tuya, blueprint, vacuum.mqtt, system_log, application_credentials, http, sensor.min_max, sensor.modbus, sensor.mobile_app, select.yandex_station, media_player.yandex_station, my, cloud, number, select, device_tracker.mobile_app, auth, scene.homeassistant, person, file_upload, mqtt, default_config, schedule, input_button, template, input_select, recorder, light.xiaomi_miio_philipslight, siren.tuya, binary_sensor.mobile_app, energy, climate.tuya, yandex_station, update.mqtt, device_tracker, mobile_app, tag, sun 2023-01-09 22:14:21.221 WARNING (MainThread) [homeassistant.core] Timed out waiting for shutdown stage 1 to complete, the shutdown will continue Found 2 non-daemonic threads. [22:14:33] INFO: Home Assistant Core finish process exit code 100 2023-01-09 22:14:38.281 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 22:14:38.283 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration yandex_smart_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 22:14:38.284 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration yandex_station which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-09 22:14:38.284 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration xiaomi_miio_philipslight which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

hcjehg commented 1 year ago

Are you running ffmpeg version 6 ? If so, ha-av does not support ffmpeg6 yet. I have downgraded ffmpeg to 5.1 and it works again...

issue-triage-workflows[bot] commented 1 year 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.