Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matter WebSocket Failed Connection #3050

Closed
djandrew2005 opened this issue May 13, 2023 · 2 comments
Closed

Matter WebSocket Failed Connection #3050

djandrew2005 opened this issue May 13, 2023 · 2 comments

Comments

@djandrew2005
Copy link

Describe the issue you are experiencing

After updating matter addon to version 4.3.1 I can’t access web socket. I restored it to 4.3.0 and it works.

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Matter Server

What is the version of the add-on?

4.3.1

Steps to reproduce the issue

  1. Start server
  2. Add 5580 port for WebSocket
  3. Try to ping the WebSocket

System Health information

System Information

version core-2023.5.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.11
os_name Linux
os_version 6.1.25
arch x86_64
timezone Europe/Athens
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content failed to load: timeout
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.32.1
Stage running
Available Repositories 1349
Downloaded Repositories 5
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 ok
Home Assistant Supervisor
host_os Home Assistant OS 10.1
update_channel beta
supervisor_version supervisor-2023.04.1
agent_version 1.5.1
docker_version 23.0.3
disk_total 30.8 GB
disk_used 9.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api failed to load: timeout
installed_addons AirCast (3.5.3), Studio Code Server (5.5.7), Cloudflared (4.1.5), Terminal & SSH (9.7.0), Matter Server (4.3.1)
Dashboards
dashboards 1
resources 1
views 3
mode storage
Recorder
oldest_recorder_run May 6, 2023 at 10:29 AM
current_recorder_run May 13, 2023 at 1:00 PM
estimated_db_size 28.07 MiB
database_engine sqlite
database_version 3.40.1
Sonoff
version 3.5.1 (122751c)
cloud_online 4 / 4
local_online 4 / 4
Xiaomi Miot Auto
component_version 0.7.8
can_reach_server ok
can_reach_spec ok
logged_accounts 1
total_devices 3

Anything in the Supervisor logs that might be useful for us?

No response

Anything in the add-on logs that might be useful for us?

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 banner: 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
-----------------------------------------------------------
 Add-on: Matter Server
 Matter WebSocket Server for Home Assistant Matter support.
-----------------------------------------------------------
 Add-on version: 4.3.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.1  (amd64 / qemux86-64)
 Home Assistant Core: 2023.5.2
 Home Assistant Supervisor: 2023.04.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service banner successfully started
s6-rc: info: service matter-server: starting
s6-rc: info: service matter-server successfully started
s6-rc: info: service legacy-services: starting
[12:47:46] INFO: Starting Matter Server...
s6-rc: info: service legacy-services successfully started
[12:47:46] INFO: Successfully send discovery information to Home Assistant.
2023-05-13 12:47:47 core-matter-server matter_server.server.stack[126] INFO Initializing CHIP/Matter Controller Stack...
[1683971267.899122][126:126] CHIP:CTL: Setting attestation nonce to random value
[1683971267.900128][126:126] CHIP:CTL: Setting CSR nonce to random value
[1683971267.904169][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
[1683971267.904388][126:126] CHIP:DL: writing settings to file (/tmp/chip_kvs-KDUu5G)
[1683971267.904739][126:126] CHIP:DL: renamed tmp file to file (/tmp/chip_kvs)
[1683971267.907161][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_factory.ini
[1683971267.910239][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_config.ini
[1683971267.910491][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_counters.ini
[1683971267.910665][126:126] CHIP:DL: writing settings to file (/data/chip_counters.ini-sVAYII)
[1683971267.912639][126:126] CHIP:DL: renamed tmp file to file (/data/chip_counters.ini)
[1683971267.912761][126:126] CHIP:DL: NVS set: chip-counters/reboot-count = 2 (0x2)
[1683971267.913657][126:126] CHIP:DL: Got Ethernet interface: enp0s3
[1683971267.914523][126:126] CHIP:DL: Found the primary Ethernet interface:enp0s3
[1683971267.916316][126:126] CHIP:DL: Failed to get WiFi interface
[1683971267.916417][126:126] CHIP:DL: Failed to reset WiFi statistic counts
2023-05-13 12:47:47 core-matter-server PersistentStorage[126] WARNING Initializing persistent storage from file: /data/chip.json
2023-05-13 12:47:47 core-matter-server PersistentStorage[126] WARNING Loading configuration from /data/chip.json...
2023-05-13 12:47:47 core-matter-server chip.TS[126] INFO Last Known Good Time: 2023-04-18T07:39:42
2023-05-13 12:47:47 core-matter-server PersistentStorage[126] INFO SetSdkKey: g/gcc = b'\xd0\x07\x00\x00'
2023-05-13 12:47:47 core-matter-server PersistentStorage[126] INFO Committing...
2023-05-13 12:47:47 core-matter-server PersistentStorage[126] INFO SetSdkKey: g/gdc = b'\xd0\x07\x00\x00'
2023-05-13 12:47:47 core-matter-server PersistentStorage[126] INFO Committing...
2023-05-13 12:47:47 core-matter-server chip.ZCL[126] INFO Using ZAP configuration...
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on vethc6c2ed5 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth6c259e3 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth0f2fce0 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth1ecb2e3 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth11a24d0 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on vethcbd9ff5 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on vethfd826b8 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on vethc6e5797 for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth18391ef for address type IPv4: ../src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-05-13 12:47:47 core-matter-server CertificateAuthorityManager[126] WARNING Loading certificate authorities from storage...
2023-05-13 12:47:47 core-matter-server CertificateAuthority[126] WARNING New CertificateAuthority at index 1
2023-05-13 12:47:48 core-matter-server CertificateAuthority[126] WARNING Loading fabric admins from storage...
2023-05-13 12:47:48 core-matter-server FabricAdmin[126] WARNING New FabricAdmin: FabricId: 0x0000000000000002, VendorId = 0x134B
2023-05-13 12:47:48 core-matter-server PersistentStorage[126] INFO SetReplKey: caList = {'1': [{'fabricId': 2, 'vendorId': 4939}]}
2023-05-13 12:47:48 core-matter-server PersistentStorage[126] INFO Committing...
2023-05-13 12:47:48 core-matter-server matter_server.server.stack[126] INFO CHIP Controller Stack initialized.
2023-05-13 12:47:48 core-matter-server matter_server.server.server[126] INFO Starting the Matter Server...
2023-05-13 12:47:48 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetching the latest PAA root certificates from DCL.
2023-05-13 12:47:58 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetched 82 PAA root certificates from DCL.
2023-05-13 12:47:58 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetching the latest PAA root certificates from Git.
2023-05-13 12:52:58 core-matter-server asyncio[126] ERROR Task exception was never retrieved
future: <Task finished name='Task-1' coro=<run.<locals>.new_coro() done, defined at /usr/local/lib/python3.10/site-packages/aiorun.py:227> exception=TimeoutError()>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiorun.py", line 237, in new_coro
    await coro
  File "/usr/local/lib/python3.10/site-packages/matter_server/server/server.py", line 94, in start
    await self.device_controller.initialize()
  File "/usr/local/lib/python3.10/site-packages/matter_server/server/device_controller.py", line 73, in initialize
    await fetch_certificates()
  File "/usr/local/lib/python3.10/site-packages/matter_server/server/helpers/paa_certificates.py", line 153, in fetch_certificates
    fetch_count += await fetch_git_certificates()
  File "/usr/local/lib/python3.10/site-packages/matter_server/server/helpers/paa_certificates.py", line 126, in fetch_git_certificates
    async with http_session.get(f"{GIT_URL}/{cert}.pem") as response:
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 467, in _request
    with timer:
  File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

Additional information

No response

@agners
Copy link
Member

agners commented May 15, 2023

It seems that fetching the root certificates from GitHub fails.

@marcelveldt maybe we should handle that a bit more gracefully.

In any case, is this still a problem or was that maybe only a temporary issue? Could it be a local network issue (firewall?)

@marcelveldt
Copy link
Member

duplicate of home-assistant-libs/python-matter-server#284

Github has had some issues last couple of weeks. We'll add a guard to catch the timeout error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants