Cannot import name 'check_config' from 'homeassistant.helpers' (/usr/src/homeassistant/homeassistant/helpers/__init__.py

First time posting.
I’ve been running Home Assistant for long while without any issues. Tried to restart and get this message along with output from the log.

This appears to look serious. Any help and direction is appreciated.

Home Assistant 2023.5.2
Frontend 20230503.3 - latest

cannot import name ‘check_config’ from ‘homeassistant.helpers’ (/usr/src/homeassistant/homeassistant/helpers/init.py)

Home Assistant Core

Error while processing event EventTask(event=<Event state_changed[L]: entity_id=sensor.lumi_lumi_weather_0c76f806_temperature, old_state=<state sensor.lumi_lumi_weather_0c76f806_temperature=71.8; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=weather_sensor_upstairs_temperature @ 2023-05-10T14:26:28.204547-05:00>, new_state=<state sensor.lumi_lumi_weather_0c76f806_temperature=71.6; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=weather_sensor_upstairs_temperature @ 2023-05-10T14:35:41.380183-05:00>>):

2:35:47 PM – (ERROR) Recorder - message first occurred at May 8, 2023 at 4:12:11 AM and shows up 82122 times

Can’t read Supervisor data:

2:35:11 PM – (WARNING) Home Assistant Supervisor - message first occurred at May 8, 2023 at 12:11:51 AM and shows up 742 times

Client error on /host/info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed (‘172.30.32.2’, 80)]

2:35:11 PM – (ERROR) Home Assistant Supervisor - message first occurred at May 8, 2023 at 12:09:03 AM and shows up 8910 times

Error while processing event StatisticsTask(start=datetime.datetime(2023, 5, 10, 19, 10, tzinfo=datetime.timezone.utc), fire_events=True): The database connection has not been established

2:35:10 PM – (ERROR) Recorder - message first occurred at May 8, 2023 at 4:15:10 AM and shows up 703 times

[546947520192] cannot import name ‘check_config’ from ‘homeassistant.helpers’ (/usr/src/homeassistant/homeassistant/helpers/init.py)

2:35:05 PM – (ERROR) Home Assistant WebSocket API - message first occurred at 6:04:08 AM and shows up 6 times

Failed to to call /backups -

2:35:03 PM – (ERROR) Home Assistant Supervisor - message first occurred at 6:03:42 AM and shows up 27 times

Client error on /backups request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed (‘172.30.32.2’, 80)]

2:35:03 PM – (ERROR) Home Assistant Supervisor - message first occurred at 6:03:42 AM and shows up 27 times

Unhandled exception

2:34:48 PM – (ERROR) /usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py - message first occurred at 2:34:44 PM and shows up 14 times

Error doing job: Task exception was never retrieved

2:34:45 PM – (ERROR) helpers/storage.py - message first occurred at May 8, 2023 at 12:16:32 AM and shows up 298 times

alexaapi.get_dnd_state((<alexapy.alexalogin.AlexaLogin object at 0x7f93e22c20>,), {}): A connection error occured: An exception of type ClientConnectorError occurred. Arguments: (ConnectionKey(host=‘alexa.amazon.com’, port=443, is_ssl=True, ssl=<ssl.SSLContext object at 0x7f93d3a540>, proxy=None, proxy_auth=None, proxy_headers_hash=5148463654688221752), gaierror(-3, ‘Try again’))

2:34:03 PM – (WARNING) runner.py - message first occurred at May 8, 2023 at 12:13:22 AM and shows up 1460 times

Request exception for ‘https://api.github.com/rate_limit’ with - Cannot connect to host api.github.com:443 ssl:default [Try again]

2:33:16 PM – (ERROR) HACS (custom integration) - message first occurred at 12:03:15 AM and shows up 88 times

Cannot connect because unable to refresh token:

2:28:13 PM – (WARNING) runner.py - message first occurred at May 9, 2023 at 9:22:58 AM and shows up 163 times

Error from stream worker: Error opening stream (ERRORTYPE_113, Host is unreachable) rtsp://:@10.0.187.202:554//h264Preview_01_main

2:21:37 PM – (ERROR) Stream - message first occurred at May 6, 2023 at 12:03:15 AM and shows up 282 times

Access to https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned error ‘ClientConnectorError’

2:19:30 PM – (ERROR) components/met/init.py - message first occurred at May 8, 2023 at 12:22:10 AM and shows up 65 times

Error doing job: Task exception was never retrieved

2:06:56 PM – (ERROR) components/cloud/alexa_config.py - message first occurred at May 8, 2023 at 1:53:56 AM and shows up 214 times

Timeout fetching reolink.Back Yard.motion_states data

1:48:40 PM – (ERROR) Reolink IP camera (custom integration) - message first occurred at May 6, 2023 at 12:04:10 AM and shows up 243 times

Unable to find referenced devices f6e4ff24f957b258eb111988b52f573f or it is/they are currently not available

7:03:45 AM – (WARNING) helpers/service.py - message first occurred at May 6, 2023 at 6:43:41 AM and shows up 30 times

Client error on /refresh_updates request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed (‘172.30.32.2’, 80)]

6:12:31 AM – (ERROR) Home Assistant Supervisor

Unexpected exception importing platform custom_components.hacs.hardware

6:03:39 AM – (ERROR) loader.py - message first occurred at 6:03:39 AM and shows up 4 times

[547046995472] Error handling message: Unknown error (unknown_error) Craig Jackson from 127.0.0.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2023.4 (io.robbie.HomeAssistant; build:2023.460; iPadOS 16.4.1) Mobile/HomeAssistant, like Safari)

6:03:03 AM – (ERROR) Home Assistant WebSocket API - message first occurred at May 8, 2023 at 6:21:14 PM and shows up 12 times

Error sending analytics to https://analytics-api.home-assistant.io/v1: ClientConnectorError(ConnectionKey(host=‘analytics-api.home-assistant.io’, port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=-8385430568389157614), gaierror(-3, ‘Try again’))

12:03:15 AM – (ERROR) Analytics - message first occurred at May 9, 2023 at 12:03:15 AM and shows up 2 times

Error doing job: Task exception was never retrieved

May 9, 2023 at 10:16:56 PM – (ERROR) config_entries.py - message first occurred at May 8, 2023 at 7:56:59 PM and shows up 6 times

Cannot find integration samsungtv

May 9, 2023 at 10:16:56 PM – (ERROR) config_entries.py - message first occurred at May 8, 2023 at 7:56:59 PM and shows up 6 times

Error loading integration: samsungtv

May 9, 2023 at 10:16:56 PM – (ERROR) loader.py - message first occurred at May 8, 2023 at 7:56:59 PM and shows up 6 times

Timeout fetching brother data

May 9, 2023 at 10:13:16 AM – (ERROR) Brother Printer - message first occurred at May 9, 2023 at 9:21:26 AM and shows up 2 times

LEAP session ended. Reconnecting…

May 9, 2023 at 9:21:54 AM – (WARNING) runner.py - message first occurred at May 9, 2023 at 2:42:10 AM and shows up 11 times

Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.

May 9, 2023 at 9:21:53 AM – (ERROR) Internet Printing Protocol (IPP) - message first occurred at May 7, 2023 at 8:11:52 AM and shows up 12 times

Error from stream worker: Stream ended; no additional packets

May 9, 2023 at 9:21:41 AM – (ERROR) Stream - message first occurred at May 7, 2023 at 1:59:59 AM and shows up 6 times

Error from stream worker: Stream ended; no additional packets

May 9, 2023 at 9:21:40 AM – (ERROR) Stream - message first occurred at May 7, 2023 at 2:00:00 AM and shows up 6 times

Traceback (most recent call last): File “/config/custom_components/reolink_dev/binary_sensor.py”, line 130, in handle_event await self._base.api.get_all_motion_states() File “/usr/local/lib/python3.10/site-packages/reolink/camera_api.py”, line 608, in get_all_motion_states response = await self.send(body) File “/usr/local/lib/python3.10/site-packages/reolink/camera_api.py”, line 1723, in send raise ApiError( reolink.exceptions.ApiError: API returned HTTP status ERROR code 502/Bad Gateway

May 9, 2023 at 9:21:40 AM – (ERROR) Reolink IP camera (custom integration) - message first occurred at May 7, 2023 at 2:00:01 AM and shows up 3 times

Motion states could not be queried from API

May 9, 2023 at 9:21:40 AM – (ERROR) Reolink IP camera (custom integration) - message first occurred at May 7, 2023 at 2:00:01 AM and shows up 3 times

Error fetching Garage Door Relay data: Error fetching data: DeviceConnectionError()

May 9, 2023 at 9:21:27 AM – (ERROR) Shelly

Error fetching 10.0.187.151 data: Unable to connect to the device: 10.0.187.151:

May 9, 2023 at 9:21:11 AM – (ERROR) TP-Link Kasa Smart

Can’t refresh cloud token:

May 9, 2023 at 8:40:38 AM – (ERROR) runner.py - message first occurred at May 8, 2023 at 12:40:36 AM and shows up 35 times

alexaapi.get_activities((<alexapy.alexalogin.AlexaLogin object at 0x7f93e22c20>, 10), {}): A connection error occured: An exception of type ClientConnectorError occurred. Arguments: (ConnectionKey(host=‘api.amazon.com’, port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=5148463654688221752), gaierror(-3, ‘Try again’))

May 8, 2023 at 10:17:22 PM – (WARNING) Alexa Media Player (custom integration) - message first occurred at May 8, 2023 at 8:08:23 PM and shows up 18 times

Giving up _static_request(…) after 5 tries (alexapy.aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.amazon.com:443 ssl:default [Try again])

May 8, 2023 at 10:17:22 PM – (ERROR) Alexa Media Player (custom integration) - message first occurred at May 8, 2023 at 8:08:23 PM and shows up 9 times

[547105168672] Disconnected: Did not receive auth message within 10 seconds

May 8, 2023 at 1:01:39 PM – (WARNING) Home Assistant WebSocket API

Error while processing event PurgeTask(purge_before=datetime.datetime(2023, 4, 28, 9, 12, 0, 147639, tzinfo=datetime.timezone.utc), repack=False, apply_filter=False): [Errno 30] Read-only file system: ‘//config/home-assistant_v2.db’ → ‘//config/home-assistant_v2.db.corrupt.2023-05-08T09:12:04.556729+00:00’

May 8, 2023 at 4:12:04 AM – (ERROR) Recorder

The system will rename the corrupt database file //config/home-assistant_v2.db to //config/home-assistant_v2.db.corrupt.2023-05-08T09:12:04.556729+00:00 in order to allow startup to proceed

May 8, 2023 at 4:12:04 AM – (ERROR) Recorder

Unrecoverable sqlite3 database corruption detected: (sqlite3.OperationalError) disk I/O error [SQL: PRAGMA wal_checkpoint(TRUNCATE);] (Background on this error at: Error Messages — SQLAlchemy 2.0 Documentation)

May 8, 2023 at 4:12:04 AM – (ERROR) Recorder

Error requesting homeassistant_alerts data: Cannot connect to host alerts.home-assistant.io:443 ssl:default [Try again]

May 8, 2023 at 3:03:49 AM – (ERROR) Home Assistant Alerts

Error fetching met data: Update failed:

May 8, 2023 at 12:22:10 AM – (ERROR) Meteorologisk institutt (Met.no)

Giving up _static_request(…) after 5 tries (alexapy.aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host alexa.amazon.com:443 ssl:<ssl.SSLContext object at 0x7f93d3a540> [Try again])

May 8, 2023 at 12:13:27 AM – (ERROR) runner.py - message first occurred at May 8, 2023 at 12:13:22 AM and shows up 4 times

Error fetching alexa_media data: Error communicating with API:

May 8, 2023 at 12:13:22 AM – (ERROR) Alexa Media Player (custom integration)

Timeout sending report to Alexa for switch.sengled_livingroom_wall_lights

May 8, 2023 at 12:09:16 AM – (ERROR) Amazon Alexa - message first occurred at May 7, 2023 at 12:22:10 AM and shows up 2 times

Error fetching hassio data: Error on Supervisor API:

May 8, 2023 at 12:09:03 AM – (ERROR) Home Assistant Supervisor

Disconnected from MQTT server core-mosquitto:1883 (16)

May 8, 2023 at 12:08:54 AM – (WARNING) MQTT - message first occurred at May 8, 2023 at 12:08:54 AM and shows up 2 times

Host 10.0.187.246 error renewing the Reolink subscription

May 7, 2023 at 2:13:52 AM – (ERROR) Reolink IP camera (custom integration)

Subscription process ended with wrong HTTP status: 400: Bad Request

May 7, 2023 at 2:13:52 AM – (WARNING) Reolink IP camera (custom integration)

:0:0 Script error.

May 6, 2023 at 5:32:27 AM – (ERROR) components/system_log/init.py

1 Like

What type of installation do you have? May help narrow down the list of possible solutions

Thanks. Raspberry Pi 4 with SSD.

1 Like

Any news on that? Got the same issue since one of the last updates. Nightly reboots have helped somewhat but I’m now stuck again in a mode where I can’t reboot remotely. I currently cannot access many sensors, nor updates, nor settings. I can only pull the plug once I get home in a couple of days.

I’m also running HomeAsssistant OS on a raspberry pi (8gb) from an SSD.

im in the same situation. supervised, debian, raspi4, ssd.

1 Like

I get the same thing Rpi 8gb on SSD. Any idaea beside trying to restore?

Same issue after May update!

the same here !! any news??

Same problem here on RPi 4 8GB memory and 128 GB SSD

Same problem here on RPi 4 8GB memory and 128 GB SD card

I have the same problem! Has been like this for a couple of week (and so on different versions). HA seems the crash in a way that you can’t acces pages like updates, advanced: reboot / shutdown, logbook etc etc.

I’m running on a Pi 4 with 8GB and an external SSD.
Running 2023.6.1

Systeminfo now only shows:
image

Question to all in this thread: do you guys/girls use the addon Samba Backup, for making backups?

I suspect that addon is making HA crash…

I’m in the proces of making a bugreport in GitHub, so would be nice to know if you run that addon.

@mciaio
@pmeyland
@Nemesis24
@Argentum
@wasyl00
@kloodHU
@d.windisch
@craigjok

For me at least, I think, issue was caused by hardware - bad usb3 jumper adapter between pi and ssd pcb on my argon one case. After I replaced it with cable and did full restore - no more issues. And just to confirm I did 2 restores before and problem was coming back after a few hours. So yeah I think some weird intermittent connection was messing things for me.

@IvovanWilligen - Yes, I’m now getting this error, and I do run nightly Samba Backups with the addon.

@IvovanWilligen, I never installed the Samba Backup Integration

Same issue here. Also got a Pi4 and an external SSD.

Is there a GitHub issue for this I can follow? Can anyone confirm if I can safely restart Home Assistant while I have this issue?

No guarantees I guess, but I did a power cycle (remotely powered off the outlet) and the Pi4 rebooted ok and back to normal.

Getting the same error. Not running the Samba Backup add-on. Has anyone found a way to recover from this yet?

I am on the same boat without samba (pi2)

Same issue here, running Home Assistant Supervised on a Pi4 using an NVME SSD. This is the error I get after a number of hours: cannot import name 'check_config' from 'homeassistant.helpers' (/usr/src/homeassistant/homeassistant/helpers/__init__.py)

I lose full connection to my Pi, cannot use Putty, cannot use WinSCP… I have to literally reinsert the power cable to run normally again.