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

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

Closed
MartinSaldert opened this issue Nov 5, 2024 · 9 comments
Closed

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

MartinSaldert opened this issue Nov 5, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@MartinSaldert
Copy link

MartinSaldert commented Nov 5, 2024

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
Copy link
Author

Been like this in every version i tested sofar.

@t0bst4r t0bst4r changed the title Home-Assistant-Matter-Hub shuts down. [Bug] Home-Assistant-Matter-Hub shuts down after 1 day Nov 5, 2024
@t0bst4r
Copy link
Owner

t0bst4r commented Nov 5, 2024

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

@t0bst4r t0bst4r added the bug Something isn't working label Nov 5, 2024
@duckida
Copy link

duckida commented Nov 9, 2024

I had the same problem with the older matterbridge addon.

@t0bst4r
Copy link
Owner

t0bst4r commented Nov 10, 2024

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
Copy link
Author

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
Copy link

duckida commented Nov 10, 2024

I have a Pi 4B with HAOS

@MartinSaldert
Copy link
Author

I dont know what happend. Im running Alpha 32 and it has been working perfectly for over a week now. So something has been fixed...

@t0bst4r
Copy link
Owner

t0bst4r commented Nov 28, 2024

awesome! i reworked a lot of the application lifecycle, but i still don't know why this happens at all.
i'll close this ticket, and if it happens again, feel free to reopen

@t0bst4r t0bst4r closed this as completed Nov 28, 2024
@rcoletti116
Copy link

I may have a similar issue.

/docker-entrypoint.sh: line 11: 175 Killed home-assistant-matter-hub start --log-level=$(bashio::config 'app_log_level') --disable-log-colors=$(bashio::config 'disable_log_colors') --mdns-network-interface="$(bashio::config 'mdns_network_interface')" --storage-location=/config/data --web-port=$(bashio::addon.ingress_port) --home-assistant-url='http://supervisor/core' --home-assistant-access-token="$SUPERVISOR_TOKEN" --http-ip-whitelist="172.30.32.2"
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped

I'm wondering if the CPU getting over-utilized and causing a crash. The add-on normally sits at 1-2%, but I noticed it spikes to 40%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants