t0bst4r / matterbridge-home-assistant-addon

Apache License 2.0
123 stars 16 forks source link

error when updating from 1.2.1 #76

Closed indiesaudi closed 5 months ago

indiesaudi commented 5 months ago

Problem

This error pops up when updating from 1.2.1 to 1.3.0

Expected behavior

Should upate

Actual behavior

When updating, this error pops up:

Can't install ghcr.io/t0bst4r/matterbridge-home-assistant-addon/aarch64:1.3.0: 500 Server Error for http+docker://localhost/v1.45/images/create?tag=1.3.0&fromImage=ghcr.io%2Ft0bst4r%2Fmatterbridge-home-assistant-addon%2Faarch64&platform=linux%2Farm64: Internal Server Error ("manifest unknown")

indiesaudi commented 5 months ago

got a new update not 1.3.2-61 with the same behavior

Can't install ghcr.io/t0bst4r/matterbridge-home-assistant-addon/aarch64:1.3.2-61: 500 Server Error for http+docker://localhost/v1.45/images/create?tag=1.3.2-61&fromImage=ghcr.io%2Ft0bst4r%2Fmatterbridge-home-assistant-addon%2Faarch64&platform=linux%2Farm64: Internal Server Error ("manifest unknown")

t0bst4r commented 5 months ago

Oh wow, this was quick. I am currently working on the release workflow, automating addon releases. sorry for that. i'll write another message when this is done (probably in 10-30 minutes)

t0bst4r commented 5 months ago

could you give it a try with 1.3.2-64 ?

506V commented 5 months ago

could you give it a try with 1.3.2-64 ?

It worked for me.

t0bst4r commented 5 months ago

NIce! I hope there will be no more problems in the future! đź‘Ť

Ian-Zz commented 5 months ago

Sorry bout this. I just went from1.2.1 to the new addon_a1b84aa7_matterbridge_1.3.2-64. Seemed to install and run well. Till... I looked at devices and saw none. Was a bunch of crossed out lines in the log pages. Sorry didn't track/copy them. Tried adding and removing devices from config but no devices ever show up in the matterbridge UI. Went back to 1.2.1 backup tar and seems all work nice again. Love this software btw. Would hate to see it "broke" for long. Also it looked like the cpu meter in the addon was pegged while loading the new version. proxmox hassio full dell opti smff btw

t0bst4r commented 5 months ago

@Ian-Zz

Let me just get your post right:

  1. update to 1.3.2-64 was successful
  2. After updating it does not show any devices
  3. Then you rolled back to 1.2.1 and all the device were back

Is that correct so far?

Without any logs I cannot do anything to fix it. Logs from the UI don’t help a lot, but the addon logs (from the addon details in HA) are helpful.

If you still face that issue, please create a new issue and paste the logs from the addon logs.

Ian-Zz commented 5 months ago

t0bst4r Yup. 64 did seem to update and start proper but just would never show any devices before or after a few restarts and reboots. I see a newer 65 already so I might try that and watch better and try to track any logs. Would that be in this neighborhood for more/better logging http://my-ip-blah-blah/config/logs?provider=a1b84aa7_matterbridge. Either way just happy to get my devices back after roll back. That was grand.

506V commented 5 months ago

The crossed out lines in addon log are like this (maybe it helps):

[22:23:57.642] [Matterbridge] Failed to load plugin matterbridge-home-assistant: Error: ENOENT: no such file or directory, open '/app/node_modules/matterbridge-home-assistant/package.json' [22:23:58.643] [Matterbridge] The plugin matterbridge-home-assistant is in error state. [22:23:58.643] [Matterbridge] The bridge will not start until the problem is solved to prevent the controllers from deleting all registered devices. [22:23:58.643] [Matterbridge] If you want to start the bridge disable the plugin in error state and restart. [22:23:58.695] [Matterbridge] The plugin matterbridge-home-assistant is out of date. Current version: 1.2.1, Latest version: 1.3.3

t0bst4r commented 5 months ago

i have missed to fix a bug in the addon, which i already fixed in the main project. could you give it a try with 1.3.3-66 ?

Ian-Zz commented 5 months ago

Update... results from 65 were the same. Nearly pegged cpu/add on usage and no devices showing up. Main log text I got.... ############################# [17:07:17.676] [Matterbridge] Created Matterbridge Plugin Directory: /root/Matterbridge [17:07:17.681] [Matterbridge] Matterbridge version 1.3.4 mode running on Linux 6.6.33-haos linux x64 [17:07:17.686] [Matterbridge] Plugin /usr/local/lib/node_modules/matterbridge-home-assistant/package.json already added to matterbridge [17:07:18.739] [Matterbridge] Matterbridge version 1.3.4 mode bridge restart mode docker running on Linux 6.6.33-haos linux x64 [17:07:19.011] [Matterbridge] WebSocketServer is listening on ws://192.168.1.114:8284 [17:07:19.011] [Matterbridge] The frontend is listening on http://192.168.1.114:8283 [17:07:19.020] [Matterbridge] Loading plugin matterbridge-home-assistant type DynamicPlatform [17:07:19.022] [Matterbridge] Failed to load plugin matterbridge-home-assistant: Error: ENOENT: no such file or directory, open '/app/node_modules/matterbridge-home-assistant/package.json' [17:07:20.021] [Matterbridge] The plugin matterbridge-home-assistant is in error state. [17:07:20.021] [Matterbridge] The bridge will not start until the problem is solved to prevent the controllers from deleting all registered devices. [17:07:20.022] [Matterbridge] If you want to start the bridge disable the plugin in error state and restart. [17:07:20.213] [Matterbridge] The plugin matterbridge-home-assistant is out of date. Current version: 1.2.1, Latest version: 1.3.3

I'll give 66 a try. But to be honest with 1.2.1 working for me I am plenty happy with that. Thanks.

t0bst4r commented 5 months ago

Yeah, i just fixed one thing in 66.

Ian-Zz commented 5 months ago

Great News. 67 works for me. After install cpu was pegged again. Didn't check much else. Just rebooted. See my devices and zero crossed out lines in the log. cpu at about a 4. Cool. Thanks.