-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Bug: Update to 2.5.3 fails due to missing file (404) #713
Comments
Definitely specific to your hardware/OS. |
@donavanbecker I've tried updating from 2.5.1 to 2.5.3 on my Raspberry Pi Zero W flashed with Homebridge's own image multiple times now. (Thanks god I have a backup image of the SD card). I have issues too and the switchbot plugin stopps working / detecting BLE connections after updating. |
I can't update to 2.5.3 neither. (##################) ⠏ reify:googleapis: timing reifyNode:node_modules/@switchbot/home
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-10/bluetooth_hci_socket-0.5.3-10-node-v108-linux-arm.tar.gz
make: Entering directory '/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/noble/build' npm ERR! A complete log of this run can be found in: Operation failed. Please review log for details. |
@pmcdowall A workaround I found is by Installing Bluetooth tools in DSM as referred to here. |
This doesn't work for me. It still fails the same way. |
@marvinjoa Thanks! A modified version of your fix worked for me. SSH into my Synology NAS and then;
Exit the shell, return to Homebridge UI and update Switchbot. Successfully completes update to 2.5.3. |
This should be raise as an issue on noble and Bluetooth-hci-socket. |
@pmcdowall Happy it worked for you! I had the backup steps just to make sure I don't mess up, but it seems fine without it.
@donavanbecker I am not 100% convinced that it is a problem with those dependencies. Especially it seems that it is not only a Raspberry Pi issue as you deemed it, but also a Synology issue, although here it is a noble install issue vs the hci socket issue on raspian. To be fair I cannot write code myself from scratch, but I understand it partially and have a basic understanding for this stuff. What happens during the failed plugin update is that it asks for the compiled version on GitHub instead of building it itself. And the compiled version doesn't exist. When manually npm installing both it will download and install both normally. During the plugin update the dependencies were build from scratch again. Maybe there is an issue with the installation script or the parameters set during the plugin update. |
I don't set any special scripts for it. Definitely dependencies. |
In case anyone else is running into this issue and the fixes above didn't work for them, reinstalling Entware and the native BLE build dependencies did the trick for me. It seems that sometime between my initial installation of the plugin and the most recent updates, something broke in my Entware environment that made the bluetooth-hci + noble builds fail. |
Thanks for all the hints @fluffy-critter, @pmcdowall, and @neegool! I have added your tips to Bluetooth Issues Wiki: Bluetooth Issues |
Describe the Bug
The update cannot be completed due to a 404 error on a file called during the update. Subsequent update steps fail due to the missing file.
To Reproduce
Update to 2.5.3 using Homebridge (may be specific to my install/hardware)
Expected Behavior
Update completes successfully.
Relevant Log Output
Config for homebridge-switchbot
Screenshots
No response
Device and Model
Not applicable
Node.js Version
v16.20.0
NPM Version
v8.19.4
Homebridge Version
v1.6.0
Homebridge Switchbot Plugin Version
2.5.2
Homebridge Config UI X Plugin Version
v4.50.2
Operating System
Synology DSM 7.1.1-42962 Update 4
The text was updated successfully, but these errors were encountered: