t0bst4r / matterbridge-home-assistant-addon

Apache License 2.0
80 stars 15 forks source link

[Bug]: Immediately crashes on startup #116

Open rodalpho opened 4 weeks ago

rodalpho commented 4 weeks ago

What happened?

Just installed the matterbridge HA addon for the first time. It initially seemed to work fine for 5 minutes but now the addon crashes upon startup complaining about some file being invalid. I can't find that file, even logging in directly to the CLI from the console, maybe it's inside the container.

I did not change ANY configuration at all, and tried resetting the config in HA also.

Your configuration

include_domains: []
include_patterns: []
include_labels: []
include_platforms: []
exclude_domains: []
exclude_patterns: []
exclude_labels: []
exclude_platforms: []
frontend_port: 8283
matter_port: 5540
overrides: |
  {
    "domains": {
    },
    "entities": {
    }
  }

Relevant log output

-----------------------------------------------------------
 Add-on: Matterbridge
 Populate your Home Assistant instance as Matter Bridge.
-----------------------------------------------------------
 Add-on version: 2.6.2-117
 You are running the latest version of this add-on.
 System: Home Assistant OS 13.0  (amd64 / qemux86-64)
 Home Assistant Core: 2024.8.1
 Home Assistant Supervisor: 2024.08.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 CONFIGURATION:
{
  "homeAssistant": {
    "url": "http://supervisor/core",
    "accessToken": "removed",
    "matcher": {
      "includeDomains": [],
      "excludeDomains": [],
      "includePatterns": [],
      "excludePatterns": [],
      "includeLabels": [],
      "excludeLabels": [],
      "includePlatforms": [],
      "excludePlatforms": []
    }
  },
  "overrides": {
    "domains": {},
    "entities": {}
  }
}
#############################
[10:04:54.212] [PluginManager] Plugin matterbridge-home-assistant has no type
CLI: Matterbridge.loadInstance() failed with error: Error: [node-persist][readFile] /root/.matterbridge/storage/.matterbridge/d01917a070027b55bce538a96fa2004f061de6fe1644f402a321c6db8c71b9ba does not look like a valid storage file!
[10:04:55.067] [PluginManager] Plugin matterbridge-home-assistant has no type
CLI: Matterbridge.loadInstance() failed with error: Error: [node-persist][readFile] /root/.matterbridge/storage/.matterbridge/d01917a070027b55bce538a96fa2004f061de6fe1644f402a321c6db8c71b9ba 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 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

Version

2.6.2-117

t0bst4r commented 4 weeks ago

That's a bug some users faced with matterbridge. I still don't know exactly why it is happening...

The file is in the container that's right. On your home assistant instance (outside the container), you should find the file at /addon_configs/xxxxxxxx_matterbridge/storage/.matterbridge/ or similar.

Please delete just the corrupted file, not the directory.

rodalpho commented 4 weeks ago

That did fix the issue, thank you! Any way to avoid it recurring? I really hadn't done anything in the addon yet.

t0bst4r commented 3 weeks ago

Are there any other files? Could you delete them all? But still not the parent dir

yqkee0411 commented 3 weeks ago

Well, deleting the whole directory and reinstalling the addons fixed the issue for me, Thanks

rodalpho commented 3 weeks ago

There were a number of files in there, but I have it working now so don't want to mess with it further, unless you believe that will avoid recurrence.

011V32 commented 3 weeks ago

I have the same issue :(

siobhanellis commented 3 weeks ago

I have the same issue and I'm running the appliance version.

I have the terminal add-on, so managed to delete the files in storage/.matterbridge... That didn't work I also deleted the matterbridge.json (Which was empty) and coped matterbridge.backup.json to matterbridge.json (As suggested by the error) that didn't work either.

yqkee0411 commented 3 weeks ago

I have the same issue and I'm running the appliance version so not sure how I delete the file from the HA CLI. Anyone?

I delete the file through the add on samba share using windows file explorer