Hi,
Since last couple of months I’m having an issue with my home assistant instance running on a Raspberry Pi 4B+ 4Gb and a SSD disk.
The versions that I have is the following.
Home Assistant 2023.3.3
Supervisor 2023.04.0
Operating System 9.5
Frontend 20230309.0 - latest
The problem that I’m facing is that my Home Assistant is not responding and I cannot access to the frontend. Also my automations are not working and the sensor logs are paused during all the time the system is not responding. As you can see in the image below, there is a time where the sensor is not logged.
To recover I have to unplug the power of the Pi and connect it againt to recover the system.
I’ve checked the HA log and I cannot identify anything that can make me understand what is causing the freeze and how to solve.
Below the last lines of the log befoe stop working.
2023-04-11 15:21:27.035 ERROR (MainThread) [custom_components.reolink_dev] Unexpected error fetching reolink.CamaraPatioTrasero data:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 195, in _async_update_data
return await self.update_method()
File "/config/custom_components/reolink_dev/__init__.py", line 110, in async_update_data
await base.update_states()
File "/config/custom_components/reolink_dev/base.py", line 269, in update_states
await self._api.get_states()
File "/usr/local/lib/python3.10/site-packages/reolink/camera_api.py", line 460, in get_states
response = await self.send(body)
File "/usr/local/lib/python3.10/site-packages/reolink/camera_api.py", line 1730, in send
raise CredentialsInvalidError()
reolink.exceptions.CredentialsInvalidError
2023-04-11 15:22:27.196 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraPatioTrasero.motion_states data
2023-04-11 15:29:36.446 WARNING (MainThread) [reolink.subscription_manager] Subscription process ended with wrong HTTP status: 400: Bad Request
2023-04-11 15:29:36.519 ERROR (MainThread) [custom_components.reolink_dev.base] Host 192.168.1.91 error renewing the Reolink subscription
2023-04-11 15:36:39.619 WARNING (MainThread) [reolink.camera_api] Host: 192.168.1.91: Failed to get results for Search, JSON data was was empty?
2023-04-11 15:39:14.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 15:41:14.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 15:42:44.127 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 15:47:44.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 15:49:44.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 15:54:14.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:01:14.128 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:02:44.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:08:14.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:11:11.184 ERROR (MainThread) [homeassistant.components.ezviz.coordinator] Error fetching ezviz data: Invalid response from API:
2023-04-11 16:11:14.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:12:44.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:14:12.996 WARNING (MainThread) [aioesphomeapi.connection] sonoff001 @ 192.168.1.187: Connection error occurred: [Errno 104] Connection reset by peer
2023-04-11 16:14:18.827 WARNING (MainThread) [aioesphomeapi.connection] esp01s_001 @ 192.168.1.159: Connection error occurred: [Errno 104] Connection reset by peer
2023-04-11 16:15:13.033 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for sonoff001 @ 192.168.1.187: Timeout while connecting to ('192.168.1.187', 6053)
2023-04-11 16:15:18.859 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for esp01s_001 @ 192.168.1.159: Timeout while connecting to ('192.168.1.159', 6053)
2023-04-11 16:15:23.205 WARNING (MainThread) [aioesphomeapi.connection] sonoff007 @ 192.168.1.224: Connection error occurred: [Errno 104] Connection reset by peer
2023-04-11 16:15:44.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:15:57.740 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for sonoff007 @ 192.168.1.224: Error connecting to ('192.168.1.224', 6053): [Errno 113] Connect call failed ('192.168.1.224', 6053)
2023-04-11 16:16:29.486 WARNING (MainThread) [aioesphomeapi.connection] sonoff004 @ 192.168.1.249: Connection error occurred: [Errno 104] Connection reset by peer
2023-04-11 16:17:14.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:25:44.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:26:24.777 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(Smart Plug (19011865675634251h0334298f1a3798)) TimeoutError() in async_http_request GET Appliance.System.DNDMode
2023-04-11 16:26:37.349 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-04-11 16:26:55.408 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 332, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2023-04-11 16:30:14.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:33:14.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:38:14.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:39:44.126 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:41:09.667 WARNING (MainThread) [reolink.camera_api] Host: 192.168.1.91: Failed to get results for Search, JSON data was was empty?
2023-04-11 16:48:14.127 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
2023-04-11 16:53:44.125 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.CamaraGaraje.motion_states data
Is very anoying because I don’t know when it’s stopping working and I only can realize trying to acces to the frontend or if any automation is not working.
If anyone can help me to understand where to look and how to find the error that is causing this.
Many thanks.
Regards,