core: Error doing job: Task exception was never retrieved
The problem
Receiving this error in the logs. Probably a coincidence, but may have started around the time I moved from RPi 4 to Odroid N2+
2021-09-28 09:06:29 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/async_upnp_client/search.py", line 80, in _async_on_connect
await self.async_connect_callback()
File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 213, in async_scan
listener.async_search()
File "/usr/local/lib/python3.9/site-packages/async_upnp_client/search.py", line 62, in async_search
assert self._transport is not None
AssertionError
What is version of Home Assistant Core has the issue?
2021.9.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Unsure
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
I don’t believe I’m running anything that has upnp or ssdp
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (18 by maintainers)
What a classical situation. The
AssertionErrorhasn’t happened to me since enabling debugging log output. 😅Please don’t close yet, fix on the way.
Only a warning, sure we can live with it for a little - and 2022-1 isn’t too far - I say as long as this issue can remain open and not auto close tackle it in the new year 😉
Ok, the problem is that to bind a IPv6 multicast socket (used for SSDP), a so called ‘scope_id’ is needed. This scope_id is available in home assistant, see https://github.com/home-assistant/core/blob/6e7fe13d51b7a00791fa054b69eb0f60bd3cca48/homeassistant/components/network/__init__.py#L56
But in Python3.8 the IPv6Address does not provide a means to store the scope_id, while IPv6Address in Python3.9 does provide it. There is even a comment in the home assistant source stating how to use it! 😃
Python3.8 support will be dropped
2022.1. Either we wait and do a small change then, or do a hack now to work around this.Just chiming in that I am running 2021.10.6 and still have the issue
I’m on Home Assistant 2021.10.6 now, and the issue seems to be gone. Heureka! Thanks a lot, @StevenLooman!
@birdie60, the traceback is similar to https://github.com/home-assistant/core/issues/57015. Can you update to 2021.10.6 and verify the issue is still occurring?