vniehues / homebridge-linak

Apache License 2.0
18 stars 2 forks source link

Installation not working - error 404 #9

Open mrzo opened 8 months ago

mrzo commented 8 months ago

Describe The Bug:

In installation process this error appear: node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-8/bluetooth_hci_socket-0.5.3-8-node-v108-linux-arm64.tar.gz

The plugin is installed in Homebridge, but not working (desk cant be controlled either from Homebridge or Homekit). Using the required idasen controller in command line is working (desk can be manipulated)

To Reproduce:

Install the plugin in Homebridge…

Expected behavior:

Would like to control my desk hight by Home app on iPhone.

Logs: node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-8/bluetooth_hci_socket-0.5.3-8-node-v108-linux-arm64.tar.gz

0 verbose cli /opt/homebridge/bin/node /opt/homebridge/bin/npm 1 info using npm@9.8.1 2 info using node@v18.18.2 3 timing npm:load:whichnode Completed in 7ms 4 timing config:load:defaults Completed in 13ms 5 timing config:load:file:/opt/homebridge/lib/node_modules/npm/npmrc Completed in 4ms 6 timing config:load:builtin Completed in 7ms 7 timing config:load:cli Completed in 21ms 8 warn config global-style This option has been deprecated in favor of --install-strategy=shallow 9 timing config:load:env Completed in 5ms 10 timing config:load:file:/var/lib/homebridge/node_modules/homebridge-linak/.npmrc Completed in 0ms 11 timing config:load:project Completed in 41ms 12 timing config:load:file:/home/homebridge/.npmrc Completed in 0ms 13 timing config:load:user Completed in 2ms 14 timing config:load:file:/opt/homebridge/etc/npmrc Completed in 0ms 15 timing config:load:global Completed in 2ms 16 timing config:load:setEnvs Completed in 6ms 17 timing config:load Completed in 101ms 18 timing npm:load:configload Completed in 102ms 19 timing config:load:flatten Completed in 18ms 20 timing npm:load:mkdirpcache Completed in 1ms 21 timing npm:load:mkdirplogs Completed in 1ms 22 verbose title npm rebuild 23 verbose argv "rebuild" "--foreground-scripts" 24 timing npm:load:setTitle Completed in 6ms 25 timing npm:load:display Completed in 4ms 26 verbose logfile logs-max:10 dir:/home/homebridge/.npm/_logs/2023-11-01T14_41_25_273Z- 27 verbose logfile /home/homebridge/.npm/_logs/2023-11-01T14_41_25_273Z-debug-0.log 28 timing npm:load:logFile Completed in 307ms 29 timing npm:load:timers Completed in 0ms 30 timing npm:load:configScope Completed in 0ms 31 timing npm:load Completed in 546ms 32 timing arborist:ctor Completed in 5ms 33 silly logfile done cleaning log files 34 timing build:queue Completed in 53ms 35 timing build:link:node_modules/node-pre-gyp Completed in 10ms 36 timing build:link:node_modules/@mapbox/node-pre-gyp Completed in 53ms 37 timing build:link:node_modules/color-support Completed in 50ms 38 timing build:link:node_modules/mkdirp Completed in 49ms 39 timing build:link:node_modules/needle Completed in 49ms 40 timing build:link:node_modules/node-gyp-build Completed in 20ms 41 timing build:link:node_modules/nopt Completed in 17ms 42 timing build:link:node_modules/rc Completed in 16ms 43 timing build:link:node_modules/rimraf Completed in 16ms 44 timing build:link:node_modules/semver Completed in 13ms 45 timing build:link:node_modules/which Completed in 12ms 46 timing build:link:node_modules/cross-spawn/node_modules/semver Completed in 13ms 47 timing build:link:node_modules/make-dir/node_modules/semver Completed in 12ms 48 timing build:link:node_modules/node-pre-gyp/node_modules/detect-libc Completed in 12ms 49 timing build:link:node_modules/node-pre-gyp/node_modules/nopt Completed in 13ms 50 timing build:link:node_modules/node-pre-gyp/node_modules/rimraf Completed in 13ms 51 timing build:link:node_modules/node-pre-gyp/node_modules/semver Completed in 13ms 52 timing build:link:node_modules/tar/node_modules/mkdirp Completed in 13ms 53 timing build:link Completed in 59ms 54 info run @abandonware/bluetooth-hci-socket@0.5.3-8 install node_modules/@abandonware/bluetooth-hci-socket node- pre-gyp install --fallback-to-build 55 info run @abandonware/bluetooth-hci-socket@0.5.3-8 install { code: 0, signal: null } 56 timing build:run:install:node_modules/@abandonware/bluetooth-hci-socket Completed in 20743ms 57 info run @abandonware/noble@1.9.2-15 install node_modules/@abandonware/noble node-gyp rebuild 58 info run @abandonware/noble@1.9.2-15 install { code: 0, signal: null } 59 timing build:run:install:node_modules/@abandonware/noble Completed in 4130ms 60 info run @s524797336/noble-mac@0.1.2 install node_modules/@s524797336/noble-mac node install.js 61 info run @s524797336/noble-mac@0.1.2 install { code: 0, signal: null } 62 timing build:run:install:node_modules/@s524797336/noble-mac Completed in 379ms 63 info run bluetooth-hci-socket@0.5.1 install node_modules/bluetooth-hci-socket node-gyp rebuild 64 info run bluetooth-hci-socket@0.5.1 install { code: 1, signal: null } 65 timing command:rebuild Completed in 38845ms 66 verbose stack Error: command failed 66 verbose stack at ChildProcess. (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/promis e-spawn/lib/index.js:53:27) 66 verbose stack at ChildProcess.emit (node:events:517:28) 66 verbose stack at maybeClose (node:internal/child_process:1098:16) 66 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:303:5) 67 verbose pkgid bluetooth-hci-socket@0.5.1 68 verbose cwd /var/lib/homebridge/node_modules/homebridge-linak 69 verbose Linux 6.1.0-rpi4-rpi-v8 70 verbose node v18.18.2 71 verbose npm v9.8.1 72 error code 1 73 error path /var/lib/homebridge/node_modules/homebridge-linak/node_modules/bluetooth-hci-socket 74 error command failed 75 error command sh -c node-gyp rebuild 76 verbose exit 1 77 timing npm Completed in 39691ms 78 verbose unfinished npm timer build 1698849687919 79 verbose unfinished npm timer build:deps 1698849687921 80 verbose unfinished npm timer build:run:install 1698849688036 81 verbose unfinished npm timer build:run:install:node_modules/bluetooth-hci-socket 1698849713293 82 verbose code 1 83 error A complete log of this run can be found in: /home/homebridge/.npm/_logs/2023-11-01T14_41_25_273Z-debug-0. log

Environment: Clean installation of latest Rasberyy OS (Bookworm) on Raspberry Pi 3

vniehues commented 2 weeks ago

This sounds like a configuration / system error on your side. Are you able to run the command in the homebridge console and have the desk move? If yes, please post the output of that. If not, thats where the error comes from...