HA suddenly not available anymore

Did a new fresh install of HA on my RPI4 4GB (with booting from fast m2 SSD-stick for OS) and the problem I’am getting is that after some time (sometimes after a couple of minutes) I can’t get access. Not from a browser (uses Mozilla, Chrome and Opera with Win11 and safari and chrome browser from ipados). I have to pull the powercord and put it back in to see it again.
I’m running:


In logfile I see some activity around 4-5 o’clock see below:
2022-05-11 03:43:24 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry fe80::7297:41ff:fe91:f5f%3 for sensor
Traceback (most recent call last):
*** File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 335, in async_setup***
*** result = await component.async_setup_entry(hass, self)***
*** File “/usr/src/homeassistant/homeassistant/components/sensor/init.py”, line 240, in async_setup_entry***
*** return await component.async_setup_entry(entry)***
*** File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 157, in async_setup_entry***
*** raise ValueError(“Config entry has already been setup!”)***
ValueError: Config entry has already been setup!
2022-05-11 03:44:09 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 03:49:11 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 03:54:13 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 03:59:15 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:04:17 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:09:19 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:14:21 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:19:23 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:24:25 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:27:26 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 04:27:55 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 04:29:27 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:32:40 ERROR (Thread-18) [pychromecast.socket_client] [1e verdieping(192.168.2.52):32054] Error reading from socket.
2022-05-11 04:32:40 WARNING (Thread-18) [pychromecast.socket_client] [1e verdieping(192.168.2.52):32054] Error communicating with socket, resetting connection
2022-05-11 04:32:40 ERROR (Thread-18) [pychromecast.socket_client] [1e verdieping(192.168.2.52):32054] Failed to connect to service ServiceInfo(type=‘host’, data=(‘192.168.2.52’, 32054)), retrying in 5.0s
2022-05-11 04:33:10 WARNING (Thread-17) [pychromecast.socket_client] [Google Home Bram(192.168.2.52):8009] Heartbeat timeout, resetting connection
2022-05-11 04:33:17 ERROR (Thread-17) [pychromecast.socket_client] [Google Home Bram(192.168.2.52):8009] Failed to connect to service ServiceInfo(type=‘host’, data=(‘192.168.2.52’, 8009)), retrying in 5.0s
2022-05-11 04:34:29 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:39:32 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:41:51 WARNING (Thread-11) [pychromecast.socket_client] [Google Home Woonkamer(192.168.2.45):8009] Heartbeat timeout, resetting connection
2022-05-11 04:41:58 ERROR (Thread-11) [pychromecast.socket_client] [Google Home Woonkamer(192.168.2.45):8009] Failed to connect to service ServiceInfo(type=‘host’, data=(‘192.168.2.45’, 8009)), retrying in 5.0s
2022-05-11 04:44:34 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:49:56 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 04:50:25 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 04:54:39 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 04:59:41 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 05:07:55 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:08:25 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:08:56 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:09:25 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:09:46 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 05:09:56 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:10:25 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:14:48 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 05:14:55 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:15:25 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:16:55 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 05:17:25 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-05-11 09:34:39 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor 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
2022-05-11 09:34:39 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
2022-05-11 09:34:39 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration genius_lyrics 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
2022-05-11 09:34:39 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration apsystems_ecur 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
2022-05-11 09:34:39 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration nest_protect 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
2022-05-11 09:34:41 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-05-11 09:34:41 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=21 from 2022-05-10 20:46:52.581977)
2022-05-11 09:34:47 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 09:34:54 DEBUG (SyncWorker_3) [homeassistant.components.rfxtrx] Using modes: ac,arc,lighting4,x10
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Send: 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Send: 0x0d 0x00 0x00 0x01 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Recv: 0x14 0x01 0x00 0x01 0x02 0x53 0x2b 0x0a 0x0e 0x2f 0x00 0x01 0x03 0x29 0x06 0x70 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Send: 0x0d 0x00 0x00 0x00 0x03 0x53 0x29 0x08 0x00 0x07 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Recv: 0x14 0x01 0x00 0x00 0x03 0x53 0x2b 0x08 0x00 0x07 0x00 0x01 0x03 0x29 0x06 0x71 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Send: 0x0d 0x00 0x00 0x01 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Recv: 0x14 0x01 0x00 0x01 0x02 0x53 0x2b 0x08 0x00 0x07 0x00 0x01 0x03 0x29 0x06 0x71 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Status: Status [subtype=433.92MHz, firmware=43, output_power=41, devices=[‘ac’, ‘arc’, ‘lighting4’, ‘x10’]]
2022-05-11 09:34:54 DEBUG (Thread-3) [RFXtrx] Send: 0x0d 0x00 0x00 0x03 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2022-05-11 09:34:55 DEBUG (Thread-3) [RFXtrx] Recv: 0x14 0x01 0x07 0x03 0x07 0x43 0x6f 0x70 0x79 0x72 0x69 0x67 0x68 0x74 0x20 0x52 0x46 0x58 0x43 0x4f 0x4d
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds.
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2022-05-11 09:35:03 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2022-05-11 09:35:04 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2022-05-11 09:35:04 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2022-05-11 09:35:04 WARNING (MainThread) [homeassistant.components.update] Setup of update platform hassio is taking over 10 seconds.
2022-05-11 09:35:07 WARNING (MainThread) [coap] Received Type.ACK from <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7f8787a0d0>, but could not match it to a running exchange.
2022-05-11 09:35:09 WARNING (MainThread) [homeassistant.components.heos] 192.168.2.147 is not logged in to a HEOS account and will be unable to retrieve HEOS favorites: Use the ‘heos.sign_in’ service to sign-in to a HEOS account
2022-05-11 09:35:11 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can’t connect to ESPHome API for co2-woonkamer @ 192.168.2.191: Error connecting to (‘192.168.2.191’, 6053): [Errno 113] Connect call failed (‘192.168.2.191’, 6053)
2022-05-11 09:35:11 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can’t connect to ESPHome API for oled-woonkamer @ 192.168.2.15: Error connecting to (‘192.168.2.15’, 6053): [Errno 113] Connect call failed (‘192.168.2.15’, 6053)
2022-05-11 09:35:15 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe8f:9e5b%3’ for upnp integration not ready yet: (“Cannot connect to host 2a02:a442:ddae:1:7297:41ff:fe8f:9e5d:45725 ssl:default [Connect call failed (‘2a02:a442:ddae:1:7297:41ff:fe8f:9e5d’, 45725, 0, 0)]”, None); Retrying in background
2022-05-11 09:35:18 WARNING (MainThread) [homeassistant.components.synology_dsm.common] Connection error during update, fallback by reloading the entry
2022-05-11 09:35:18 WARNING (MainThread) [zigpy_znp.zigbee.application] Your network is using the insecure Zigbee2MQTT network key!
2022-05-11 09:35:24 WARNING (MainThread) [homeassistant.config_entries] Config entry ‘fe80::7297:41ff:fe91:f5f%3’ for upnp integration not ready yet: (’’, None); Retrying in background
2022-05-11 09:35:55 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: synology_dsm
2022-05-11 09:36:55 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: synology_dsm
2022-05-11 09:37:55 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: synology_dsm
2022-05-11 09:38:55 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: synology_dsm
2022-05-11 09:39:49 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2022-05-11 09:39:55 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: synology_dsm
2022-05-11 09:40:03 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_ssh: Container addon_core_ssh is not running
2022-05-11 09:40:56 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: synology_dsm

Does anyone now whats going on? I now spend 3 days of installing, testing, reinstalling, testing, and so on. And yes not everything is configured yet :wink:

In many cases the extra SSD pull just that much extra juice from the power supply, which makes it hit its limit and become unstable.
If the power shortage is small enough, then the Pi will not reset, but instead just freeze up.

Best thing you can do is get SSH set up then connect through that and make a tail on the logs.
If the server crashes, then the SSH client should be able to keep the last log entries printed on the screen.


And using a original raspberry pi power supply. Maybe it’s better for all (usb-powered) extra’s to use a powered usb hub also. Gone dive in to that. Was already looking for an Dell 3500 mini as an alternative. Thanks for your reply.

I have moved away from the Raspberry Pi for HA.
I now use a small laptop with a Intel Pentium Silver 5000, 8Gb ram and a 256Gb NVME disc.
Its actually a newer laptop, but it comes with a touchscreen and once the i broken, then repair is pretty much never financially sane, so they can be bought cheap.
Only issue might be that some laptops refuse to use an external monitor for BIOS and boot menu, so you need to check that, if you venture down this road.
The benefit is a really powerful server and the Pentium Silver 5000 is a passive cooled CPU, so no fan noise. On top of that the machine has a powerful power supply and a builtin battery, so you actually get a UPS too, where HA can detect if power is plugged in, if the battery is charging and at what level the battery is at, so you can shutdown HA in a proper way.
Often its not necessary to HA down, because a normal gully charged laptop battery can keep the machine running for hours, especially if you have disconnected the broken monitor.

Just got a freeze again…

Think investing in new hardware is a good thing. Raspberry Pi 4 was great in the beginning but now sucks. Very unstable with last builds.