Docker installation on Raspberry Pi 2 is partially working, reboot doesn't help

Hi,
HA is working partially. some integrations work but for some reason the apps lost access to HA server (both web and mobile) and I have some errors in the log. I have all kinds of integrations. here is my home-assistant.log:

2021-07-17 09:21:38 WARNING (MainThread) [homeassistant.components.http] The 'base_url' option near /config/configuration.yaml:21 is deprecated, please remove it from your configuration
2021-07-17 09:21:38 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2021-07-17 09:21:48 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2021-07-17 09:22:19 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=48 from 2021-07-06 11:32:59.191975)
2021-07-17 09:22:48 WARNING (MainThread) [homeassistant.components.scene] Setup of scene platform homeassistant is taking over 10 seconds.
2021-07-17 09:22:48 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2021-07-17 09:22:55 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned
2021-07-17 09:22:55 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform sensibo is taking over 10 seconds.
2021-07-17 09:23:04 ERROR (Thread-18) [plexapi] http://192.168.0.116:32400: Client not found at http://192.168.0.116:32400
2021-07-17 09:23:04 ERROR (Thread-20) [plexapi] http://84.228.29.68:32400: Client not found at http://84.228.29.68:32400
2021-07-17 09:23:04 ERROR (Thread-17) [plexapi] https://192-168-0-116.0026adc10d0e453999422b7d6f87fbab.plex.direct:32400: Client not found at https://192-168-0-116.0026adc10d0e453999422b7d6f87fbab.plex.direct:32400
2021-07-17 09:23:07 ERROR (Thread-19) [plexapi] https://84-228-29-68.0026adc10d0e453999422b7d6f87fbab.plex.direct:32400: Client not found at https://84-228-29-68.0026adc10d0e453999422b7d6f87fbab.plex.direct:32400
2021-07-17 09:23:07 ERROR (SyncWorker_2) [homeassistant.components.plex.server] Resource connection failed to plex.tv: Chrome
2021-07-17 09:26:01 WARNING (MainThread) [homeassistant.components.ring] Error fetching Ring active dings data: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 09:28:01 WARNING (MainThread) [homeassistant.components.ring] Error fetching Ring active dings data: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 09:30:01 WARNING (MainThread) [homeassistant.components.ring] Error fetching Ring active dings data: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 09:55:01 WARNING (SyncWorker_1) [homeassistant.components.ring] Error fetching Ring history data for device 4c249853bb8e: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 10:03:01 WARNING (SyncWorker_1) [homeassistant.components.ring] Error fetching Ring history data for device 4c249853bb8e: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 10:08:01 WARNING (SyncWorker_3) [homeassistant.components.ring] Error fetching Ring history data for device 4c249853bb8e: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 10:11:08 WARNING (Thread-23) [pychromecast.socket_client] [Bedroom TV(192.168.0.117):8009] Heartbeat timeout, resetting connection
2021-07-17 10:11:24 ERROR (Thread-23) [pychromecast.socket_client] [Bedroom TV(192.168.0.117):8009] Failed to connect to service ServiceInfo(type='mdns', data='MIBOX4-bb7e37d604c3e078c60d924a7ad713d0._googlecast._tcp.local.'), retrying in 5.0s
2021-07-17 10:13:01 WARNING (SyncWorker_2) [homeassistant.components.ring] Error fetching Ring history data for device 4c249853bb8e: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 10:24:01 WARNING (SyncWorker_0) [homeassistant.components.ring] Error fetching Ring history data for device 4c249853bb8e: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-07-17 10:25:01 WARNING (SyncWorker_0) [homeassistant.components.ring] Error fetching Ring history data for device 4c249853bb8e: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

As you can see, it seems that HA fails to connect with devices. I am, however, able to connect to HA RPI via ssh, so there is connectivity.

Can anyone give me some clues?

Thanks!

What do your docker logs say ?

I pasted the home-assistant.log. as you can see there are some failures in connecting with devices.

That is the log from homeassistant.

docker container logs homeassistant

or

docker logs homeassistant

Oh, got it. here it is (only partially):

[17/07/21 10:58:52] /home/pi pi@raspberrypi% docker container logs homeassistant
[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] udev.sh: executing...
[22:07:27] INFO: Setup udev backend inside container
starting version 3.2.9
[22:07:27] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2021-04-15 22:33:39 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-04-15 22:33:39 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-04-15 22:33:39 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-04-15 22:33:39 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
2021-04-15 23:02:11 ERROR (Thread-8) [root] Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/site-packages/xiaomi_gateway/__init__.py", line 180, in _listen_to_msg
    data, (ip_add, _) = self._mcastsocket.recvfrom(SOCKET_BUFSIZE)
OSError: [Errno 9] Bad file descriptor
Unable to find configuration. Creating default one in /config
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[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] udev.sh: executing...
[23:02:34] INFO: Setup udev backend inside container
starting version 3.2.9
[23:02:35] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2021-04-15 23:54:54 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-15 23:56:11 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 00:01:25 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 00:10:02 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 00:25:14 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 00:32:22 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 00:40:28 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 00:55:47 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 01:11:03 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 01:26:52 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 01:32:22 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 01:42:03 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 01:57:05 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 02:12:28 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 02:27:34 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 02:32:23 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 02:41:39 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 02:42:36 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 02:45:01 WARNING (MainThread) [homeassistant.components.duckdns] Updating DuckDNS domain failed: oriharel
2021-04-16 02:57:37 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 03:12:54 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 03:28:02 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 03:32:23 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 03:43:14 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 03:58:15 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 04:14:03 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 04:14:03 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 04:29:20 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 04:32:24 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 04:44:49 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 05:00:19 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 05:15:27 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 05:30:29 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 05:32:25 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 05:45:41 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 05:45:41 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 06:01:02 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 06:01:02 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 06:16:10 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 06:31:13 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 06:32:25 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 192.168.0.110
2021-04-16 13:55:01 WARNING (MainThread) [homeassistant.components.duckdns] Updating DuckDNS domain failed: oriharel
2021-04-16 14:54:24 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 802926937bc4715efa3e9de446b0640cd3782fae1b9ae0f5abf2422a2111fa89 from 2.55.143.179
2021-04-16 14:54:28 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 2-55-143-179.orange.net.il (2.55.143.179). (HomeAssistant/Android 2021.4.1-658)
2021-04-16 14:54:28 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 31-154-143-179.orange.net.il (2.55.143.179). (Mozilla/5.0 (Linux; Android 11; Pixel 4 Build/RQ2A.210405.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.105 Mobile Safari/537.36)
2021-04-16 14:55:11 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update Pixel 4 non-registered sensor: 95de44e1b6d292969a74dbd70acb97a79aae22aa20750b5ce50cf14e231fa6b2_battery_level
2021-04-16 14:55:11 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update Pixel 4 non-registered sensor: 95de44e1b6d292969a74dbd70acb97a79aae22aa20750b5ce50cf14e231fa6b2_battery_state
2021-04-16 14:55:11 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update Pixel 4 non-registered sensor: 95de44e1b6d292969a74dbd70acb97a79aae22aa20750b5ce50cf14e231fa6b2_is_charging
2021-04-16 14:55:11 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update Pixel 4 non-registered sensor: 95de44e1b6d292969a74dbd70acb97a79aae22aa20750b5ce50cf14e231fa6b2_charger_type
2021-04-16 14:55:11 ERROR (MainThread) [homeassistant.components.mobile_app.webhook] Refusing to update Pixel 4 non-registered sensor: 95de44e1b6d292969a74dbd70acb97a79aae22aa20750b5ce50cf14e231fa6b2_battery_temperature
2021-04-16 17:43:43 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from IGLD-84-228-29-68.inter.net.il (84.228.29.68). (Mozilla/5.0 (Linux; Android 11; Pixel 4 Build/RQ2A.210405.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.105 Mobile Safari/537.36)
2021-04-16 17:54:38 ERROR (Thread-21) [plexapi] http://82.94.168.36:8443: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-04-16 17:54:55 ERROR (MainThread) [plexwebsocket] Websocket connection failed, retrying in 15s: Cannot connect to host 192-168-0-116.0026adc10d0e453999422b7d6f87fbab.plex.direct:32400 ssl:default [Try again]
2021-04-16 17:58:09 ERROR (Thread-27) [plexapi] http://82.94.168.34:8443: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2021-04-16 19:35:19 WARNING (Thread-14) [pychromecast.socket_client] [Bedroom TV(192.168.0.112):8009] Heartbeat timeout, resetting connection
2021-04-16 19:35:49 ERROR (Thread-14) [pychromecast.socket_client] [Bedroom TV(192.168.0.112):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.0.112', 8009)), retrying in 5.0s
2021-04-16 19:43:44 WARNING (Thread-28) [pychromecast.socket_client] [Kitchen TV(192.168.0.110):8009] Heartbeat timeout, resetting connection
2021-04-16 19:44:00 ERROR (Thread-28) [pychromecast.socket_client] [Kitchen TV(192.168.0.110):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.0.110', 8009)), retrying in 5.0s
2021-04-16 22:02:42 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-04-16 22:02:42 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-04-16 22:02:42 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2021-04-16 22:02:42 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
2021-04-16 22:21:42 ERROR (Thread-14) [pychromecast.socket_client] [Bedroom TV(192.168.0.112):8009] Failed to connect. No retries.
2021-04-16 22:21:42 ERROR (Thread-5) [root] Uncaught thread exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/site-packages/xiaomi_gateway/__init__.py", line 180, in _listen_to_msg
    data, (ip_add, _) = self._mcastsocket.recvfrom(SOCKET_BUFSIZE)
OSError: [Errno 9] Bad file descriptor
2021-04-16 22:21:43 ERROR (Thread-28) [pychromecast.socket_client] [Kitchen TV(192.168.0.110):8009] Failed to connect. No retries.
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[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] udev.sh: executing...
[22:22:07] INFO: Setup udev backend inside container
starting version 3.2.9
[22:22:07] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2021-04-16 22:22:43 WARNING (MainThread) [homeassistant.components.http] The 'base_url' option near /config/configuration.yaml:18 is deprecated, please remove it from your configuration
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/ssl/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/ssl/privkey.pem'. (See /config/configuration.yaml, line 18). Please check the docs at https://www.home-assistant.io/integrations/http
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image. Setup failed for dependencies: http
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Could not set up all dependencies.
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: Could not set up all dependencies.
2021-04-16 22:22:43 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http


This worries me:

I think you need to rebuild your docker container

But I have a configuration file, I can see it. Maybe something happened that it’s looking at a wrong path or something? also, everything worked yesterday with no changes done

Your docker install seems shaky.
Is this HassOS or a manual Supervised install? If the latter, what is the docker version?

Since he talks about docker installation, I was assuming he is running HA Container.

Could be.
OP, if so, what is the docker run or docker-compose you’re using to launch the lone HA container?

It’s the default docker container installation. I didn’t change the launch sequence.

That doesn’t tell anything.
Which of the 4 supported installation methods did you use?

I used “Home Assistant Container Standalone container-based installation of Home Assistant Core (e.g. Docker)”

So, did you use docker run or docker-compose ?

What the docker version on your RPI?

If you are using Docker then you need to be on at least version 19.03.9, ideally an even higher version, and libseccomp 2.42 or newer.

IIRC, the default version of docker on raspbian is lower than that.

I’m using docker run. I’m trying now apt-get update and apt-get upgrade. and if that won’t help I’ll verify the docker version. if that is not on the latest, I’ll update that too. I’ll update here about the progress.

updating and upgrading didn’t help. btw, I’m running on rpi 2. my docker version is 20.10.7

So rebuild your container

docker pull ghcr.io/home-assistant/raspberrypi2-homeassistant:stable

# stop the running container
docker stop homeassistant

# remove it from Docker's list of containers
docker rm homeassistant

# finally, start a new one
docker run --init -d \
  --name homeassistant \
  --restart=unless-stopped \
  --privileged \
  -v /PATH_TO_YOUR_CONFIG:/config \
  -v /etc/localtime:/etc/localtime:ro \
  --network=host \
  ghcr.io/home-assistant/raspberrypi2-homeassistant:stable
1 Like

Ok, before I’ll close this thread I can say that after a week, to this day I’m not sure what happened to the installation. The only thing I saw is that I used a raspberry pi 3 image on a raspberry pi 2 - this can’t be good anyway.
So I took @francisp advice and rebuilt the container. too bad I didn’t backup configuration.yaml and automations.yaml first, so it took me a whole week to restore it. So big advice to those who read this - BACKUP! (I recommend docker push to dockerHub).

Not sure what you actually did but -v /PATH_TO_YOUR_CONFIG:/config maps a host folder to the container, so destroying and recreating the container shouldn’t had you loose data.