Skip to content

hb-config tries to use armv6 binaries and fails due to bad url #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Quickstep3 opened this issue Nov 8, 2024 · 12 comments
Closed

hb-config tries to use armv6 binaries and fails due to bad url #151

Quickstep3 opened this issue Nov 8, 2024 · 12 comments
Labels
question Further information is requested stale

Comments

@Quickstep3
Copy link

Current Situation

Raspberry Pi4 running Homebridge image and Node.js update is flagged.
Running the sudo hb-config and node.js update fails due to URL for file download not found.
It's looking for node-v22.11.0-linux-armv6l.tar.gz
where as node.js site is
ARMv7 32-bit Binary: https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-**armv7l.tar.xz**

Logs

pi@homebridge:/var/lib/homebridge $ sudo hb-config
Updating Node.js to LTS, please wait...
Installed: v20.17.0
Current Node.js LTS: v22.11.0
Updating Node.js to v22.11.0...
Downloading to /tmp/tmp.1U7MEe5Wvb/node-v22.11.0-linux-armv6l.tar.gz ...
curl: (22) The requested URL returned error: 404 Not Found                                                                                          

Failed to download node-v22.11.0-linux-armv6l.tar.gz. See logs above.
pi@homebridge:/var/lib/homebridge $

Configuration

n/a

Environment

  • OS: Raspbian GNU/Linux Bullseye (11)

  • Node: v20.17.0

Process Supervisor

hb-service

Additional Context

No response

@Quickstep3 Quickstep3 added the question Further information is requested label Nov 8, 2024
@NorthernMan54
Copy link
Contributor

Isn't the update process

sudo hb-shell
Entering Homebridge Shell. To exit type 'exit'.

Note: This is a restricted shell, sudo cannot be used here.

Homebridge Terminal

Node.js Version: v20.18.0
Node.js Path: /opt/homebridge/bin/node
Plugin Path: /var/lib/homebridge/node_modules

Update Node.js: hb-service update-node

Install Plugin: hb-service add homebridge-plugin-name
Remove Plugin: hb-service remove homebridge-plugin-name

homebridge@jessie:/var/lib/homebridge $ node -v
v20.18.0
homebridge@jessie:/var/lib/homebridge $ hb-service update-node
ℹ Updating Node.js from v20.18.0 to v22.11.0...
ℹ Target: /opt/homebridge
✔ Download complete.
✔ Cleaned up npm at at /opt/homebridge/lib/node_modules/npm
✔ Installed Node.js v22.11.0
ℹ Rebuilding for Node.js v22.11.0...
rebuilt dependencies successfully
✔ Rebuilt homebridge-config-ui-x for Node.js v22.11.0.
rebuilt dependencies successfully
✔ Rebuilt plugins in /opt/homebridge/lib/node_modules for Node.js v22.11.0.
⚠ Please restart Homebridge for the changes to take effect.

@Quickstep3
Copy link
Author

Quickstep3 commented Nov 8, 2024

hb-config util has the menu to option to update node and that's what I've always done. Presumably it runs the commands you mention as a script though so can give that a go.

EDIT: Just checked and hb-shell isn't available on the Raspbian image. everything is managed through the UI for Homebridge and terminal for node.js and a few advanced functions.

sudo hb-sevrice update-node did work though and notably had the right target URL for the download with '...arm7l..'

@Quickstep3
Copy link
Author

NB this is happening with the Node.js 22.12 update as well. Workaround is to use
sudo hb-service update-node
rather than the hb-config terminal application

Copy link

github-actions bot commented Jan 8, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 8, 2025
@Quickstep3
Copy link
Author

Still happening with latest update to Node.js 22.13
Issue is the download path being incorrect.
Will presumably be more of a problem with Homebridge v5 due soon and recommendation in that to use 18,20, or 22

@NorthernMan54
Copy link
Contributor

What model RPI do you have and what version of the Homebridge UI?

@github-actions github-actions bot removed the stale label Jan 10, 2025
@Quickstep3
Copy link
Author

RPI v4
Homebridge 1.8.5
Homebridge UI v4.68.0

@NorthernMan54
Copy link
Contributor

I think I missed in issue is that this is related to the ‘hb-config’ command.

Is that correct?

@Quickstep3
Copy link
Author

yes - I think it is given that hb-service can be used as a workaround

@NorthernMan54
Copy link
Contributor

Perfect, that is part of the raspbian image, let me move it over there

@NorthernMan54 NorthernMan54 changed the title Node.js 22.11 LTS update hb-config tries to use armv6 binaries and fails due to bad url Jan 10, 2025
@NorthernMan54 NorthernMan54 transferred this issue from homebridge/homebridge Jan 10, 2025
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 10, 2025
Copy link

This issue has been closed as no further activity has occurred.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants