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
71.07k stars 29.73k forks source link

Startup takes several minutes #89076

Closed olgru closed 1 year ago

olgru commented 1 year ago

The problem

When the imap integration is set up Home Assistant will never finish starting up.

What version of Home Assistant Core has the issue?

2023.3.1

What was the last working version of Home Assistant Core?

2023.2.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

2023-03-03 06:41:49.504 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: switch.mqtt, sensor.anniversaries, light, alarm_control_panel, repairs, dhcp, update.mqtt, switch.synology_dsm, image_upload, apcupsd, api, binary_sensor.alexa_media, cover.mqtt, sensor.coinbase, button.fritz, system_log, device_tracker.ping, camera, sensor.uptime, ping, homeassistant_hardware, scene.homeassistant, sensor.nextcloud, binary_sensor.nextcloud, button.synology_dsm, siren, binary_sensor.mobile_app, switch.fritz, switch.circadian_lighting, cast, sensor.sql, binary_sensor.proxmoxve, device_tracker, alarm_control_panel.alexa_media, timer, notify.signal_messenger, input_button, profiler, alexa, tts.cloud, sensor.pi_hole, sensor.forecast_solar, diagnostics, bluetooth, unifi, climate.fritzbox, light.mqtt, nextcloud, fritzbox_callmonitor, binary_sensor.cloud, system_health, auth, sensor.fritz, camera.synology_dsm, cover, logbook, search, humidifier, media_player.cast, binary_sensor.fritzbox, utility_meter, weather.met, default_config, update, lovelace, saver, binary_sensor.apcupsd, blitzortung, fan.mqtt, lock.mqtt, input_number, sensor.ipp, binary_sensor.workday, network, camera.mqtt, cloud, switch.fritzbox, number.mqtt, vacuum.mqtt, ssdp, sensor.teamtracker, text, cert_expiry, notify, sensor.fritzbox_callmonitor, sensor.minecraft_server, sensor.hacs, input_text, input_boolean, switch.unifi, update.pi_hole, sensor.imap, binary_sensor.tankerkoenig, sensor.hochwasserportal, climate.mqtt, calendar, sensor.fritzbox, sensor.template, trace, sensor.apcupsd, media_player.alexa_media, binary_sensor.pi_hole, device_automation, group, mqtt, person, fritz, minecraft_server, hacs, sensor.mobile_app, camera.esphome, binary_sensor.fritz, kodi, stream, whois, sql, scene, vacuum, google_assistant, moon, analytics, circadian_lighting, sensor.synology_dsm, otbr, coinbase, sensor.dwd_weather_warnings, energy, webhook, sensor.mqtt, siren.mqtt, sensor.blitzortung, binary_sensor.synology_dsm, device_tracker.mqtt, input_select, sensor.powercalc, fritzbox, automation, script, binary_sensor.minecraft_server, media_player.kodi, esphome, template, geo_location, my, sensor.time_date, history, light.alexa_media, tag, climate, binary_sensor.template, teamtracker, hardware, sensor.coronavirus, device_tracker.unifi, adaptive_lighting, switch.alexa_media, text.mqtt, switch.pi_hole, powercalc, usb, update.hassio, geo_location.blitzortung, device_tracker.mobile_app, uptime, schedule, config, sensor.hassio, media_player, sensor.alexa_media, logger, humidifier.mqtt, ipp, cover.fritzbox, scene.mqtt, switch.adaptive_lighting, select, coronavirus, http, forecast_solar, update.unifi, proxmoxve, notify.mobile_app, sensor.energy, counter, input_datetime, pi_hole, number, binary_sensor.nina, sensor.whois, co2signal, recorder, onboarding, sensor.co2signal, binary_sensor.mqtt, alexa_media, weather, button.mqtt, switch_as_x, zone, synology_dsm, sensor.nfl, thread, file_upload, sensor.speedtestdotnet, select.mqtt, fan, tankerkoenig, speedtestdotnet, lock, conversation, homeassistant_alerts, switch, button, frontend, sensor.moon, sensor.circadian_lighting, homeassistant_sky_connect, homeassistant, sensor.dwd_pollenflug, sun, met, nina, nfl, alert, map, light.switch_as_x, sensor.tankerkoenig, media_source, device_tracker.fritz, stt, tts, anniversaries, notify.alexa_media, application_credentials, zeroconf, light.fritzbox, mobile_app, update.fritz, websocket_api, calendar.caldav, binary_sensor.hassio, button.fritzbox, persistent_notification, sensor, sensor.unifi, blueprint, imap, hassio, alarm_control_panel.mqtt, binary_sensor, dwd_pollenflug, update.synology_dsm, tts.google_translate

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

donkawechico commented 1 year ago

Probably a duplicate of / related to: https://github.com/home-assistant/core/issues/87648

olgru commented 1 year ago

Maybe - I checked creds of accounts for integrations to ensure that these are not timing out, but this seems to be ok.

antro31 commented 1 year ago

Same here. Having noticed a looooong startup time for HA. Removing IMAP integration, startup time came to 'as usual startup time'. Thus above mentionned errored appeared also. Note: I am using IMAP, but not with GMail (actually, it is imap.free.fr)

jbouwh commented 1 year ago

I confirm there is a problem with the imap integration

home-assistant[bot] commented 1 year ago

Hey there @engrbm87, mind taking a look at this issue as it has been labeled with an integration (imap) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `imap` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign imap` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


imap documentation imap source (message by IssueLinks)

bkbilly commented 1 year ago

With the latest Home Assistant 2023.3.5 the problem is fixed.

olgru commented 1 year ago

Sounds great! Many thanks for all this great work!