First post, of course it’s a problem…
I installed hass.io on a Raspberry Pi 4 and it worked fine, including rtsp, and Google integrations. I’m about to add a bunch more cameras to the config so I decided to move the platform to a dedicated Ubuntu machine running docker for full Home Assistant support. I tried a clean install with the configuration from my Pi and I got loads of python errors with my rtsp camera, it’s a Wyze Cam.
When that didn’t work I decided to go to a minimal install, no Google stuff, just vanilla Home Assistant with File Editor and Samba. This is a bare metal install, I wiped the drive installed fresh Ubuntu, docker, and Home Assistant with supervisor. I get the same python issues. I don’t know if there’s a simple solution but I’m all ears.
Here’s a section of my error log:
2021-02-21 10:48:19 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 422, in _handle_request
resp = await self._request_handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 118, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 56, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 18, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 72, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 127, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 129, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/camera/init.py”, line 502, in get
return await self.handle(request, camera)
File “/usr/src/homeassistant/homeassistant/components/camera/init.py”, line 519, in handle
image = await camera.async_camera_image()
File “/usr/src/homeassistant/homeassistant/components/generic/camera.py”, line 156, in async_camera_image
response = await websession.get(url, auth=self._auth)
File “/usr/local/lib/python3.8/site-packages/aiohttp/client.py”, line 520, in _request
conn = await self._connector.connect(
File “/usr/local/lib/python3.8/site-packages/aiohttp/connector.py”, line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File “/usr/local/lib/python3.8/site-packages/aiohttp/connector.py”, line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File “/usr/local/lib/python3.8/site-packages/aiohttp/connector.py”, line 991, in _create_direct_connection
assert port is not None
AssertionError