t0bst4r / matterbridge-home-assistant-addon

Apache License 2.0
123 stars 16 forks source link

Add-on will not start #59

Closed robnnson closed 5 months ago

robnnson commented 5 months ago

Problem

The Matterbridge add-on will not start.

Expected behavior

For the add-on to start and web gui is accessible.

Actual behavior

Add-on fails to start with the following logs:

-----------------------------------------------------------
 Add-on: Matterbridge
 Populate your Home Assistant instance as Matter Bridge
-----------------------------------------------------------
 Add-on version: 1.2.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.4  (amd64 / qemux86-64)
 Home Assistant Core: 2024.6.3
 Home Assistant Supervisor: 2024.06.0
-----------------------------------------------------------
 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
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
#############################
CURRENT CLIENT CONFIGURATION:
{
  "includeDomains": [],
  "includePatterns": [],
  "excludeDomains": [],
  "excludePatterns": []
}
#############################

> matterbridge
> matterbridge -add ./node_modules/matterbridge-home-assistant

[04:00:31.150] [Matterbridge] Created Matterbridge Plugin Directory: /root/Matterbridge 
CLI: Matterbridge.loadInstance() failed with error: Error: [node-persist][readFile] /root/.matterbridge/storage/.matterbridge/c6724947ca70506d3d4794dd710813af1a1ef8e646852dba3fe0dea6a2aa7911 does not look like a valid storage file!

> matterbridge
> matterbridge -bridge

CLI: Matterbridge.loadInstance() failed with error: Error: [node-persist][readFile] /root/.matterbridge/storage/.matterbridge/c6724947ca70506d3d4794dd710813af1a1ef8e646852dba3fe0dea6a2aa7911 does not look like a valid storage file!
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 base-addon-log-level successfully stopped
s6-rc: info: service fix-attrs 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

Steps to reproduce

Attempt to start the add-on

Proposed changes

N/A

t0bst4r commented 5 months ago

@robnnson that‘s interesting. Could you try uninstalling and reinstalling the addon? It seems that the addon storage corrupted.

@BrianKnudsen this is related to a bug with climate devices. Please exclude the climate domain and try again. This bug is tracked there: t0bst4r/matterbridge-home-assistant#47

helderfmf commented 5 months ago

@robnnson had the same problem. Open file manager addon and go to /addon_configs/a1b84aa7_matterbridge/storage/.matterbridge/ Search for the file of the log, in my case the file was 0 bytes, so I deleted it and was recreated on startup.

Removing and installing the addon did not resolve the problem.

robnnson commented 5 months ago

helderfmf

This is strange...the only folder I have is /homeassistant/addons_config and the matterbridge addon isn't even listed in that...?

helderfmf commented 5 months ago

helderfmf

This is strange...the only folder I have is /homeassistant/addons_config and the matterbridge addon isn't even listed in that...?

You need to go above a level. /homeassistant is the default folder, but you can go up to / just hit the <- button.

robnnson commented 5 months ago

helderfmf

This is strange...the only folder I have is /homeassistant/addons_config and the matterbridge addon isn't even listed in that...?

You need to go above a level. /homeassistant is the default folder, but you can go up to / just hit the <- button.

Worked perfectly! Thanks!

t0bst4r commented 5 months ago

did it fix the problem? does it work now?

robnnson commented 5 months ago

did it fix the problem? does it work now?

Sure did. Appreciate that a ton.

enslaved2die commented 5 months ago

@robnnson had the same problem. Open file manager addon and go to /addon_configs/a1b84aa7_matterbridge/storage/.matterbridge/ Search for the file of the log, in my case the file was 0 bytes, so I deleted it and was recreated on startup.

Removing and installing the addon did not resolve the problem.

I cant get there wit the file editor addon. the back button doesnt work