DNS not working
Describe the issue you are experiencing
Since I updated to HA OS 18.x I get many errors of unsuccesful DNS resolves / timeouts. As a result many integrations don't work. When I downgrade to version 17.3 everything works again. I changed the DNS settings to use google servers, but that doesn't work, too.
What operating system image do you use?
generic-x86-64 (Generic UEFI capable x86-64 systems)
What version of Home Assistant Operating System is installed?
18.1
Did the problem occur after upgrading the Operating System?
Yes
Hardware details
Proxmox Container, 8GB RAM, 2 Cores, OVMF Bios, i440fx
Steps to reproduce the issue
- Update HA OS to 18.x
...
Anything in the Supervisor logs that might be useful for us?
2026-07-06 21:52:30.003 ERROR (MainThread) [supervisor.api.utils] Unexpected error during API call:
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/docker/manager.py", line 909, in container_stats
docker_container = await self.containers.get(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiodocker/containers.py", line 116, in get
data = await self.docker._query_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/local/lib/python3.14/site-packages/aiodocker/docker.py", line 556, in _query_json
async with self._query(
~~~~~~~~~~~^
path,
^^^^^
...<6 lines>...
versioned_api=versioned_api,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
) as response:
^
File "/usr/local/lib/python3.14/contextlib.py", line 214, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiodocker/docker.py", line 448, in _query
yield await self._do_query(
^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/local/lib/python3.14/site-packages/aiodocker/docker.py", line 529, in _do_query
raise DockerError(response.status, data["message"])
aiodocker.exceptions.DockerError: [500] RWLayer of container 1b56493ca170514364e10113038a16e9d207cb16a229be55ed6139649a39ca4e is unexpectedly nil
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/plugins/dns.py", line 504, in stats
return await self.instance.stats()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/docker/interface.py", line 666, in stats
stats = await self.sys_docker.container_stats(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/docker/manager.py", line 916, in container_stats
raise DockerError(
f"Could not inspect container '{name}': {err!s}", _LOGGER.error
) from err
supervisor.exceptions.DockerError: Could not inspect container 'hassio_dns': [500] RWLayer of container 1b56493ca170514364e10113038a16e9d207cb16a229be55ed6139649a39ca4e is unexpectedly nil
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/api/utils.py", line 72, in wrap_api
answer = await method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/api/dns.py", line 86, in stats
stats = await self.sys_plugins.dns.stats()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/supervisor/supervisor/plugins/dns.py", line 506, in stats
raise CoreDNSError from err
supervisor.exceptions.CoreDNSError
Anything in the Host logs that might be useful for us?
ha dns status
Error: Could not inspect container 'hassio_dns': [500] RWLayer of container 1b56493ca170514364e10113038a16e9d207cb16a229be55ed6139649a39ca4e is unexpectedly nil
ha dns info
fallback: true
host: 172.30.32.3
llmnr: true
locals:
- dns://192.168.10.1
- dns://192.168.10.3
- dns://8.8.4.4
- dns://8.8.8.8
mdns: true
servers: []
update_available: false
version: 2026.02.0
version_latest: 2026.02.0
System information
System Information
| version | core-2026.7.0 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| container_arch | amd64 |
| user | root |
| virtualenv | false |
| python_version | 3.14.6 |
| os_name | Linux |
| os_version | 6.18.37-haos |
| arch | x86_64 |
| timezone | Europe/Berlin |
| config_dir | /config |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | failed to load: timeout |
| can_reach_cloud_auth | failed to load: timeout |
| can_reach_cloud | failed to load: timeout |
HACS
| error | failed to load: unknown |
|---|
Home Assistant Supervisor
| host_os | Home Assistant OS 18.1 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2026.06.2 |
| agent_version | 1.9.0 |
| docker_version | 29.5.3 |
| disk_total | 70.2 GB |
| disk_used | 53.7 GB |
| nameservers | 8.8.8.8, 8.8.4.4, 192.168.10.1, 192.168.10.3 |
| healthy | true |
| supported | true |
| host_connectivity | true |
| supervisor_connectivity | true |
| ntp_synchronized | true |
| virtualization | kvm |
| board | ova |
| supervisor_api | ok |
| version_api | failed to load: timeout |
| installed_addons | File editor (6.0.0), Terminal & SSH (10.3.0), ESPHome Device Builder (2026.6.4), ESPresense Companion (2.1.2), Hame Relay (1.4.3), hm2mqtt (1.8.1), SQLite Web (6.0.1), Piper (2.2.2), Whisper (3.3.2), TRMNL HA (0.9.0), Studio Code Server (6.0.1), SONOFF Dongle Flasher (1.3.4), Zigbee2MQTT (2.12.1-1), uni-meter (1.5.0), AstraMeter (2.2.4), Get HACS (1.3.1) |
Dashboards
| dashboards | 11 |
|---|---|
| resources | 11 |
| views | 15 |
| mode | storage |
Network Configuration
| adapters | lo (disabled), enp0s18 (enabled, default, auto), docker0 (disabled), hassio (disabled), veth70e0cbb (disabled), veth64360a3 (disabled), veth9035032 (disabled), vetha662458 (disabled), veth6df74c2 (disabled), veth85a9053 (disabled), vetha86663c (disabled) |
|---|---|
| ipv4_addresses | lo (127.0.0.1/8), enp0s18 (192.168.10.11/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), veth70e0cbb (), veth64360a3 (), veth9035032 (), vetha662458 (), veth6df74c2 (), veth85a9053 (), vetha86663c () |
| ipv6_addresses | lo (::1/128), enp0s18 (fe80::c21e:3adc:2b9b:6e1b/64), docker0 (fd2f:690:b260::1/64, fe80::fcba:21ff:fee8:4a2/64), hassio (fd0c:ac1e:2100::1/48, fe80::6435:eaff:fee3:9603/64), veth70e0cbb (fe80::844:efff:fe77:2709/64), veth64360a3 (fe80::803d:94ff:fe6e:dea0/64), veth9035032 (fe80::c889:baff:feec:afa4/64), vetha662458 (fe80::2075:e8ff:feb4:ee2b/64), veth6df74c2 (fe80::949c:44ff:fe1c:75f0/64), veth85a9053 (fe80::681d:daff:fe1c:9386/64), vetha86663c (fe80::3c92:beff:fea0:df09/64) |
| announce_addresses | 192.168.10.11, fe80::c21e:3adc:2b9b:6e1b |
Recorder
| oldest_recorder_run | 5. Juli 2025 um 13:01 |
|---|---|
| current_recorder_run | 6. Juli 2026 um 21:40 |
| estimated_db_size | 27829.80 MiB |
| database_engine | sqlite |
| database_version | 3.53.2 |
Additional information
No response
The symptoms described here indicate local corruption of the Docker image storage. This typically happens when the system loses power or is reset while Docker writes an image to disk, or due to failing storage. Docker verifies image checksums only while pulling — once an image is written to disk, its integrity is not checked again, so such corruption can stay dormant until the affected container is recreated (e.g. on a host reboot).
Note that deleting and re-pulling the affected image does not necessarily help: image layers are shared between images and reused across versions, and docker pull skips layers it believes are already present locally.
To recover, make a full backup, download it, then reinstall Home Assistant OS and restore the backup. A dedicated feature to reset the Docker image storage is tracked in #6555.
That worked, thank you!
@sairon I had Claude looking into these Docker issues a bit more, and it found something interesting on this particular case:
- Docker ≤29.1.3 (HAOS 17.x): on daemon startup, the container-restore path dropped containers whose mount metadata was corrupt. The container simply vanished from Docker's view, Supervisor noticed the DNS plugin container was missing and recreated it. The system self-healed by accident.
- Docker ≥29.4.0 (HAOS 18.x, via moby/moby#51724): the same failure now keeps the container registered with a nil RWLayer — upstream did this deliberately so users can at least docker rm the broken container instead of it disappearing mysteriously. But for Supervisor this is poison: it sees the container present, gets a 500 on every operation, and never force-recreates it. And since the stale on-disk record survives OS up/downgrades, users observed "18.x always broken, 17.3 always works" — which looked exactly like an OS regression, but wasn't.
There are a 7 Sentry issues with this exact messaging. We potentially can work round this by blowing away the container on Supervisor level.
Anyone finding this, can you try this commands in the HAOS shell (keyboard/mouse and use login) and report if that helped?
docker stop hassio_dns
docker rm -f hassio_dns
ha supervisor restart
I reopen this for now.
Ok, this is actually quite a bit bigger, tracking in Supervisor: https://github.com/home-assistant/supervisor/issues/7182
We've taken steps to reduce Docker image corruption in #4994 by syncing image layers to disk after unpacking, reducing the risk of corruption after an unexpected power loss. This does not repair storage that is already corrupted.
For recovery, we now have ha docker reset-storage, which wipes Docker storage and downloads all container images again while keeping Home Assistant and app configuration and data - this requires working internet access to download the images again.
The related RWLayer is unexpectedly nil error is covered in home-assistant/supervisor#7182. There's currently nothing else actionable in this ticket, so I'm closing it as resolved.