Long Reboot Cycle / Failed SSL Handshake

Over the past few months HA seems to be taking much longer (often 10-15 min) to restart & often goes through a restart, then the UI becomes available, then it’s back to being not available & I can wait or refresh over & over.

What might be the issue?

We’re not mind readers.

At the very least, tell us:

  • what hardware you’re running it on
  • if HA is running off an SD card
  • what Integrations you have installed
  • what installation type of HA (eg. HAOS and which version)
  • if there’s anything in the logs (look up how to get the previous logs after a restart)

Read this first. It’s pinned at the top of the forum for a reason. How to help us help you - or How to ask a good question - #3

Im running HAOS in a raspberry pi 4.

I have a litney of integrations (none new)

Not im getting Unable to connect (failed to perform SSL Handshake)

Right now i can’t get to the logs.

10-15 minutes is way too long for a pi4. There is something wrong.

As well as checking the logs, go to Settings → System → Repairs. Make sure there are none. Then also click on the three dots icon in the upper right of the Repairs page and select “Integration Startup Time”.

Take a screenshot and post it here.

There have been a lot of improvements that should be available in next weeks release. My start up time has more than halved (70 sec → 30 sec) and there is still room for improvement with one integration that has a known issue blocking the start up.

1 Like

Thank you.

Unfortunately I can’t access the logs right now. I checked for repairs just the other day & there weren’t any.

Right now, this is what I’m getting.

On the mobile app I get

Unable to connect to Home Assistant
Encountered Error: Failed to perform SSL handshake, please ensure your certificate is Valid.

As of this morning I just formatted my SSD, reinstalled the raspberry PI software for Home Assistant, & downloaded a backup from a few days ago from Google Drive. I reinstalled HA with the backup & it was successful.

Unfortunately, within a min or so, It is back down & being unresponsive. If I try to navigate anywhere, I just get the spinning blue circle.

Any help would be greatly appreciated.

UPDATE
I went through the process again and did NOT restore fron Google Drive. Thus far the stock version is working.

Is there a way to bring over parts of the backup until i find out whats broken in the backup?

Yes. The backup is just a compressed archive file. You will find all your YAML files in there.

Thank you. Is there any suggested way to find the issue?

Log files are a good start.

I guess I’m a little bit lost. If I upload the back up I don’t have time to get to the logs to see what may be wrong before the HA instance locks up. I’m trying to see if I can bring over just scenes, or the dashboards, etc. to see what particular thing is causing the issue. – Sorry I’m still learning.

You can access the log file at /config/home-assistant.log it’s a text file.

The log from before a restart is at /config/home-assistant.log.1

Any idea how I would access that directory when uploading the backup locks up the HA instance?

If you have the Samba share Addon installed, you should be able to access all your files (including log files), even if the frontend is unavailable.

If you know which internal IP is assigned to your HA server, then when it’s unavailable you could try to connect directly to it, as follows:

1 Like

Thank you for that information. Because it was locking up continually, i had to format my sdd and reinstall HAOS and only have the google drive backup. Can Samba share recognize it and allow me to pull over things like scripts, scenes, and automations?

No, Samba share connects directly to the server over a local connection, so you need at least the observer to be running to connect (setting it up still requires the front-end).

However, once you have it set up, you can use it to replace corrupted files which are extracted and unpacked from the google drive backup in case of an emergency.

Thank you very much for the info. How do you unpack the files from the Google Drive backup (vs letting HA do a full restore)?

It’s pretty much the same as you would for any other compressed file. You just need to unzip it using whatever program (Winzip, 7zip, etc.) you have available.

I was able to install Samba Share from a clean install of HAOS. I tried to restore from the Google Drive Backup and it’s been over an hour with
image

If I try to open it in another window/tab I get
image

I do have access through Samba Share to home-assistant.log from today (April 14th 2024) at 4:04 PM - so as of now it’s been trying to load for an additional 30+ min with no luck.

Could someone look at the log & help me find the issue(s)?

Feeling very lost.

Thanks,

If the log isn’t too large, paste it here using the code tags. Otherwise, use something like pastebin.

Make sure you hide any sensitive information like external IPs (internal ones are fine).

Is the observer giving you 3 check marks?

Thank you - see below. I’m not sure what you mean by the observer? Happy to look just don’t know where to look.

Log Pt 1

2024-04-15 06:57:06.169 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ble_monitor 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
2024-04-15 06:57:06.171 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration bambu_lab 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
2024-04-15 06:57:06.172 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration myicomfort 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
2024-04-15 06:57:06.174 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration scheduler 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
2024-04-15 06:57:06.176 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration samsungtv_smart 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
2024-04-15 06:57:06.180 WARNING (SyncWorker_1) [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
2024-04-15 06:57:06.182 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration webrtc 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
2024-04-15 06:57:06.184 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration watchman 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
2024-04-15 06:57:06.186 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration alexa_media 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
2024-04-15 06:57:06.926 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event logging_changed[L]>
2024-04-15 06:57:06.927 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logger, service=set_default_level>
2024-04-15 06:57:06.927 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logger, service=set_level>
2024-04-15 06:57:06.927 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds
2024-04-15 06:57:07.167 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=system_log>
2024-04-15 06:57:07.167 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logger>
2024-04-15 06:57:07.167 INFO (MainThread) [homeassistant.bootstrap] Setting up frontend: {'frontend'}
2024-04-15 06:57:07.199 INFO (MainThread) [homeassistant.setup] Setting up device_automation
2024-04-15 06:57:07.199 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.0 seconds
2024-04-15 06:57:07.203 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2024-04-15 06:57:07.204 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:07.207 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=device_automation>
2024-04-15 06:57:07.213 INFO (MainThread) [homeassistant.setup] Setting up http
2024-04-15 06:57:07.220 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds
2024-04-15 06:57:07.221 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=lovelace>
2024-04-15 06:57:07.262 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds
2024-04-15 06:57:07.262 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
2024-04-15 06:57:07.268 INFO (MainThread) [homeassistant.setup] Setting up auth
2024-04-15 06:57:07.270 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds
2024-04-15 06:57:07.276 INFO (MainThread) [homeassistant.setup] Setting up config
2024-04-15 06:57:07.277 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:07.286 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.area_registry>
2024-04-15 06:57:07.292 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.auth>
2024-04-15 06:57:07.301 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.auth_provider_homeassistant>
2024-04-15 06:57:07.437 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.automation>
2024-04-15 06:57:07.457 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.config_entries>
2024-04-15 06:57:07.469 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.core>
2024-04-15 06:57:07.473 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.device_registry>
2024-04-15 06:57:07.479 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.entity_registry>
2024-04-15 06:57:07.485 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.floor_registry>
2024-04-15 06:57:07.490 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.label_registry>
2024-04-15 06:57:07.519 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.script>
2024-04-15 06:57:07.523 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.scene>
2024-04-15 06:57:07.523 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.2 seconds
2024-04-15 06:57:07.536 INFO (MainThread) [homeassistant.setup] Setting up diagnostics
2024-04-15 06:57:07.543 INFO (MainThread) [homeassistant.setup] Setup of domain diagnostics took 0.0 seconds
2024-04-15 06:57:07.556 INFO (MainThread) [homeassistant.setup] Setting up repairs
2024-04-15 06:57:07.558 INFO (MainThread) [homeassistant.setup] Setup of domain repairs took 0.0 seconds
2024-04-15 06:57:07.560 INFO (MainThread) [homeassistant.setup] Setting up api
2024-04-15 06:57:07.565 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds
2024-04-15 06:57:07.565 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=auth>
2024-04-15 06:57:07.566 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config>
2024-04-15 06:57:07.566 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=diagnostics>
2024-04-15 06:57:07.566 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=repairs>
2024-04-15 06:57:07.566 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
2024-04-15 06:57:07.593 INFO (MainThread) [homeassistant.setup] Setting up file_upload
2024-04-15 06:57:07.595 INFO (MainThread) [homeassistant.setup] Setup of domain file_upload took 0.0 seconds
2024-04-15 06:57:07.599 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2024-04-15 06:57:07.600 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds
2024-04-15 06:57:07.600 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=file_upload>
2024-04-15 06:57:07.728 INFO (MainThread) [homeassistant.setup] Setting up image_upload
2024-04-15 06:57:07.729 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
2024-04-15 06:57:07.774 INFO (MainThread) [homeassistant.setup] Setting up search
2024-04-15 06:57:07.774 INFO (MainThread) [homeassistant.setup] Setup of domain search took 0.0 seconds
2024-04-15 06:57:07.776 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=search>
2024-04-15 06:57:07.783 INFO (MainThread) [homeassistant.setup] Setup of domain image_upload took 0.1 seconds
2024-04-15 06:57:07.783 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=image_upload>
2024-04-15 06:57:07.790 INFO (MainThread) [homeassistant.setup] Setting up person
2024-04-15 06:57:07.797 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=person.justin, old_state=None, new_state=<state person.justin=home; editable=True, id=justin, latitude=37.0456284, longitude=-79.7054704, gps_accuracy=100, source=person.justin, user_id=0c64adadf924473aadf593bd6852400f, device_trackers=['device_tracker.sm_s928ujk'], entity_picture=/api/image/serve/f20c07aa6431dc6b8a416219daf52de6/512x512, friendly_name=Justin @ 2024-04-15T06:57:07.797652-04:00>>
2024-04-15 06:57:07.801 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=person.carrie, old_state=None, new_state=<state person.carrie=unknown; editable=True, id=carrie, source=person.carrie, user_id=809fc24f0cef4a3e8de77d78625234b9, device_trackers=['device_tracker.sm_s928u'], entity_picture=/api/image/serve/1b7e36ebbf58c3100e4e7ac839a8cebb/512x512, friendly_name=Carrie @ 2024-04-15T06:57:07.801223-04:00>>
2024-04-15 06:57:07.804 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=person, service=reload>
2024-04-15 06:57:07.804 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.0 seconds
2024-04-15 06:57:07.804 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=person>
2024-04-15 06:57:09.545 INFO (MainThread) [homeassistant.setup] Setting up analytics
2024-04-15 06:57:09.548 INFO (MainThread) [homeassistant.setup] Setup of domain analytics took 0.0 seconds
2024-04-15 06:57:09.549 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=analytics>
2024-04-15 06:57:09.554 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2024-04-15 06:57:09.556 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds
2024-04-15 06:57:09.557 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=onboarding>
2024-04-15 06:57:09.561 INFO (MainThread) [homeassistant.setup] Setting up frontend
2024-04-15 06:57:09.573 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.573 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.576 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=frontend, service=set_theme>
2024-04-15 06:57:09.576 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=frontend, service=reload_themes>
2024-04-15 06:57:09.576 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds
2024-04-15 06:57:09.577 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
2024-04-15 06:57:09.580 INFO (MainThread) [homeassistant.bootstrap] Setting up recorder: {'recorder'}
2024-04-15 06:57:09.584 INFO (MainThread) [homeassistant.setup] Setting up recorder
2024-04-15 06:57:09.586 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=recorder, service=purge>
2024-04-15 06:57:09.586 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=recorder, service=purge_entities>
2024-04-15 06:57:09.587 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=recorder, service=enable>
2024-04-15 06:57:09.587 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=recorder, service=disable>
2024-04-15 06:57:09.602 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2024-04-15 06:57:09.623 INFO (MainThread) [homeassistant.components.http] Now listening on port 8123
2024-04-15 06:57:09.649 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=396 from 2024-04-14 19:49:46.706689)
2024-04-15 06:57:09.703 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.1 seconds
2024-04-15 06:57:09.703 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>
2024-04-15 06:57:09.706 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'bluetooth', 'dhcp', 'network', 'websocket_api', 'cloud', 'hassio', 'webhook', 'zeroconf', 'http', 'api', 'ssdp', 'usb'}
2024-04-15 06:57:09.711 INFO (MainThread) [homeassistant.setup] Setting up network
2024-04-15 06:57:09.715 INFO (MainThread) [homeassistant.setup] Setup of domain network took 0.0 seconds
2024-04-15 06:57:09.727 INFO (MainThread) [homeassistant.setup] Setting up webhook
2024-04-15 06:57:09.729 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds
2024-04-15 06:57:09.732 INFO (MainThread) [homeassistant.setup] Setting up hassio
2024-04-15 06:57:09.735 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=network>
2024-04-15 06:57:09.735 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=webhook>
2024-04-15 06:57:09.764 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.779 INFO (MainThread) [homeassistant.setup] Setting up usb
2024-04-15 06:57:09.801 INFO (MainThread) [homeassistant.setup] Setup of domain usb took 0.0 seconds
2024-04-15 06:57:09.802 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=usb>
2024-04-15 06:57:09.810 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=addon_start>
2024-04-15 06:57:09.810 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=addon_stop>
2024-04-15 06:57:09.811 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=addon_restart>
2024-04-15 06:57:09.811 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=addon_update>
2024-04-15 06:57:09.811 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=addon_stdin>
2024-04-15 06:57:09.811 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=host_shutdown>
2024-04-15 06:57:09.811 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=host_reboot>
2024-04-15 06:57:09.812 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=backup_full>
2024-04-15 06:57:09.812 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=backup_partial>
2024-04-15 06:57:09.812 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=restore_full>
2024-04-15 06:57:09.812 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=hassio, service=restore_partial>
2024-04-15 06:57:09.904 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.904 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.904 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.905 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event panels_updated[L]>
2024-04-15 06:57:09.919 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 0.2 seconds
2024-04-15 06:57:10.003 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2024-04-15 06:57:10.005 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds
2024-04-15 06:57:10.007 INFO (MainThread) [homeassistant.setup] Setting up sensor
2024-04-15 06:57:10.008 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds