t0bst4r / home-assistant-matter-hub

Publish your Home-Assistant Instance using Matter.
Apache License 2.0
158 stars 11 forks source link

[Bug] Home-Assistant-Matter-Hub shuts down after 1 day #66

Open MartinSaldert opened 3 weeks ago

MartinSaldert commented 3 weeks ago

I have an old problem. The Home-Assistant-Matter-Hub keeps shutting down. It stays alive for around 1,5 day and then shuts down. I had exactly the same problem with the old version. But i was hoping that the new hub would solve it, It did not. If i start it manually it works perfect. But dies by itself after some hours. As far as i have been able to tell its a bit random. The watchdog feature does not start it again.

The log:

-----------------------------------------------------------
 Add-on: Home-Assistant-Matter-Hub
 Publish your entities from Home Assistant to any Matter-compatible controller like Alexa, Apple Home or Google Home.
-----------------------------------------------------------
 Add-on version: 3.0.0-alpha.16
 There is an update available for this add-on!
 Latest add-on version: 3.0.0-alpha.17
 Please consider upgrading as soon as possible.
 System: Home Assistant OS 13.2  (aarch64 / odroid-n2)
 Home Assistant Core: 2024.10.4
 Home Assistant Supervisor: 2024.10.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
Log level is set to INFO
s6-rc: info: service base-addon-log-level 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
s6-rc: info: service legacy-services successfully started
[ 2024-11-04T13:24:17.184Z ] [ INFO  ] [ Storage                                            ]: Storage location: /config/data
[ 2024-11-04T13:24:17.565Z ] [ INFO  ] [ matter.js / ServerStore                            ]: Opened 0d196d0c49f7488b9cb70f547fdd19a8 storage at /config/data/0d196d0c49f7488b9cb70f547fdd19a8
[ 2024-11-04T13:24:18.528Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8 ready endpoint#: 0 type: RootNode (0x16) behaviors: 💤parts ✔index ✔basicInformation ✔accessControl ✔groupKeyManagement ✔generalCommissioning ✔administratorCommissioning ✔operationalCredentials ✔generalDiagnostics ✔commissioning ✔network 💤productDescription 💤sessions ✔descriptor
[ 2024-11-04T13:24:18.551Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator ready endpoint#: 1 type: Aggregator (0xe) behaviors: 💤parts ✔index ✔descriptor
[ 2024-11-04T13:24:18.571Z ] [ INFO  ] [ matter.js / Node                                   ]: 0d196d0c49f7488b9cb70f547fdd19a8 going online
[ 2024-11-04T13:24:18.985Z ] [ INFO  ] [ matter.js / SessionManager                         ]: restoring resumption record for node 1
[ 2024-11-04T13:24:19.001Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_staketet_mot_slf_utomhusbelysning ready endpoint#: 14 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.054Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_dorrbelysning_utomhusbelysning_framsida ready endpoint#: 15 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.103Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_ytterbelysning_baksidan_utomhusbelysning_baksidan ready endpoint#: 16 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.148Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_hornlampa_vardagsrum ready endpoint#: 17 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.194Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_dimmer_v_rum_vardagsrum ready endpoint#: 18 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.235Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_uteplats_uteplats ready endpoint#: 19 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.282Z ] [ INFO  ] [ matter.js / Endpoint                               ]: 0d196d0c49f7488b9cb70f547fdd19a8.aggregator.light_fonsterkarm_sovrum ready endpoint#: 20 type: DimmableLight (0x101) behaviors: ✔identify ✔groups ✔onOff ✔levelControl ✔bridgedDeviceBasicInformation ✔descriptor
[ 2024-11-04T13:24:19.318Z ] [ INFO  ] [ WebApi                                             ]: HTTP server (API & Web App) listening on port 8482
[ 2024-11-04T13:24:19.371Z ] [ INFO  ] [ matter.js / Node                                   ]: 0d196d0c49f7488b9cb70f547fdd19a8 is online
[ 2024-11-04T13:24:19.382Z ] [ INFO  ] [ matter.js / AccessControlServer                    ]: initializing ACL manager with ACL { privilege: 5, authMode: 2, subjects: [ 1 ], targets: null, fabricIndex: 1 }
[ 2024-11-04T13:25:47.686Z ] [ INFO  ] [ matter.js / CaseServer                             ]: Received pairing request from udp://fe80::77b9:b037:298f:bd57%end0:37766
[ 2024-11-04T13:25:47.775Z ] [ INFO  ] [ matter.js / CaseServer                             ]: session 12759 resumed with udp://fe80::77b9:b037:298f:bd57%end0:37766 for Fabric 48F5A0D79E31786C(index 1) and PeerNode 0000000000000001 with CATs undefined
[ 2024-11-04T13:25:47.780Z ] [ INFO  ] [ matter.js / SessionManager                         ]: End insecure session insecure/5581945714481814795
[ 2024-11-04T13:25:48.880Z ] [ INFO  ] [ matter.js / InteractionServer                      ]: Successfully created subscription 2870456016 for Session 12759. Updates: 0 - 120 => 130 seconds (sendInterval = 65 seconds)
/docker-entrypoint.sh: line 9:   181 Killed                  home-assistant-matter-hub start --log-level=$(bashio::config 'log_level') --disable-log-colors=$(bashio::config 'disable_log_colors') --storage-location=/config/data --web-port=$(bashio::config 'web_port') --home-assistant-url='http://supervisor/core' --home-assistant-access-token="$SUPERVISOR_TOKEN"
s6-rc: info: service legacy-services: stopping
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 base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
MartinSaldert commented 3 weeks ago

Been like this in every version i tested sofar.

t0bst4r commented 3 weeks ago

That is interesting. Where does the kill come from?! Think i need to dive deeper into HA Addon configuration.

duckida commented 2 weeks ago

I had the same problem with the older matterbridge addon.

t0bst4r commented 2 weeks ago

I observed this a bit with my installation, but it does not happen at all for me... Can you please validate if you get any different logs when it happens? Or is it just always 181 Killed ?

I assume you are running home assistant OS with not any special setup (e.g. just on a raspberry) ?

MartinSaldert commented 2 weeks ago

I also had the same issue with the old matterbridge. And today my Alpha 24 died.

[ 2024-11-10T08:09:08.657Z ] [ INFO ] [ matter.js / InsecureSession ]: End insecure session insecure/5547330717497494128 [ 2024-11-10T08:09:09.690Z ] [ INFO ] [ matter.js / InteractionServer ]: Successfully created subscription 3432062828 for Session 58737. Updates: 0 - 120 => 129 seconds (sendInterval = 65 seconds) /docker-entrypoint.sh: line 9: 171 Killed home-assistant-matter-hub start --log-level=$(bashio::config 'app_log_level') --disable-log-colors=$(bashio::config 'disable_log_colors') --storage-location=/config/data --web-port=$(bashio::config 'web_port') --home-assistant-url='http://supervisor/core' --home-assistant-access-token="$SUPERVISOR_TOKEN" s6-rc: info: service legacy-services: stopping 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 base-addon-log-level: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service base-addon-log-level successfully stopped s6-rc: info: service base-addon-banner: stopping s6-rc: info: service base-addon-banner successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Im running a "Home Assistant Blue / Hardkernel ODROID-N2/N2+"

duckida commented 2 weeks ago

I have a Pi 4B with HAOS