Open Adhd2012 opened 7 months ago
Hey there @stevenlooman, mind taking a look at this issue as it has been labeled with an integration (upnp
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
upnp documentation upnp source (message by IssueLinks)
Thank you for this issue @Adhd2012. I see several errors, including from the zeroconf component, which makes me think this is a network related issue. Have you changed anything recently, regarding your network and/or setup?
@StevenLooman I have very similar issue. My build : Ive asus router, HA configured with static IP and istalled as OS on HP G600 MINI.
How to reproduce: turn off Asus router and than turn it ON. After that HA is not available at all and not reconnecting to network (I see it on Asus router side). I cant connect to it via ssh. I also using merros smart socket and see that power consumption is like CPU load 100%. I have disabled IPV6 - didnt help. IPV4 was configured as automatic - switched to static - didnt help. Let me know which logs and how to get it, I will post some of them below
I've already tried to disable all devices, didn't help
~ # ha dns logs [INFO] 127.0.0.1:43283 - 65111 "A IN n.XXXXX.com. udp 42 true 2048" - - 0 30.000600695s [ERROR] plugin/errors: 2 n.XXXXX.com. A: dial tcp 1.0.0.1:853: i/o timeout [INFO] 127.0.0.1:36223 - 3352 "AAAA IN api.spotify.com. udp 44 true 2048" - - 0 30.001045941s [ERROR] plugin/errors: 2 api.spotify.com. AAAA: dial tcp 1.1.1.1:853: i/o timeout [INFO] 127.0.0.1:43935 - 60238 "A IN api.spotify.com. udp 44 true 2048" - - 0 30.000884893s [ERROR] plugin/errors: 2 api.spotify.com. A: dial tcp 1.1.1.1:853: i/o timeout [INFO] 127.0.0.1:41396 - 43946 "A IN xtazy.XXXXX.com. udp 47 true 2048" - - 0 30.000974055s [ERROR] plugin/errors: 2 xtazy.XXXXX.com. A: dial tcp 1.0.0.1:853: i/o timeout [INFO] 127.0.0.1:37966 - 25806 "AAAA IN mqtt-eu-2.roborock.com. udp 51 true 2048" - - 0 30.000702112s [ERROR] plugin/errors: 2 mqtt-eu-2.roborock.com. AAAA: dial tcp 1.0.0.1:853: i/o timeout [INFO] 127.0.0.1:47827 - 2540 "A IN mqtt-eu-2.roborock.com. udp 51 true 2048" - - 0 30.001023885s [ERROR] plugin/errors: 2 mqtt-eu-2.roborock.com. A: dial tcp 1.1.1.1:853: i/o timeout [INFO] 127.0.0.1:34082 - 31511 "NS IN . udp 17 false 512" REFUSED qr,aa,rd 17 0.00004632s [INFO] 127.0.0.1:59860 - 8960 "NS IN . udp 17 false 512" REFUSED qr,aa,rd 17 0.000033609s [INFO] 127.0.0.1:40500 - 57370 "NS IN . udp 17 false 512" REFUSED qr,aa,rd 17 0.00003815s [INFO] 127.0.0.1:35967 - 10831 "NS IN . udp 17 false 512" REFUSED qr,aa,rd 17 0.000032479s [INFO] 127.0.0.1:59312 - 50275 "NS IN . udp 17 false 512" REFUSED qr,aa,rd 17 0.000047967s [INFO] 127.0.0.1:43544 - 32974 "NS IN . udp 17 false 512" REFUSED qr,aa,rd 17 0.000036159s [INFO] 127.0.0.1:36509 - 22740 "A IN api.spotify.com. udp 44 true 2048" - - 0 30.0003711s [ERROR] plugin/errors: 2 api.spotify.com. A: dial tcp 1.1.1.1:853: i/o timeout [INFO] 127.0.0.1:59801 - 7418 "AAAA IN api.spotify.com. udp 44 true 2048" - - 0 30.0002649s
....
and 100+ below
ha core logs
2024-05-27 21:36:18.807 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=61 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=61, family=2, type=2, proto=0, laddr=('0.0.0.0', 36468)>
2024-05-27 21:36:18.807 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 99] Address not available, transport: <_SelectorDatagramTransport fd=63 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=63, family=10, type=2, proto=0, laddr=('::', 49080, 0, 0)>
2024-05-27 21:36:24.832 ERROR (MainThread) [custom_components.yandex_smart_home.cloud] Failed to connect to Yandex Smart Home cloud
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/backports/aiohttp_resolver.py", line 67, in resolve
resp = await self._resolver.getaddrinfo(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
aiodns.error.DNSError: (12, 'Timeout while contacting DNS servers')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1203, in _create_direct_connection
hosts = await self._resolve_host(host, port, traces=traces)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 880, in _resolve_host
return await asyncio.shield(resolved_host_task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 917, in _resolve_host_with_throttle
addrs = await self._resolver.resolve(host, port, family=self._family)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/backports/aiohttp_resolver.py", line 76, in resolve
raise OSError(msg) from exc
OSError: Timeout while contacting DNS servers
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/yandex_smart_home/cloud.py", line 87, in connect
self._ws = await self._session.ws_connect(self._url, heartbeat=45, compress=15, headers={
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 835, in _ws_connect
resp = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 581, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 944, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host yaha-cloud.ru:443 ssl:default [None]
2024-05-27 21:36:26.176 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.spotify_xtazy is taking over 10 seconds
2024-05-27 21:36:26.186 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f09e4a54830>: Failed to establish a new connection: [Errno -3] Try again')': /v1/me/player?additional_types=episode
2024-05-27 21:36:36.796 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f09e4dd0530>: Failed to establish a new connection: [Errno -3] Try again')': /v1/me/player?additional_types=episode
2024-05-27 21:36:46.176 WARNING (MainThread) [homeassistant.components.media_player] Updating spotify media_player took longer than the scheduled update interval 0:00:30
2024-05-27 21:36:47.107 WARNING (MainThread) [homeassistant.components.sensor] Updating meross_cloud sensor took longer than the scheduled update interval 0:00:30
2024-05-27 21:36:48.006 WARNING (SyncWorker_1) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f09e4a4ed20>: Failed to establish a new connection: [Errno -3] Try again')': /v1/me/player?additional_types=episode
2024-05-27 21:36:48.807 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=61 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=61, family=2, type=2, proto=0, laddr=('0.0.0.0', 36468)>
2024-05-27 21:36:48.808 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 99] Address not available, transport: <_SelectorDatagramTransport fd=63 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=63, family=10, type=2, proto=0, laddr=('::', 49080, 0, 0)>
2024-05-27 21:36:53.801 WARNING (MainThread) [zeroconf] Error with socket 27 (('192.168.1.6', 5353))): [Errno 101] Network unreachable
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1265, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable
Hi @akarabach. This seems to be something not related to the upnp
component. Can you create a new issue for this?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
still a problem
@akarabach, as noted, this seems to be a different problem. Can you create a new issue for this?
The problem
All my devices are suddenly offline and i cant get them online. It happened suddenly overnight
What version of Home Assistant Core has the issue?
core-2024.5.1
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
No response
Link to integration documentation on our website
No response
Diagnostics information
all my devices are suddenly offline
1. Logger: homeassistant.components.upnp Kilde: helpers/update_coordinator.py:347 integrasjon: UPnP/IGD Førs oppstått: 5. mai 2024 kl. 23:29:08 (1 hendelser) Sist logget: 5. mai 2024 kl. 23:29:08
Error fetching Telenor WiFi Ruter II data: Unable to communicate with IGD at: http://10.0.0.138:60000/b12a1629/gatedesc.xml
2. Logger: zeroconf Kilde: /usr/local/lib/python3.12/site-packages/zeroconf/_logger.py:86 Førs oppstått: 5. mai 2024 kl. 23:29:45 (1 hendelser) Sist logget: 5. mai 2024 kl. 23:29:45
Error with socket 24 (('10.0.0.8', 5353))): [Errno 101] Network unreachable Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1265, in sendto self._sock.sendto(data, addr) OSError: [Errno 101] Network unreachable
3. Logger: async_upnp_client.ssdp Kilde: runner.py:190 Førs oppstått: 5. mai 2024 kl. 23:29:27 (2 hendelser) Sist logget: 5. mai 2024 kl. 23:29:57
Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=76 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=76, family=2, type=2, proto=0, laddr=('0.0.0.0', 37399)>
4. Logger: snitun.multiplexer.core Kilde: runner.py:190 Førs oppstått: 5. mai 2024 kl. 23:30:52 (1 hendelser) Sist logget: 5. mai 2024 kl. 23:30:52
Ping fails, no response from peer
5. Logger: async_upnp_client.profiles.profile Kilde: runner.py:190 Førs oppstått: 5. mai 2024 kl. 23:30:44 (2 hendelser) Sist logget: 5. mai 2024 kl. 23:30:53
Failed (re-)subscribing to: uuid:d27f4f98-b826-4597-b0b0-1d0c24f9daf8, reason: UpnpConnectionError('ClientConnectorError(ConnectionKey(host=\'10.0.0.15\', port=9197, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=-7742362021398234993), OSError(113, "Connect call failed (\'10.0.0.15\', 9197)"))', None) Failed (re-)subscribing to: uuid:3ec01247-7912-40a1-88c6-cb21cfe01765, reason: UpnpConnectionError('ClientConnectorError(ConnectionKey(host=\'10.0.0.15\', port=9197, is_ssl=False, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=-7742362021398234993), OSError(113, "Connect call failed (\'10.0.0.15\', 9197)"))', None)
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response