homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.59k stars 369 forks source link

Can‘t Update Node - Download Error #2029

Closed Kohle81 closed 3 months ago

Kohle81 commented 3 months ago

Describe The Bug

If I want to update Node with „sudo hb-config“ node could not updated because download error.

Logs

Updating Node.js to LTS, please wait... Installed: v20.10.0 Current Node.js LTS: v20.12.0 Updating Node.js to v20.12.0... Downloading to /tmp/tmp.PvRJx5pT9V/node-v20.12.0-linux-armv6l.tar.gz ... curl: (22) The requested URL returned error: 404 Not Found

Failed to download node-v20.12.0-linux-armv6l.tar.gz. See logs above.

Config

No response

Homebridge UI Version

4.55.1

Homebridge Version

1.7.0

Node.js Version

20.10.0

Operating System

Official Homebridge Raspberry Pi Image

Environment Info

{"label"=>"Using hb-service?"}

Raspberry Pi Model

Raspberry Pi 4 B

bwp91 commented 3 months ago

How did you install your existing version v20.10.0?

Kohle81 commented 3 months ago

Actually always via sudo hb-config….But it could be that I installed this version manually as an exception, I'm not quite sure anymoreAm 31.03.2024 um 12:08 schrieb Ben @.***>: How did you install your existing version v20.10.0?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Kohle81 commented 3 months ago

I had to uninstall und reinstall config-ui:„ sudo npm install -g --unsafe-perm homebridge-config-ui-x“It could be that I used:sudo hb-service update-node 20.10.0 to update node…..If I used this command I could install node 20.12.0……Am 31.03.2024 um 20:13 schrieb Manuel Kohler @.>:Actually always via sudo hb-config….But it could be that I installed this version manually as an exception, I'm not quite sure anymoreAm 31.03.2024 um 12:08 schrieb Ben @.>: How did you install your existing version v20.10.0?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

bwp91 commented 3 months ago

So just to confirm, the steps to resolve (i.e. install node 20.12.0) were to reinstall the UI

sudo npm install -g --unsafe-perm homebridge-config-ui-x

and then the usual command worked?

sudo hb-service update-node 20.12.0
Kohle81 commented 3 months ago

Hi, I can‘t update node about

„ sudo hb-config“

But if I used the command

„ sudo hb-service update-node 20.12.0“ it worked.

I doesn‘t reinstalled the UI - should I?

Greetings….

bwp91 commented 3 months ago

Ah I understand now. No you don't need to reinstall the UI.

Using hb-service is the recommended way to update node:

So great that sudo hb-service update-node 20.12.0 worked for you.

I will close this issue now as I assume resolved. Feel free to re-open if needed 👍

Kohle81 commented 3 months ago

Hello, unfortunately it's me again with the same problem...

I wanted to update node via the menu using sudo hb-config and again received the error during the download. The command sudo hb-service update-node 20.12.1 worked again.

pi@homebridge:~ $ sudo hb-config Updating Node.js to LTS, please wait... Installed: v20.12.0 Current Node.js LTS: v20.12.1 Updating Node.js to v20.12.1... Downloading to /tmp/tmp.gmmfQ1MKzW/node-v20.12.1-linux-armv6l.tar.gz ... curl: (22) The requested URL returned error: 404 Not Found

Failed to download node-v20.12.1-linux-armv6l.tar.gz. See logs above. pi@homebridge:~ $ sudo hb-service update-node 20.12.1 ℹ Installing Node.js v20.12.1 over v20.12.0... ℹ Target: /usr/local ✔ Download complete.✔ Cleaned up npm at at /usr/local/lib/node_modules/npm ✔ Installed Node.js v20.12.1 ℹ Restarting Homebridge Service... ✔ Homebridge Restarted