Invalid config after restart of HA go2rtc and default_config
The problem
sometimes when I restart HA I find the following persistent notification:
Invalid config The following integrations and platforms could not be set up:
• go2rtc (Show logs) • default_config (Show logs) Please check your config and logs.
HA seems to work fine and I have not seen any strange behavior (also not sure what these things are and what they do)
This does not happen consistently and every time but rather randomly since a few weeks.
What version of Home Assistant Core has the issue?
2025.2.5
What was the last working version of Home Assistant Core?
sometime in 2024
What type of installation are you running?
Home Assistant OS
Integration causing the issue
not sure
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
2025-03-02 14:54:23.385 WARNING (MainThread) [homeassistant.setup] Setup of go2rtc is taking over 10 seconds.
2025-03-02 14:54:34.368 WARNING (MainThread) [homeassistant.components.go2rtc] Could not start go2rtc server
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 703, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
req, traces=traces, timeout=real_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 548, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1056, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
sock = await aiohappyeyeballs.start_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 78, in start_connection
sock, _, _ = await _staggered.staggered_race(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/_staggered.py", line 160, in staggered_race
done = await _wait_one(
^^^^^^^^^^^^^^^^
(*tasks, start_next) if start_next else tasks, loop
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/_staggered.py", line 41, in _wait_one
return await wait_next
^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/__init__.py", line 129, in async_setup
await server.start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 98, in start
await self._start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 137, in _start
await client.validate_server_version()
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 56, in _func
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 157, in validate_server_version
application_info = await self.application.get_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 56, in _func
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 81, in get_info
resp = await self._client.request("GET", self.PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 62, in request
resp = await self._session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 607, in _request
with timer:
^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/helpers.py", line 671, in __exit__
raise asyncio.TimeoutError from exc_val
TimeoutError
2025-03-02 14:54:34.478 ERROR (MainThread) [homeassistant.setup] Setup failed for 'go2rtc': Integration failed to initialize.
2025-03-02 14:54:35.263 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['go2rtc']
2025-03-02 14:54:35.263 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: go2rtc
Additional information
No response
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (go2rtc) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of go2rtc can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign go2rtcRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
go2rtc documentation go2rtc source (message by IssueLinks)
Hi, with the latest update 2025.3 I also started to get the same report. As mentioned above it seems that homeassistant is working correctly but I keep getting the alert every time I reboot
Same here
I started receiving this issue after updating Home Assistant Core to 2025.3.1 on my RPi 4. This wasn't present in the previous release.
As with other users, I have also started receiving the same error message since updating to 2025.3
I started receiving this issue after updating to 2025.2.5
Please report how you are running Home Assistant and on which device. This will help to reproduce the issue
I for my part am running Home Assistant OS on a Home Assistant Yellow with a CM4 module and from an NVMe SSD
I wonder for how long I will keep seeing this spam in my Log? Started in 2024.11 and still there. Possibly related issues are closed by devs or get stale.
I am NOT using any camera integrations.
2025.3.0.
HA in Container (official).
2025-03-20 04:01:21.833 ERROR (MainThread) [homeassistant.components.go2rtc.server] Go2rtc server didn't start correctly
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 127, in _start
await self._startup_complete.wait()
File "/usr/local/lib/python3.13/asyncio/locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 126, in _start
async with asyncio.timeout(_SETUP_TIMEOUT):
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
raise TimeoutError from exc_val
TimeoutError
2025-03-20 04:01:21.836 WARNING (MainThread) [homeassistant.components.go2rtc.server] 04:00:51.053 INF go2rtc platform=linux/amd64 revision=199fdd6 version=1.9.8
2025-03-20 04:01:21.836 WARNING (MainThread) [homeassistant.components.go2rtc.server] 04:00:51.053 INF config path=/tmp/go2rtc_gok5saif.yaml
2025-03-20 04:01:21.837 WARNING (MainThread) [homeassistant.components.go2rtc.server] 04:00:51.053 ERR [rtsp] listen error="listen tcp 127.0.0.1:18554: bind: address already in use"
2025-03-20 04:01:21.837 WARNING (MainThread) [homeassistant.components.go2rtc.server] 04:00:51.053 INF [webrtc] listen addr=:18555/tcp
2025-03-20 04:01:21.837 WARNING (MainThread) [homeassistant.components.go2rtc.server] 04:00:51.060 ERR [api] listen error="listen tcp 127.0.0.1:11984: bind: address already in use"
2025-03-20 04:01:21.839 WARNING (MainThread) [homeassistant.components.go2rtc.server] exit with signal: terminated
2025-03-20 04:01:21.839 WARNING (MainThread) [homeassistant.components.go2rtc] Could not start go2rtc server
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 127, in _start
await self._startup_complete.wait()
File "/usr/local/lib/python3.13/asyncio/locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 126, in _start
async with asyncio.timeout(_SETUP_TIMEOUT):
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
raise TimeoutError from exc_val
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/__init__.py", line 129, in async_setup
await server.start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 98, in start
await self._start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 133, in _start
raise Go2RTCServerStartError from err
homeassistant.components.go2rtc.server.Go2RTCServerStartError: Go2rtc server didn't start correctly
2025-03-20 04:01:21.841 ERROR (MainThread) [homeassistant.setup] Setup failed for 'go2rtc': Integration failed to initialize.
2025-03-20 04:01:21.842 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['go2rtc']
2025-03-20 04:01:21.842 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: go2rtc
Earlier reported about a similar error on a setup with a generic camera integration.
Same Problem here:
On Docker installed: Core 2025.4.2 Frontend 20250411.0
Errors on startup. But all MotionEye Cam`s arr working.
Logger: homeassistant.setup
Quelle: setup.py:252
Erstmals aufgetreten: 13. April 2025 um 09:12:09 (1 Vorkommnisse)
Zuletzt protokolliert: 13. April 2025 um 09:12:09
Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['go2rtc']
Logger: homeassistant.setup
Quelle: setup.py:275
Erstmals aufgetreten: 13. April 2025 um 09:12:04 (2 Vorkommnisse)
Zuletzt protokolliert: 13. April 2025 um 09:12:09
Setup failed for 'go2rtc': Integration failed to initialize.
Setup failed for 'default_config': Could not setup dependencies: go2rtc
Logger: homeassistant.components.go2rtc
Quelle: components/go2rtc/__init__.py:129
Integration: go2rtc (Dokumentation, Probleme)
Erstmals aufgetreten: 13. April 2025 um 09:12:04 (1 Vorkommnisse)
Zuletzt protokolliert: 13. April 2025 um 09:12:04
Could not start go2rtc server
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
sock = await aiohappyeyeballs.start_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 122, in start_connection
raise first_exception
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 73, in start_connection
sock = await _connect_sock(
^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock
await loop.sock_connect(sock, address)
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.1.1', 11984)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 62, in request
resp = await self._session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 703, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
req, traces=traces, timeout=real_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 548, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1056, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:11984 ssl:default [Connect call failed ('127.0.1.1', 11984)]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 56, in _func
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 81, in get_info
resp = await self._client.request("GET", self.PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 65, in request
raise ClientError(msg) from err
aiohttp.client_exceptions.ClientError: Server communication failure: Cannot connect to host localhost:11984 ssl:default [Connect call failed ('127.0.1.1', 11984)]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/__init__.py", line 129, in async_setup
await server.start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 98, in start
await self._start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 137, in _start
await client.validate_server_version()
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 56, in _func
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 157, in validate_server_version
application_info = await self.application.get_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 66, in _func
raise Go2RtcClientError from exc
go2rtc_client.exceptions.Go2RtcClientError
Same issue here with gortc failing with TimeoutError. Running Home Assistant OS in a libvirt/qemu VM.
This seems to prevent proper HA startup, and it is now loaded by default in HA. As a workaround to this issue, this extension can disable gortc from the default config: https://github.com/tronikos/default_config_disabler.
can disable gortc from the default config: https://github.com/tronikos/default_config_disabler.
@rocketraman Thanks, default_config_disabler solves the problem
Sorry for the delay but I was not assigned to this issue and forgotten about it To ensure, you did not modify the go2rtc or the default_config in your configuration.yaml file, correct?
Sorry for the delay but I was not assigned to this issue and forgotten about it To ensure, you did not modify the go2rtc or the default_config in your configuration.yaml file, correct?
In my case, no, I did not modify go2rtc or the default_config.
@rocketraman As you are not the original author can you please share how you run HA by sharing the system information (Can be found under Settings -> System -> Repairs -> three dots on the upper right corner)
can you please share how you run HA by sharing the system information
System Information
| version | core-2025.5.1 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.13.3 |
| os_name | Linux |
| os_version | 6.12.23-haos |
| arch | x86_64 |
| timezone | America/Toronto |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| HACS Data | ok |
| GitHub API Calls Remaining | 4993 |
| Installed Version | 2.0.5 |
| Stage | running |
| Available Repositories | 1736 |
| Downloaded Repositories | 4 |
Home Assistant Cloud
| logged_in | true |
|---|---|
| subscription_expiration | November 27, 2025 at 7:00 PM |
| relayer_connected | true |
| relayer_region | us-east-1 |
| remote_enabled | true |
| remote_connected | true |
| alexa_enabled | true |
| google_enabled | true |
| cloud_ice_servers_enabled | true |
| remote_server | us-east-1-13.ui.nabu.casa |
| certificate_status | ready |
| instance_id | 4be284e30ce6444e9a56dad5ec06d9f1 |
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 15.2 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2025.05.0 |
| agent_version | 1.7.2 |
| docker_version | 28.0.4 |
| disk_total | 30.8 GB |
| disk_used | 6.1 GB |
| healthy | true |
| supported | true |
| host_connectivity | true |
| supervisor_connectivity | true |
| ntp_synchronized | true |
| virtualization | qemu |
| board | ova |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | Mosquitto broker (6.5.1), Terminal & SSH (9.17.0), Z-Wave JS (0.13.1), Tailscale (0.25.0), File editor (5.8.0), Matter Server (7.0.0) |
Dashboards
| dashboards | 3 |
|---|---|
| resources | 0 |
| views | 1 |
| mode | storage |
Network Configuration
| adapters | lo (disabled), enp0s2 (enabled, default, auto), docker0 (disabled), hassio (disabled), veth57b8ffb (disabled), vetha5def2e (disabled), veth4723f0f (disabled), vethb1e9725 (disabled), veth3476ab8 (disabled), veth812fc9b (disabled), veth4f0c1ea (disabled), veth9aaecc2 (disabled) |
|---|---|
| ipv4_addresses | lo (127.0.0.1/8), enp0s2 (192.168.2.30/24), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), veth57b8ffb (), vetha5def2e (), veth4723f0f (), vethb1e9725 (), veth3476ab8 (), veth812fc9b (), veth4f0c1ea (), veth9aaecc2 () |
| ipv6_addresses | lo (::1/128), enp0s2 (fe80::a0df:f55b:2156:b228/64), docker0 (fe80::5c66:80ff:fe06:db61/64), hassio (fe80::84cf:d6ff:fefd:7dfd/64), veth57b8ffb (fe80::7c96:85ff:fedc:9df9/64), vetha5def2e (fe80::5c43:b3ff:fe8b:e821/64), veth4723f0f (fe80::c48c:dcff:feb9:cabf/64), vethb1e9725 (fe80::94ec:c2ff:fe90:ae5/64), veth3476ab8 (fe80::5822:48ff:fe83:3423/64), veth812fc9b (fe80::6498:b8ff:feae:be2a/64), veth4f0c1ea (fe80::3cfd:eff:fe03:91b/64), veth9aaecc2 (fe80::1081:42ff:fe47:510e/64) |
| announce_addresses | 192.168.2.30, fe80::a0df:f55b:2156:b228 |
Recorder
| oldest_recorder_run | May 2, 2025 at 3:34 PM |
|---|---|
| current_recorder_run | May 11, 2025 at 1:39 AM |
| estimated_db_size | 226.67 MiB |
| database_engine | sqlite |
| database_version | 3.48.0 |
@rocketraman, please provide more about your hardware as you run HAOS virtualized. I'm currently not able to reproduce the issue and I assume it's probably a specific hardware/architecture
@rocketraman, please provide more about your hardware as you run HAOS virtualized. I'm currently not able to reproduce the issue and I assume it's probably a specific hardware/architecture
The physical hardware is an older AMD box. I have attached a report from hwinfo:
Maybe a good change would be to make go2rtc report better error output to the logs when it fails? That may help narrow down the issue.
Not your typical setup but I first noticed this on https://github.com/ludeeus/integration_blueprint
System Information
| version | core-2025.2.4 |
|---|---|
| installation_type | Unsupported Third Party Container |
| dev | false |
| hassio | false |
| docker | true |
| user | vscode |
| virtualenv | false |
| python_version | 3.13.1 |
| os_name | Linux |
| os_version | 5.15.167.4-microsoft-standard-WSL2 |
| arch | x86_64 |
| timezone | America/Chicago |
| config_dir | /workspaces/integration_blueprint/config |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Dashboards
| dashboards | 1 |
|---|---|
| resources | 0 |
| mode | auto-gen |
Network Configuration
| adapters | lo (disabled), eth0 (enabled, default, auto) |
|---|---|
| ipv4_addresses | lo (127.0.0.1/8), eth0 (10.88.0.7/16) |
| ipv6_addresses | lo (::1/128), eth0 (fe80::3c2c:d6ff:fe47:7b2a/64) |
| announce_addresses | 10.88.0.7, fe80::3c2c:d6ff:fe47:7b2a |
Recorder
| oldest_recorder_run | May 15, 2025 at 2:06 PM |
|---|---|
| current_recorder_run | May 15, 2025 at 9:06 AM |
| estimated_db_size | 0.18 MiB |
| database_engine | sqlite |
| database_version | 3.40.1 |
I'll try to add some info, having the same problem. Very strange, on my laptop the issue does not occur. On my home server the issue is 100% reproducible. It is sufficient to spin up a completely new home assistant container and the following will always happen on my home server. I then stop the container with ctrl+c and during shutdown there is another error about event loop closed.
docker run \
--name homeassistant \
--restart=unless-stopped \
-v /run/dbus:/run/dbus:ro \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
2025-08-04 22:04:20.362 WARNING (MainThread) [homeassistant.setup] Setup of go2rtc is taking over 10 seconds.
2025-08-04 22:04:20.970 WARNING (MainThread) [homeassistant.components.go2rtc] Could not start go2rtc server
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 770, in _request
resp = await handler(req)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 725, in _connect_and_send_request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
req, traces=traces, timeout=real_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 642, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1209, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1550, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1268, in _wrap_create_connection
sock = await aiohappyeyeballs.start_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 87, in start_connection
sock, _, _ = await _staggered.staggered_race(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<13 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/_staggered.py", line 165, in staggered_race
done = await _wait_one(
^^^^^^^^^^^^^^^^
(*tasks, start_next) if start_next else tasks, loop
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/_staggered.py", line 46, in _wait_one
return await wait_next
^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/go2rtc/__init__.py", line 133, in async_setup
await server.start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 98, in start
await self._start()
File "/usr/src/homeassistant/homeassistant/components/go2rtc/server.py", line 137, in _start
await client.validate_server_version()
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 56, in _func
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 157, in validate_server_version
application_info = await self.application.get_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/exceptions.py", line 56, in _func
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 81, in get_info
resp = await self._client.request("GET", self.PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/go2rtc_client/rest.py", line 62, in request
resp = await self._session.request(method, url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 622, in _request
with timer:
^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/helpers.py", line 685, in __exit__
raise asyncio.TimeoutError from exc_val
TimeoutError
2025-08-04 22:04:20.976 ERROR (MainThread) [homeassistant.setup] Setup failed for 'go2rtc': Integration failed to initialize.
2025-08-04 22:04:20.976 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['go2rtc']
2025-08-04 22:04:20.976 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': Could not setup dependencies: go2rtc
^Cs6-rc: info: service legacy-services: stopping
Unable to find configuration. Creating default one in /config
Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7f388ce327a0>
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/base_subprocess.py", line 130, in __del__
self.close()
File "/usr/local/lib/python3.13/asyncio/base_subprocess.py", line 107, in close
proto.pipe.close()
File "/usr/local/lib/python3.13/asyncio/unix_events.py", line 603, in close
self._close(None)
File "/usr/local/lib/python3.13/asyncio/unix_events.py", line 627, in _close
self._loop.call_soon(self._call_connection_lost, exc)
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 827, in call_soon
self._check_closed()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 550, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[22:04:44] INFO: Home Assistant Core finish process exit code 0
[22:04:44] INFO: Home Assistant Core service shutdown
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
These ports are definitely not in use on the host. Well unless home assistant container is running. Then I see that gortc binds to them. It does so even though it prints the error message about port already in use (it is not in my log for some reason, but I saw it a couple of time during trial and error, looked like the log posted above). I compared installed packages on the both hosts and there is not much difference. Both hosts run arch linux and have latest updates installed.
When I start the container without --network=host the issue does not occur, but as said these ports are definitely not in use.
This just started for me today, on 2025.9.4. Running on a Raspberry Pi4, no changes to my configuration.
We are unable to reproduce this issue... I'm sorry, but I have no clue at the moment what the issue can be A new go2rtc version is included in HA 2025.11, which bumped the dependencies and go version. Please test it, when it's out and report back if the issue still exists
Same issue. It all started after the latest major HA version upgrade I think.