[There doesn’t seem to be a networking category or tag, so sticking it here.]
HA 2024.5.1 running in Docker on Debian.
My logs are spammed with this, every 30 seconds.
2024-05-28 20:49:23.051 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=24 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=24, family=10, type=2, proto=0, laddr=('::', 56238, 0, 0)>
2024-05-28 20:49:53.052 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=24 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=24, family=10, type=2, proto=0, laddr=('::', 56238, 0, 0)>
2024-05-28 20:50:23.053 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=24 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=24, family=10, type=2, proto=0, laddr=('::', 56238, 0, 0)>
There have been some issues on Github that were auto-closed without a fix.
opened 11:24AM - 08 Apr 22 UTC
closed 09:05PM - 18 May 22 UTC
integration: dlna_dmr
stale
### The problem
After upgrading to 2022.4.1 I started getting errors like bel… ow:
```
Logger: async_upnp_client.ssdp
Source: /usr/local/lib/python3.9/site-packages/async_upnp_client/ssdp.py:229
First occurred: 12:52:32 PM (11 occurrences)
Last logged: 1:12:32 PM
Received error: [Errno 1] Operation not permitted, transport: <_SelectorDatagramTransport fd=15 read=polling write=<idle, bufsize=0>>
```
I have two DLNA Digital Media Renderers and DLNA Digital Media Server configured.
Edit: problem seems to be related with DLNA dmr, every two minutes my soundbar is switching between unavailable and idle state.
### What version of Home Assistant Core has the issue?
core-2022.4.1
### What was the last working version of Home Assistant Core?
core-2022.3.5
### What type of installation are you running?
Home Assistant Supervised
### Integration causing the issue
DLNA Digital Media Renderer
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/dlna_dmr/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.ssdp] Sending SSDP packet, transport: <_SelectorDatagramTransport fd=15 read=polling write=<idle, bufsize=0>>
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Sending SSDP packet, target: ('FF02::C', 1900, 0, 2), data: b'M-SEARCH * HTTP/1.1\r\nHOST:[FF02::C%2]:1900\r\nMAN:"ssdp:discover"\r\nMX:4\r\nST:ssdp:all\r\n\r\n'
2022-04-08 13:00:32 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 1] Operation not permitted, transport: <_SelectorDatagramTransport fd=15 read=polling write=<idle, bufsize=0>>
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.ssdp] Sending SSDP packet, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Sending SSDP packet, target: ('239.255.255.250', 1900), data: b'M-SEARCH * HTTP/1.1\r\nHOST:239.255.255.250:1900\r\nMAN:"ssdp:discover"\r\nMX:4\r\nST:ssdp:all\r\n\r\n'
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.ssdp] Sending SSDP packet, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Sending SSDP packet, target: ('255.255.255.255', 1900), data: b'M-SEARCH * HTTP/1.1\r\nHOST:239.255.255.250:1900\r\nMAN:"ssdp:discover"\r\nMX:4\r\nST:ssdp:all\r\n\r\n'
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('192.168.8.142', 46395): b'M-SEARCH * HTTP/1.1\r\nHOST:239.255.255.250:1900\r\nMAN:"ssdp:discover"\r\nMX:4\r\nST:ssdp:all\r\n\r\n'
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('192.168.8.95', 51681): b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nDATE: Fri, 08 Apr 2022 11:00:32 GMT\r\nEXT:\r\nLOCATION: http://192.168.8.95:49152/description.xml\r\nBOOTID.UPNP.ORG: FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002\r\nSERVER: Linux/4.4.22\r\nST: upnp:rootdevice\r\nUSN: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002::upnp:rootdevice\r\n\r\n'
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.search] Received advertisement, USN: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002::upnp:rootdevice, location: http://192.168.8.95:49152/description.xml
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('192.168.8.95', 51681): b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nDATE: Fri, 08 Apr 2022 11:00:32 GMT\r\nEXT:\r\nLOCATION: http://192.168.8.95:49152/description.xml\r\nBOOTID.UPNP.ORG: FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002\r\nSERVER: Linux/4.4.22\r\nST: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002\r\nUSN: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002\r\n\r\n'
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.search] Received advertisement, USN: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002, location: http://192.168.8.95:49152/description.xml
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('192.168.8.95', 51681): b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age=1800\r\nDATE: Fri, 08 Apr 2022 11:00:32 GMT\r\nEXT:\r\nLOCATION: http://192.168.8.95:49152/description.xml\r\nBOOTID.UPNP.ORG: FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002\r\nSERVER: Linux/4.4.22\r\nST: urn:schemas-upnp-org:device:MediaRenderer:1\r\nUSN: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002::urn:schemas-upnp-org:device:MediaRenderer:1\r\n\r\n'
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.search] Received advertisement, USN: uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002::urn:schemas-upnp-org:device:MediaRenderer:1, location: http://192.168.8.95:49152/description.xml
2022-04-08 13:00:32 DEBUG (MainThread) [homeassistant.components.dlna_dmr] SSDP SsdpChange.ALIVE notification of device uuid:FFB8F002-9BCC-CB6A-95A2-4F26FFB8F002::urn:schemas-upnp-org:device:MediaRenderer:1 at http://192.168.8.95:49152/description.xml
2022-04-08 13:00:32 DEBUG (MainThread) [homeassistant.components.dlna_dmr] Connecting to device at http://192.168.8.95:49152/description.xml
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.client_factory] Creating device, description_url: http://192.168.8.95:49152/description.xml
2022-04-08 13:00:32 DEBUG (MainThread) [async_upnp_client.traffic.upnp] Sending request:
GET http://192.168.8.95:49152/description.xml
```
### Additional information
_No response_
opened 05:16PM - 25 Jun 22 UTC
closed 09:09AM - 13 Oct 22 UTC
integration: ssdp
stale
integration: network
### The problem
I have these errors every minute:
```
2022-06-25 19:59:04 ERR… OR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-06-25 20:01:04 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-06-25 20:03:04 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-06-25 20:05:04 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-06-25 20:07:04 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-06-25 20:09:04 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
2022-06-25 20:11:04 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=16 read=polling write=<idle, bufsize=0>>
```
Internet connection is OK. UPnP itself seems to be working fine. So the issue is only in the logs?
### What version of Home Assistant Core has the issue?
core-2022.6.7
### What was the last working version of Home Assistant Core?
core-2022.5.5
### What type of installation are you running?
Home Assistant Supervised
### Integration causing the issue
UPnP
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/upnp
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
A few discussions about it, eg
Hi all,
I’m not sure where all the errors come from that I’m seeing in the logs. I recently (two weeks ago) moved to a new house and not everything is set up properly again. I unfortunately even had to swap my router, but the WiFi and the LAN that my HA and all other device are/would be connected to are still the same because I’ve split internet router and my local network to two different hardware devices, the latter still being the same.
So I’m seeing now an immense amount of this error (66,…
again, no real conclusion, just dies without answer.
I am not sure when it started. I really don’t look at the logs very often.
The only thing I can see in HA that isn’t working, is a Bluetooth adaptor [that I don’t use]. Many of the integrations I have use networking, and work fine.
If I understand correctly, some part of Home Assistant is trying to listen on :: [any IPv6 address]. In issue 69669, chishm inferred that " ('FF02::C', 1900, 0, 2)
" meant interface #2 . So from “(‘::’, 56238, 0, 0)” I would infer that it’s referring to interface 0, but interfaces are numbered from 1 on Linux! So what is it really doing?