home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.49k stars 30.33k forks source link

OSError: [Errno 99] Address not available #90495

Closed unDemian closed 11 months ago

unDemian commented 1 year ago

The problem

It keeps happening every other day, I end up with all devices not responding in the HomeKit app, nod red automations not working and seems like HA is basically dead, however I can access the UI and restarting it fixes all the problems.

What version of Home Assistant Core has the issue?

core-2023.3.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-03-30 01:56:50.316 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hassio/issues.py", line 157, in update
    data = await self._client.get_resolution_info()
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 51, in _wrapper
    raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: System is not ready with state: setup
2023-03-30 01:56:51.045 WARNING (MainThread) [zeroconf] Error with socket 12 (('::', 5353, 0, 0))): [Errno 99] Address not available
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 1062, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 99] Address not available
2023-03-30 01:56:53.152 WARNING (MainThread) [zeroconf] Error with socket 14 (('192.168.1.198', 5353))): [Errno 101] Network unreachable
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 1062, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable
2023-03-30 01:56:57.589 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=29 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=29, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 32890)>
2023-03-30 01:56:57.743 WARNING (MainThread) [homeassistant.components.apple_tv] Connection lost to Apple TV "Living"
2023-03-30 01:57:10.259 ERROR (MainThread) [homeassistant.components.gogogate2.common] Error fetching gogogate2 data: Error communicating with API: 
2023-03-30 01:57:11.209 ERROR (MainThread) [homeassistant.components.gogogate2.common] Error fetching gogogate2 data: Error communicating with API: 
2023-03-30 01:57:14.652 WARNING (MainThread) [homeassistant.components.unifi] Lost connection to UniFi Network
2023-03-30 01:57:27.333 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for camera.vacuum_map exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2023-03-30 01:57:27.603 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=29 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=29, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 32890)>
2023-03-30 01:57:35.478 WARNING (MainThread) [roborock.api] Roborock mqtt client disconnected (rc: 16)
2023-03-30 01:57:57.607 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=29 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=29, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 32890)>
2023-03-30 01:57:58.022 ERROR (MainThread) [homeassistant.components.unifiprotect.data] Auth error while updating
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/unifiprotect/data.py", line 129, in async_refresh
    updates = await self.api.update(force=force)
  File "/usr/local/lib/python3.10/site-packages/pyunifiprotect/api.py", line 608, in update
    events = await self.get_events(start=self._last_update_dt or max_event_dt, end=now_dt)
  File "/usr/local/lib/python3.10/site-packages/pyunifiprotect/api.py", line 716, in get_events
    response = await self.get_events_raw(
  File "/usr/local/lib/python3.10/site-packages/pyunifiprotect/api.py", line 686, in get_events_raw
    return await self.api_request_list("events", params=params)
  File "/usr/local/lib/python3.10/site-packages/pyunifiprotect/api.py", line 344, in api_request_list
    data = await self.api_request(
  File "/usr/local/lib/python3.10/site-packages/pyunifiprotect/api.py", line 310, in api_request
    data = await self.api_request_raw(
  File "/usr/local/lib/python3.10/site-packages/pyunifiprotect/api.py", line 285, in api_request_raw
    raise NotAuthorized(msg % (url, response.status, reason))
pyunifiprotect.exceptions.NotAuthorized: Request failed: /proxy/protect/api/events - Status: 401 - Reason: Unauthorized
2023-03-30 01:58:21.321 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=20 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=20, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 54874)>
2023-03-30 01:58:27.617 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=29 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=29, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 32890)>
2023-03-30 01:58:42.332 WARNING (MainThread) [pymiele.pymiele] Ping timeout, closing connection and restarting
2023-03-30 01:58:45.005 ERROR (MainThread) [snitun.multiplexer.core] Ping fails, no response from peer
2023-03-30 01:58:57.629 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=29 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=29, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 32890)>

Additional information

I am running it on a M1 mac mini in a UTM virtual machine, the network is setup using Unifi and I cannot find any problems in the networking logs.


Development | false
-- | --
Supervisor | true
Docker | true
User | root
Virtual Environment | false
Python Version | 3.10.10
Operating System Family | Linux
Operating System Version | 5.10.0-21-arm64
CPU Architecture | aarch64
Configuration Directory | /config

Host Operating System | Debian GNU/Linux 11 (bullseye)
-- | --
Update Channel | stable
Supervisor Version | supervisor-2023.03.3
Agent Version | 1.2.2
Docker Version | 20.10.21
Disk Total | 61.3 GB
Disk Used | 24.6 GB
Healthy | true
Supported | Unsupported
Supervisor API | ok
Version API | ok
Installed Add-ons | Tautulli (3.2.4), Studio Code Server (5.5.5), MariaDB (2.5.2), phpMyAdmin (0.8.5), InfluxDB (4.6.0), Node-RED (14.1.3), Nginx Proxy Manager (0.12.3), Grafana (8.2.1), Terminal & SSH (9.6.1), Mosquitto broker (6.2.0), Ring-MQTT with Video Streaming (5.2.0), Glances (0.18.1), Home Assistant Google Drive Backup (0.110.3), Bookstack (1.6.1)
tmilner commented 1 year ago

This happens to me as well and only after updating to the most recent version of Core.

Home Assistant 2023.3.6 Supervisor 2023.03.3 Operating System 9.5 Frontend 20230309.1 - latest

andrew-kennedy commented 1 year ago

I'm also getting many address not available errors, running in podman with Home Assistant 2023.5.2 Frontend 20230503.3 - latest

issue-triage-workflows[bot] commented 1 year ago

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.

unDemian commented 1 year ago

Still experiencing this

issue-triage-workflows[bot] commented 11 months ago

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.