diyhue / hassio-addon

35 stars 11 forks source link

Update 2.0.21 fails #44

Closed Olli2k closed 6 days ago

Olli2k commented 1 week ago

For me updating to 2.0.21 is not possible. Core log entry:

Failed to to call /store/addons/c863ef44_diyhue/update - The command '/bin/bash -o pipefail -c cp -r /diyhueUI/dist/index.html /opt/hue-emulator/flaskUI/templates/' returned a non-zero code: 1

System: Core: 2024.11.2 HAOS on Proxmox

hendriksen-mark commented 1 week ago

Hi can you try again?

bobbinz commented 1 week ago

Ah, I am also having the same issue over at https://github.com/diyhue/diyHue/issues/1051

bobbinz commented 1 week ago

Seems to be related to the fact that in the release candidate /diyhueUI/dist/index.html does not exist

hendriksen-mark commented 1 week ago

I made a change, did you try it in the last 30 minutes?

emog commented 1 week ago

I tried now and it's the same

hendriksen-mark commented 1 week ago

please try 2.0.22

emog commented 1 week ago

It's the same: Failed to perform the action update/install. Error updating diyHue: The command '/bin/bash -o pipefail -c cp -r diyhueUI/dist/index.html /opt/hue-emulator/flaskUI/templates/' returned a non-zero code: 1 even with 2.0.22. Keep installing but at the end we got this error

bobbinz commented 1 week ago

Had to force a refresh.

Now get this error:

The command '/bin/bash -o pipefail -c cp -r diyhueUI/dist/index.html /opt/hue-emulator/flaskUI/templates/' returned a non-zero code: 1

Seems to be the same:

cp: can't stat 'diyhueUI/dist/index.html': No such file or directory
 ---> Removed intermediate container 4c853f9bfcd8
Bx16 commented 1 week ago

.22 installation: Step 31/49 : RUN cp -r diyhueUI/dist/index.html /opt/hue-emulator/flaskUI/templates/ ---> Running in 0528823093dc cp: can't stat 'diyhueUI/dist/index.html': No such file or directory

hendriksen-mark commented 1 week ago

its not the same error but similar, please try 2.0.23

emog commented 1 week ago

2.0.23 - The command '/bin/bash -o pipefail -c cp -r /diyhueUI/dist/index.html /opt/hue-emulator/flaskUI/templates/' returned a non-zero code: 1

emog commented 1 week ago

Screenshot 2024-11-18 at 15 44 48

hendriksen-mark commented 1 week ago

try 2.0.24

emog commented 1 week ago

Screenshot 2024-11-18 at 15 54 58

dvdkruk commented 1 week ago

Tried 2.0.24, here is the full error log:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:135
integration: Home Assistant Supervisor (documentation, issues)
First occurred: 4:08:33 PM (3 occurrences)
Last logged: 6:33:26 PM

Failed to to call /store/addons/c863ef44_diyhue/update - The command '/bin/bash -o pipefail -c cp -r diyhueUI/dist/index.html /opt/hue-emulator/flaskUI/templates/' returned a non-zero code: 1
Failed to to call /store/addons/c863ef44_diyhue/update - The command '/bin/bash -o pipefail -c cp -r dist/index.html /opt/hue-emulator/flaskUI/templates/' returned a non-zero code: 1
Nismonx commented 1 week ago

Attempting to install the update will return error:404 when trying to access DIYhue app (webui) in web browser after update fail:

2024-11-18 18:18:39,925 - services.stateFetch - 27 - WARNING - Fireplace_seg0 is unreachable: <urlopen error [Errno 113] Host is unreachable>
2024-11-18 18:18:40,256 - werkzeug - 225 - INFO - 192.168.1.71 - - [18/Nov/2024 18:18:40] "GET / HTTP/1.1" 200 -
2024-11-18 18:18:40,353 - werkzeug - 225 - INFO - 192.168.1.71 - - [18/Nov/2024 18:18:40] "GET /static/js/main.f1ff5a61.js HTTP/1.1" 404 -
2024-11-18 18:18:40,363 - werkzeug - 225 - INFO - 192.168.1.71 - - [18/Nov/2024 18:18:40] "GET /static/css/main.567f9119.css HTTP/1.1" 404 -

Manually restarting the addon will fix access to the web app as before.

Maybe I'm stating the obvious, but may help someone.

hendriksen-mark commented 6 days ago

Can someone try the remove the addon and reinstall it?

Burn-In commented 6 days ago

Remove and reinstall didn't work, stops with the same error. Restoring a partial backup works.

Nismonx commented 6 days ago

I have HA running barebones on a rpi4, it's my test rig. I'll try a clean install there in a little bit.

Nismonx commented 6 days ago

Clean install in a barebones system works fine. Screenshot_20241118_203132_Chrome

hendriksen-mark commented 6 days ago

I made a work around, i think the problem is that HA is using a cached file for the zip files and not the latest from github. Please try 2.0.25 with hardcored version/releases.

dvdkruk commented 6 days ago

@hendriksen-mark good find! This solved it for me. image

Nismonx commented 6 days ago

Worked a treat for me :) From 2.0.20 to 2.0.25

Good job Mark 👏 Thanks for caring

hendriksen-mark commented 6 days ago

good to hear and thanks for the fast feedback.