home-assistant / addons

:heavy_plus_sign: Docker add-ons for Home Assistant
https://home-assistant.io/hassio/
Apache License 2.0
1.52k stars 1.47k forks source link

Matter Server add-on still starts after stop, although Watchdog is of #3125

Closed PvdGulik closed 1 year ago

PvdGulik commented 1 year ago

Describe the issue you are experiencing

After stopping the Matter Server addon, it still start after aprox. 1 min. although I have set Watchdog on off. I expect it to be stay stopped.

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.8.2

Steps to reproduce the issue

  1. Install Matter Server add-on
  2. Set Watchdog on off
  3. Stop the Matter Server add-on ...

System Health information

System Information

version core-2023.6.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.4
os_name Linux
os_version 6.1.21-v8
arch aarch64
timezone Europe/Amsterdam
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.32.1 Stage | running Available Repositories | 1266 Downloaded Repositories | 2
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.3 -- | -- update_channel | stable supervisor_version | supervisor-2023.06.4 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 28.6 GB disk_used | 11.8 GB healthy | true supported | true board | rpi3-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.6.0), Advanced SSH & Web Terminal (15.0.2), Samba share (10.0.2), Mosquitto broker (6.2.1), ESPHome (2023.6.4), Matter Server (4.8.2), Ring-MQTT with Video Streaming (5.4.1)
Dashboards dashboards | 5 -- | -- resources | 0 views | 4 mode | storage
Recorder oldest_recorder_run | 26 juni 2023 om 16:57 -- | -- current_recorder_run | 5 juli 2023 om 12:46 estimated_db_size | 376.82 MiB database_engine | sqlite database_version | 3.41.2

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

none!

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

Last time I stopped the Matter service @ 13:53:05

Matter Server
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.8.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.3  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2023.6.3
 Home Assistant Supervisor: 2023.06.4
-----------------------------------------------------------
 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
[13:53:35] INFO: Starting Matter Server...
s6-rc: info: service matter-server successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[13:53:39] INFO: Successfully send discovery information to Home Assistant.
2023-07-05 13:53:46 core-matter-server matter_server.server.stack[126] INFO Initializing CHIP/Matter Controller Stack...
[1688558026.131917][126:126] CHIP:CTL: Setting attestation nonce to random value
[1688558026.132325][126:126] CHIP:CTL: Setting CSR nonce to random value
[1688558026.135597][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
[1688558026.139360][126:126] CHIP:DL: writing settings to file (/tmp/chip_kvs-SAf8vI)
[1688558026.139837][126:126] CHIP:DL: renamed tmp file to file (/tmp/chip_kvs)
[1688558026.140454][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_factory.ini
[1688558026.140848][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_config.ini
[1688558026.141308][126:126] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /data/chip_counters.ini
[1688558026.142355][126:126] CHIP:DL: writing settings to file (/data/chip_counters.ini-1fG4CI)
[1688558026.143550][126:126] CHIP:DL: renamed tmp file to file (/data/chip_counters.ini)
[1688558026.143690][126:126] CHIP:DL: NVS set: chip-counters/reboot-count = 17 (0x11)
[1688558026.145402][126:126] CHIP:DL: Got Ethernet interface: eth0
[1688558026.146648][126:126] CHIP:DL: Found the primary Ethernet interface:eth0
[1688558026.148050][126:126] CHIP:DL: Got WiFi interface: wlan0
[1688558026.148212][126:126] CHIP:DL: Failed to reset WiFi statistic counts
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] WARNING Initializing persistent storage from file: /data/chip.json
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] WARNING Loading configuration from /data/chip.json...
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] INFO SetSdkKey: g/gcc = b'hB\x00\x00'
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] INFO SetSdkKey: g/gdc = b'hB\x00\x00'
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on wlan0 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth2036799 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth1b7f14d for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth775ed88 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth938c877 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth277250a for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server chip.DL[126] ERROR MDNS failed to join multicast group on veth8ceff58 for address type IPv4: src/inet/UDPEndPointImplSockets.cpp:764: Inet Error 0x00000110: Address not found
2023-07-05 13:53:46 core-matter-server CertificateAuthorityManager[126] WARNING Loading certificate authorities from storage...
2023-07-05 13:53:46 core-matter-server CertificateAuthority[126] WARNING New CertificateAuthority at index 1
2023-07-05 13:53:46 core-matter-server CertificateAuthority[126] WARNING Loading fabric admins from storage...
2023-07-05 13:53:46 core-matter-server FabricAdmin[126] WARNING New FabricAdmin: FabricId: 0x0000000000000002, VendorId = 0x134B
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] INFO SetReplKey: caList = {'1': [{'fabricId': 2, 'vendorId': 4939}]}
2023-07-05 13:53:46 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:46 core-matter-server matter_server.server.stack[126] INFO CHIP Controller Stack initialized.
2023-07-05 13:53:46 core-matter-server matter_server.server.server[126] INFO Starting the Matter Server...
2023-07-05 13:53:46 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetching the latest PAA root certificates from DCL.
/usr/local/lib/python3.11/site-packages/matter_server/server/helpers/paa_certificates.py:46: CryptographyDeprecationWarning: The parsed certificate contains a NULL parameter value in its signature algorithm parameters. This is invalid and will be rejected in a future version of cryptography. If this certificate was created via Java, please upgrade to JDK16+ or the latest JDK11 once a fix is issued. If this certificate was created in some other fashion please report the issue to the cryptography issue tracker. See https://github.com/pyca/cryptography/issues/8996 for more details.
  pem_certificate = x509.load_pem_x509_certificate(certificate.encode())
2023-07-05 13:53:53 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetched 95 PAA root certificates from DCL.
2023-07-05 13:53:53 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetching the latest PAA root certificates from Git.
2023-07-05 13:53:54 core-matter-server matter_server.server.helpers.paa_certificates[126] INFO Fetched 2 PAA root certificates from Git.
2023-07-05 13:53:54 core-matter-server FabricAdmin[126] WARNING Allocating new controller with CaIndex: 1, FabricId: 0x0000000000000002, NodeId: 0x000000000001B669, CatTags: []
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO SetSdkKey: g/fs/c = b'\x15$\x00\x01(\x01\x18'
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO SetSdkKey: f/1/m = b'\x15%\x00K\x13,\x01\x00\x18'
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO SetSdkKey: f/1/n = b'\x150\x01\x01\x01$\x02\x017\x03$\x13\x02\x18&\x04\x80"\x81\'&\x05\x80%M:7\x06$\x15\x02&\x11i\xb6\x01\x00\x18$\x07\x01$\x08\x010\tA\x04~\xe4\n\xecD\xe2F\xb8L\\:A\xdd\xe6\x8d\x1e\xfa\xcdO\xd2H\xa9L\xa8\xa1\x96\x8c\xbf\x9cs\xc4\x13k\xdf\xd2}\xc6S\nH\xdb*\x83\x00\xd9\n\xce\xfa\x1f\xf9\t\xd8s\x08\x86\x00d\xfc\xc2C\x98Z\xa3X7\n5\x01(\x01\x18$\x02\x016\x03\x04\x02\x04\x01\x180\x04\x14\x06o\x91\xd9@\xda\xa2\x1a\xdc\xe0o\x89\xe6\x0b\xb7\xbd\xbdA\'\x910\x05\x14\x83\x9a\xec\xcew\xdd\x88\xa4jLa\xa0\xbe\xe5\xa7s^\x15n\x81\x180\x0b@w\x02Z\x91\xdd\xeb/\xf2\xe6\xd7\x1eu\x0c\xad\x8fH\xc9\xb8\xc9@\xcaB\xa9cv\xbd\x17/eO\x9b\xbbf^\x08\x87\xd9a\x1f\xf6\x89&\x80\x94\x8a\xff\x97\x97\xf7[D\xab+n\x01\x04G\xf1\xf4\xd1UNG\xd4\x18'
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO SetSdkKey: f/1/i = b'\x150\x01\x01\x01$\x02\x017\x03$\x14\x01\x18&\x04\x80"\x81\'&\x05\x80%M:7\x06$\x13\x02\x18$\x07\x01$\x08\x010\tA\x04\x0f5\xe0\xe7G\xde\xc3\xa1\x05\xc7-\xaa\xbb\xe5\x04\xe8\xc8\x1b\xc2-\x9d]R\xdd\xd1\xc1H\xd1])\xdc%\'\xc0\xab\xf9\xd9\xd9\xf9)\xf13\xbe\xa7J\x92-\x1cN\xbe\x85L\x8dS\xc7&\xe4\xa6x\x9a>\xec\xf8\xcf7\n5\x01)\x01\x18$\x02`0\x04\x14\x83\x9a\xec\xcew\xdd\x88\xa4jLa\xa0\xbe\xe5\xa7s^\x15n\x810\x05\x14\xa8\xde$%\x17\xa1!\xe9\xc2\x83\x8e\x00Z\xadf\x08.X\x10\x8b\x180\x0b@*\xb2(qr\xe2\x0e\xa5\xc6a[\xb6/J\\\x8f\xf7\xe3\xbb\xba\xe4`\xef\x9b\x1e,\x0f\x84\x8aV\xb1\xe7\x8e.S\x0c\r\xa6\x9a\xf8\xe6=y1\x10\x95\xa0>x\xd1\xb3\xfb_\xb2x\xf0\x17B\xf9\xb8\xe8c\xbf!\x18'
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO SetSdkKey: g/lkgt = b'\x15&\x00\r\x80\x0c,\x18'
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO DeleteSdkKey: g/fs/c
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO SetSdkKey: f/1/k/0 = b'\x15$\x01\x00$\x02\x016\x03\x15$\x04\x00%\x05|\xf40\x06\x10>p$\xfc?9\x93\xc8\x96\xa3\xce\x02\x0f\xcb\x04\xcd\x18\x15$\x04\x00$\x05\x000\x06\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x15$\x04\x00$\x05\x000\x06\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18%\x07\xff\xff\x18'
2023-07-05 13:53:54 core-matter-server PersistentStorage[126] INFO Committing...
2023-07-05 13:53:54 core-matter-server chip.DL[126] ERROR Long dispatch time: 511 ms, for event type 2
2023-07-05 13:53:54 core-matter-server matter_server.server.vendor_info[126] INFO Loading vendor info from storage.
2023-07-05 13:53:54 core-matter-server matter_server.server.vendor_info[126] INFO Loaded 82 vendors from storage.
2023-07-05 13:53:54 core-matter-server matter_server.server.vendor_info[126] INFO Fetching the latest vendor info from DCL.
2023-07-05 13:53:54 core-matter-server matter_server.server.vendor_info[126] INFO Fetched 82 vendors from DCL.
2023-07-05 13:53:54 core-matter-server matter_server.server.vendor_info[126] INFO Saving vendor info to storage.

Additional information

No response

MartinHjelmare commented 1 year ago

If the Home Assistant Core Matter integration is set up and managing the Matter add-on, the integration will restart the add-on if the add-on is stopped. If you want to stop the add-on you need to disable the integration or reconfigure the integration to not use the add-on for running the Matter server.

PvdGulik commented 1 year ago

Thanks, that solves it