Closed rdeutsch3 closed 10 months ago
Same here. Dead. Can´t get in with "http://192.168.xx.xx:8080/login".
Node: v18.16.0 npm: 9.5.1
How to get back to the old HB UI version?
Same here. Dead. Can´t get in with "http://192.168.xx.xx:8080/login".
Node: v18.16.0 npm: 9.5.1
How to get back to the old HB UI version?
There's probably a more elegant way than what I did, which was to kill the service, wipe out the folders and reinstall. I've got the config file, and a backup, so I knew I could get back up quickly using a sledge hammer.
My suspicion about how to repair more elegantly would be to log in via SSH and try to reinstall homebridge-config-ui-x via the command line.
Hi. You said: Reinstall homebridge-config-ui-x via the command line. Yes but how to install the old 4.50.6 version? sudo npm install -g --unsafe-perm homebridge-config-ui-x?
Hope this will work and HB UI become accessible again.
Try the following it worked for me:-
Hi. You said: Reinstall homebridge-config-ui-x via the command line. Yes but how to install the old 4.50.6 version? sudo npm install -g --unsafe-perm homebridge-config-ui-x?
Hope this will work and HB UI become accessible again.
I looked at: https://docs.npmjs.com/cli/v8/commands/npm-install and there is a "version" argument, see option d) a name>@<version
For reference, I was on v4.50.4 previously.
I have not much brain capacities to fiddle this out this day. Not enough sleep ...
Would this "I looked at: https://docs.npmjs.com/cli/v8/commands/npm-install" and there is a "version" argument, see option d) a @" change anything in your suggestion with step 1-4?
I have not much brain capacities to fiddle this out this day. Not enough sleep ...
Would this "I looked at: https://docs.npmjs.com/cli/v8/commands/npm-install" and there is a "version" argument, see option d) a @" change anything in your suggestion with step 1-4?
Two separate people with different suggestions getting intermingled.
But you get it alive with step 1-4? Yes?
But before "hb-service rebuild" shall I stop all processes with "sudo pkill -u homebridge" and "sudo systemctl stop homebridge"?
@permaMonk Yes, but I then updated node and that's broke it.
I get:
pi@raspberrypi:~ $ sudo hb-service rebuild ℹ Rebuilding for Node.js v18.16.0... rebuilt dependencies successfully npm notice npm notice New major version of npm available! 9.5.1 -> 10.2.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.1 npm notice Run npm install -g npm@10.2.1 to update! npm notice ✔ Rebuilt homebridge-config-ui-x for Node.js v18.16.0. pi@raspberrypi:~ $ sudo npm install -g npm@10.2.1 npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: npm@10.2.1 npm ERR! notsup Not compatible with your version of node/npm: npm@10.2.1 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} npm ERR! notsup Actual: {"npm":"9.5.1","node":"v18.16.0"}
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-10-24T16_38_40_234Z-debug-0.log
Gosh - hallelujah. It´s online again after reboot. Great thx to you.
But now I´m afraid to update npm to 18.17.0 or 20.5.0. Last time I´ve tried anything above npm 18.16.0 it goes up in smoke. Any good experiences with that?
Hey everyone - I've also got a 'frozen' homebridge UI startup screen after the update. I'm a total novice when it comes to this stuff, so if anyone has it in them to post some instructions on how to either rollback to the last update or fix this, I'd be super grateful! I can access homebridge via SSH from my Mac, but after that I'm not sure where to start.....!
Gosh - hallelujah. It´s online again after reboot. Great thx to you.
But now I´m afraid to update npm to 18.17.0 or 20.5.0. Last time I´ve tried anything above npm 18.16.0 it goes up in smoke. Any good experiences with that?
Was there a 'killer' set of commands you used to get through the error? I'm able to get to homebridge via SSH on MacOS terminal
+1 on the dead Homebridge... Hyper-V guest - Ubuntu 22.04.3 - Node 18.18.2 - Not sure what else to say... Update to Config-ui appears to go well, click to restart Homebridge and it never comes alive. I have a snapshot from last night, so I can get back quickly, I suppose, but would rather be up to date.
As said: sudo hb-service rebuild sudo npm install -g npm@10.2.1 sudo reboot Wait a while worked for mine. "sudo npm install -g npm@10.2.1" gave some errors but after reboot it get´s alive again. Updating node to 18.17.0 or 20.5.0 is a problem for later.
For reference: It´s a RasPi 4 with raspbian-buster-lite.
As said: sudo hb-service rebuild sudo npm install -g npm@10.2.1 sudo reboot Wait a while worked for mine. "sudo npm install -g npm@10.2.1" gave some errors but after reboot it get´s alive again. Updating node to 18.17.0 or 20.5.0 is a problem for later.
For reference: It´s a RasPi 4 with raspbian-buster-lite.
Just 'sudo hb-service rebuild' by itself followed by a reboot got me going again. Thanks!
Sorry - I'm really having problems. Does anyone know what this error message is: node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) I get this when I try to run "sudo hb-service rebuild" from pi@homebridge in SSH mode (or frankly any command!)
FWIW: I have two different homebridge servers, one on Raspberry Pi, the other on DSM. Raspberry Pi updated to the new homebridge-config-ui-x fine, the DSM did not. Raspberry Pi:
DSM:
The DSM rebuild that was used to generate the logs with this defect shows a missing dependency of GLIBCXX_3.4.26:
UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
outerError Error: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build/Release/pty.node)
at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.
I ran back to safety and wiped out the DSM homebridge, and reinstalled from scratch.
FWIW: I have two different homebridge servers, one on Raspberry Pi, the other on DSM. Raspberry Pi updated to the new homebridge-config-ui-x fine, the DSM did not. Raspberry Pi:
- Homebridge v1.6.1
- Node.js v18.18.1
- npm 9.8.1
DSM:
- Homebridge v1.6.1
- Node.js v18.15.0
- npm 9.6.7
The DSM rebuild that was used to generate the logs with this defect shows a missing dependency of GLIBCXX_3.4.26: UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js outerError Error: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build/Release/pty.node) at Module._extensions..node (node:internal/modules/cjs/loader:1338:18) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object. (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js:31:11) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) { code: 'ERR_DLOPEN_FAILED' }
I ran back to safety and wiped out the DSM homebridge, and reinstalled from scratch.
I did the same. I’m not an expert with this kinda stuff so just wiped the SD card and installed a fresh image. I’ll avoid updating the ui until I’m sure it’s not going to brick the whole system again!
I've been down 24 hours, this was a lifesaver thanks. sudo hb-service rebuild also worked for me. Please can you let us know when this bug is fixed.
Thanks
For me the easiest way was to reflash the SD-card and restore the system out of a backup
Everyone, we have been looking into this issue since it was first reported a few hours after the release was published. And have a theory into why this is occurring to some users after installing the update.
When the config-ui-x update is installed, the final step is supposed to rebuild a binary module within node-pty-prebuilt-multiarch, and this is silently failing. And when homebridge is restarted it notices the issue and tries to fix itself, and in most cases it resolves itself ( the messages above ), but in some scenarios it fails causing the UI to not be available.
As people have mentioned the best method for recovery is to ssh into your RPI/Homebridge instance, and run sudo hb-service rebuild
@rdeutsch3 and @AntLondon Can you provide details of the environment with the LIBC Error ?
@rdeutsch3 and @AntLondon Can you provide details of the environment with the LIBC Error ? Reference the post above: https://github.com/homebridge/homebridge-syno-spk/issues/138
@rdeutsch3 On your DSM, I presume you are currently running version 4.50.6 ? And could you share what is in the directory
/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build
ie ls -l /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build
Tried everything above, tried apt-get and full-upgrade to the system. Rebuilt HB, rebooted, NOTHING worked. Then found this thread: https://github.com/homebridge/homebridge-config-ui-x/issues/514 and did a rebuild of just npm, restarted home bridge, and I was back in
sudo npm rebuild --unsafe-perm
sudo hb-service start
in the GUI, I noticed theres an update for node.js to 20.9.0 seemingly released today (I'm on 18.18.2). After trying to update Nodejs, HB failed to start again. So I rolled back again to 18.18.2, rebuilt npm, and was back up and running again. Didn't need to nuke the system altogether fwiw.
sudo n 18.18.2
Phew! Ran into this as well but 'sudo hb-service rebuild' worked (no reboot necessary, node 18.17.0).
First ever significant problem with Homebridge, and first with an update. Running native app on Synology NAS. Tried the rebuild but get this:
ℹ Rebuilding for Node.js v18.15.0...
npm ERR! code 1
npm ERR! path /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm ERR! command failed
npm ERR! command sh -c node scripts/check-prebuild.js || prebuild-install || node scripts/install.js
npm ERR! Prebuild binary missing for platform.
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise (
npm ERR! A complete log of this run can be found in: /var/packages/homebridge/home/.npm/_logs/2023-10-25T08_28_14_791Z-debug-0.log Error: Command failed: npm rebuild --unsafe-perm ✖ ERROR: Failed Operation
Really don't want to start from scratch so any advice would be appreciated.
@JSVarga - Looking at that log, looks like you need the compiling tools - https://github.com/homebridge/homebridge-syno-spk/wiki/DSM-7:-Enable-Compiling-Of-Native-Modules
If you using the Homebridge Raspbian image or the Homebridge APT Package, this will work to restore service without losing existing configuration.
sudo apt-get reinstall homebridge
This will downgrade the NodeJS version to 18.18.2 and reset the versions of homebridge and config-ui-x back to 1.6.1 and 4.50.6
sudo apt-get reinstall homebridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
Need to get 0 B/35.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 132886 files and directories currently installed.)
Preparing to unpack .../homebridge_1.1.0_armhf.deb ...
Running pre-upgrade steps...
Stopping Homebridge service...
Unpacking may take several minutes on low powered devices.
Unpacking homebridge (1.1.0) over (1.1.0) ...
Setting up homebridge (1.1.0) ...
Merging package.json file...
Refreshing user plugins, this may take a few minutes, please wait...
changed 2 packages in 9s
rebuilt dependencies successfully
Running post-install steps...
Warning: The home dir /home/homebridge you specified already exists.
The system user `homebridge' already exists. Exiting.
Starting Homebridge service....
@NorthernMan54 :
@rdeutsch3 On your DSM, I presume you are currently running version 4.50.6 ? And could you share what is in the directory
/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build
ie
ls -l /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build
My DSM is running: DSM 7.1.1-42962 Update 5 I'm running homebridge natively, using 3.0.17 It also has the Node.js v18 natively installed, which translates to v18.15.0 I am running homebridge-config-ui-x v4.50.4, which came from the homebridge package, without updating it.
There is no @homebridge folder under the '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/' folder.
Here is the contents of/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules$ ls -l total 1156 drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 abort-controller drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 abstract-logging drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 accepts drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 ajv drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 ajv-formats drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ansi-regex drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ansi-styles drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 aproba drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 archy drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 are-we-there-yet drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 argparse drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 array-flatten drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 asynckit drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 atomic-sleep drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 avvio drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 axios drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 @babel drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 balanced-match drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 base64id drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 base64-js drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 big-integer drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 binary drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 bl drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 bluebird drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 bonjour-service drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 brace-expansion drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 buffer drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 buffer-equal-constant-time drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 buffer-from drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 buffer-indexof-polyfill drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 buffers drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 call-bind drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 chainsaw drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 chalk drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 chownr drwxr-xr-x 7 homebridge homebridge 4096 Jul 20 15:44 class-transformer drwxr-xr-x 7 homebridge homebridge 4096 Jul 20 15:44 class-validator drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 cli-cursor drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 cli-spinners drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 clone drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 code-point-at drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 color-convert drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 color-name drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 combined-stream drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 commander drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 component-emitter drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 concat-map drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 consola drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 console-control-strings drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 content-disposition drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 cookie drwxr-xr-x 12 homebridge homebridge 4096 Jul 20 15:44 core-js-pure drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 core-util-is drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 cors drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 cron-parser drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 dayjs drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 debug drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 decamelize drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 decompress-response drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 deep-extend drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 deep-is drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 deepmerge drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 defaults drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 define-properties drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 delayed-stream drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 delegates drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 depd drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 destroy drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 detect-libc drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 dns-equal drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 dns-packet drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 duplexer2 drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 ecdsa-sig-formatter drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ee-first drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 encodeurl drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 end-of-stream drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 engine.io drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 engine.io-parser drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 escape-html drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 etag drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 events drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 event-target-shim drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 expand-template drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 fast-decode-uri-component drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 fast-deep-equal drwxr-xr-x 9 homebridge homebridge 4096 Jul 20 15:44 fastify drwxr-xr-x 15 homebridge homebridge 4096 Jul 20 15:44 @fastify drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 fastify-plugin drwxr-xr-x 9 homebridge homebridge 4096 Jul 20 15:44 fast-json-stringify drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 fastq drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 fast-querystring drwxr-xr-x 7 homebridge homebridge 4096 Jul 20 15:44 fast-redact drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 fast-safe-stringify drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 fast-uri drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 find-my-way drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 follow-redirects drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 form-data drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 forwarded drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 fresh drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 fs-constants drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 fs-extra drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 fs-minipass drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 fs.realpath drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 fstream drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 function-bind drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 gauge drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 get-intrinsic drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 github-from-package drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 glob drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 graceful-fs drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 has drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 has-flag drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 has-property-descriptors drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 has-proto drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 has-symbols drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 has-unicode drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 helmet drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 hexoid drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 http-errors drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ieee754 drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 inflection drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 inflight drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 inherits drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ini drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 ipaddr.js drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ip-regex drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 is2 drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 isarray drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 is-fullwidth-code-point drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 is-interactive drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 is-nan drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 is-unicode-supported drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 is-url drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 iterare drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 jsonfile drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 json-schema-resolver drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 json-schema-traverse drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 jsonwebtoken drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 js-yaml drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 jwa drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 jws drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 @leichtgewicht drwxr-xr-x 12 homebridge homebridge 4096 Jul 20 15:44 libphonenumber-js drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 light-my-request drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 listenercount drwxr-xr-x 3 homebridge homebridge 20480 Jul 20 15:44 lodash drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.includes drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.isboolean drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.isinteger drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.isnumber drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.isplainobject drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.isstring drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lodash.once drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 log-symbols drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 long-timeout drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lru-cache drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 luxon drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 mime drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 mime-db drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 mime-types drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 mimic-fn drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 mimic-response drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 minimatch drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 minimist drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 minipass drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 minizlib drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 mkdirp drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 mkdirp-classic drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 ms drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 multicast-dns drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 nan drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 napi-build-utils drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 negotiator drwxr-xr-x 12 homebridge homebridge 4096 Jul 20 15:44 @nestjs drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 node-abi drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 node-cache drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 node-fetch drwxr-xr-x 8 homebridge homebridge 4096 Jul 20 15:44 node-pty-prebuilt-multiarch drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 node-schedule drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 npmlog drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 number-is-nan drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 @nuxtjs drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 object-assign drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 object-hash drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 object-keys drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 once drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 onetime drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 on-exit-leak-free drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 on-finished drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 openapi-types drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 ora drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 @oznu drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 passport drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 passport-jwt drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 passport-strategy drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 path-is-absolute drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 path-to-regexp drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 pause drwxr-xr-x 10 homebridge homebridge 4096 Jul 20 15:44 pino drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 pino-abstract-transport drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 pino-std-serializers drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 p-limit drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 prebuild-install drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 process drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 process-nextick-args drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 process-warning drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 proxy-addr drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 pump drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 punycode drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 quick-format-unescaped drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 range-parser drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 rc drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 readable-stream drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 real-require drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 reflect-metadata drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 regenerator-runtime drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 require-from-string drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 restore-cursor drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 ret drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 reusify drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 rfdc drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 rimraf drwxr-xr-x 9 homebridge homebridge 4096 Jul 20 15:44 rxjs drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 safe-buffer drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 safe-regex2 drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 safe-stable-stringify drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 secure-json-parse drwxr-xr-x 7 homebridge homebridge 4096 Jul 20 15:44 semver drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 send drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 set-blocking drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 set-cookie-parser drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 setimmediate drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 setprototypeof drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 signal-exit drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 simple-concat drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 simple-get drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 socket.io drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 socket.io-adapter drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 socket.io-parser drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 sonic-boom drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 sorted-array-functions drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 source-map drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 source-map-support drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 split2 drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 statuses drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 stream-wormhole drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 string_decoder drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 string-width drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 strip-ansi drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 strip-json-comments drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 supports-color drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 swagger-ui-dist drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 systeminformation drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 tail drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 tar drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 tar-fs drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 tar-stream drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 tcp-port-used drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 text-decoding drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 thread-stream drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 thunky drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 tiny-lru drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 toidentifier drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 tr46 drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 traverse drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 tslib drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 tunnel-agent drwxr-xr-x 7 homebridge homebridge 4096 Jul 20 15:44 @types drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 universalify drwxr-xr-x 5 homebridge homebridge 4096 Jul 20 15:44 unzipper drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 uri-js drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 util-deprecate drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 utils-merge drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 uuid drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 validator drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 vary drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 wcwidth drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 webidl-conversions drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 whatwg-url drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 wide-align drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 wrappy drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 ws drwxr-xr-x 6 homebridge homebridge 4096 Jul 20 15:44 xregexp drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 yallist drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 yocto-queue
Same issue here on Synology DSM on 7.1.1 app installed from package center v3.0.17. It hangs when updating to 4.51 on node 18.15.
You can reinstall (remove/install) Homebridge from the package center to go back to version 4.50.4 without losing config, tried it 2 times now.
Tried rebuilding like the log stated but no result. Seems like v4.51 isn't a major update so I keep running 4.50.4 for now.
Logs: [10/25/2023, 6:57:59 PM] [Homebridge UI] Error: Cannot find module '../build/Release/pty.node' Require stack:
[10/25/2023, 6:58:06 PM] [Homebridge UI] sudo hb-service rebuild
Had the same issue here - saw the Homebridge UI update, noted the Node.js required version (I was on 18.x) but after installing the update Homebridge was inaccessible. Had to SSH on to it and use e hb-condig to update node.js to 20.x and restart all was fine. Running on a Raspberry Pi 4 2Gb originally installed via raspbian image Looks to be a patch install issue which the Node.js update cleared, but Homebridge couldn't resolve itself on boot up.
[25/10/2023, 19:06:10] [HB Supervisor] OS: Linux 5.10.92-v7l+ arm
[25/10/2023, 19:06:10] [HB Supervisor] Node.js v18.18.0 /usr/local/bin/node
[25/10/2023, 19:06:10] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[25/10/2023, 19:06:10] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
outerError Error: /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build/Release/pty.node: wrong ELF class: ELFCLASS64
at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.
[25/10/2023, 19:06:12] [Homebridge UI] sudo hb-service rebuild
[25/10/2023, 19:06:12] [HB Supervisor] ERROR: The user interface threw an unhandled error
Error: Node.js global modules rebuild required. See log errors above.
at main (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:29754:19)
at 1808 (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:29806:1)
at __webpack_require__ (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30138:42)
at /usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30166:1
at /usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30272:3
at Object.
[25/10/2023, 19:06:26] [Homebridge UI] sudo hb-service rebuild
[25/10/2023, 19:06:26] [HB Supervisor] ERROR: The user interface threw an unhandled error
Error: Node.js global modules rebuild required. See log errors above.
at main (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:29754:19)
at 1808 (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:29806:1)
at __webpack_require__ (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30138:42)
at /usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30166:1
at /usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30272:3
at Object.
Hi all,
It seems there's an error in src/bin/platforms/linux.ts
Line 420 executes:
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor --yes -o /etc/apt/keyrings/nodes
so the key is stored in /etc/apt/keyrings/nodes
In line 426 the old file "rm -f /usr/share/keyrings/nodesource.gpg" is deleted
However line 432 hasn't been updated, as it still refers to this old file, which is now deleted:
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${majorVersion}.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
It should say deb [signed-by=/etc/apt/keyrings/nodes]
If you edit file /etc/apt/sources.list.d/nodesource.list and correct this, then run
apt-get update && apt-get install nodejs
you'll get the right version of nodejs. Finally rebuild the modules with
sudo hb-service rebuild
followed by
sudo hb-service restart
and you should be good to go.
@mhawkshaw - Nice find. A couple of questions: A: When (roughly) will this be rolled into an update? B: What is the downside of waiting? C: Should we update to the iron version of Node.js or hold off?
A: I submitted a pull request, which was accepted, and will be included in the next release B: None that I'm aware of. If you're still on the previous version of the Homebridge UI then just wait for the next update otherwise I guess you could just follow the steps I listed above and you will be on the correct version of nodejs and Homebridge will work. C: The steps above will get you to the iron version, which is the same version that would be installed with the patch
@JSVarga - Looking at that log, looks like you need the compiling tools - https://github.com/homebridge/homebridge-syno-spk/wiki/DSM-7:-Enable-Compiling-Of-Native-Modules
Thanks, I will do that to future proof.
Meanwhile followed notes from @rickklh and just reinstalled the native package in Synology DSM and it worked a treat.
@mhawkshaw - Your fix is part of 4.51.1
@AntLondon - Your issue is https://github.com/homebridge/homebridge/issues/3453, there are a couple of fixes in the issue.
Am going to limit this issue to just Synology DSM issues with homebridge-config-ui@v4.51.0
@rdeutsch3 @JSVarga @rickklh I think the issue with update on your Synology is related to this error message
Error Error: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build/Release/pty.node)
We are going to dig into this and get back you with an update.
@mhawkshaw and @NorthernMan54 - Thanks for being so responsive to this issue. Needless to say, I was stunned when my Pi updated with no sweat and my DSM went belly up. My DSM instance was only responsible for bringing my XFINITY alarm into HomeKit. I updated them both just before going to bed. As a lead developer, I know better than to do commits or updates as I walk away… I know it, but I forgot. :)
4.51.1 was presented as an upgrade option on my DSM, so I figured I'd try it and no joy.
Here is the log:
[0;37m[10/26/2023, 12:49:47 PM] [0m[0;36m[Homebridge UI][0m Homebridge restart request received
[0;37m[10/26/2023, 12:49:47 PM] [0m[0;36m[Homebridge UI][0m Sending SIGTERM to process...
[37m[10/26/2023, 12:49:47 PM][0m [36m[HB Supervisor][0m Stopping services...
[37m[10/26/2023, 12:49:47 PM] [39mGot SIGTERM, shutting down Homebridge...
[37m[10/26/2023, 12:49:47 PM] [39mGot SIGTERM, shutting down child bridge process...
[37m[10/26/2023, 12:49:52 PM][0m [36m[HB Supervisor][0m Homebridge Process Ended. Code: 143, Signal: null
[37m[10/26/2023, 12:49:59 PM][0m [36m[HB Supervisor][0m OS: Linux 3.10.108 x64
[37m[10/26/2023, 12:49:59 PM][0m [36m[HB Supervisor][0m Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
[37m[10/26/2023, 12:49:59 PM][0m [36m[HB Supervisor][0m Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
[37m[10/26/2023, 12:49:59 PM][0m [36m[HB Supervisor][0m UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
outerError Error: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build/Release/pty.node)
at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.
*** Lastly, I simply uninstalled the homebridge package and then reinstalled it, not wiping everything out this time, and I was back up and running, without restoring anything.
I had problems aswell. I have reinstalled Homebridge and used my backup. Everything is working now with the old version.
4.51.1 on DSM
} Trying Debug version innerError Error: Cannot find module '../build/Debug/pty.node' Require stack:
I just recently started using Homebridge on my Synology, installed through the package manager and all worked perfectly fine. Saw there was an update and did the update through the package manager and now I can't access the UI and none of my Homebridge stuff is working in Apple Home. Is there anything I can do to fix this? Spent a couple days getting all my stuff set up and really don't wanna have to start over.
I just recently started using Homebridge on my Synology, installed through the package manager and all worked perfectly fine. Saw there was an update and did the update through the package manager and now I can't access the UI and none of my Homebridge stuff is working in Apple Home. Is there anything I can do to fix this? Spent a couple days getting all my stuff set up and really don't wanna have to start over.
Yes, you can get back up very quickly. Go to the Package Center on your Synology DSM, open the package (not clicking the Open button) and click the down arrow next to Open, and select Uninstall. Then go re-install the homebridge package and all your devices will re-appear in Apple Home. But you may have to re-setup your automations that interact with devices exposed by Homebridge. I say this as a couple of mine didn't seem to work after reinstalling and restarting.
I just recently started using Homebridge on my Synology, installed through the package manager and all worked perfectly fine. Saw there was an update and did the update through the package manager and now I can't access the UI and none of my Homebridge stuff is working in Apple Home. Is there anything I can do to fix this? Spent a couple days getting all my stuff set up and really don't wanna have to start over.
Yes, you can get back up very quickly. Go to the Package Center on your Synology DSM, open the package (not clicking the Open button) and click the down arrow next to Open, and select Uninstall. Then go re-install the homebridge package and all your devices will re-appear in Apple Home. But you will may have to re-setup your automations that interact with devices exposed by Homebridge. I say this as a couple of mine didn't seem to work after reinstalling and restarting.
Thank you thank you. A million thank you's that totally worked. I was afraid if I uninstalled I would lose all my settings. I don't normally install stuff from the package manager but I was having issues getting the docker version to be seen by Apple Home so went this route as it worked right out of the box.
FYI: I figured I'd try the update from 4.50.4 to 4.51.2 to see what happens. I assumed it would stop and not proceed with the changes mentioned by @NorthernMan54 [#1604]. However, the update proceeded to work and the system ended up in a failed/unresponsive state.
Getting the system working reliably again: I stopped the service, uninstalled the homebridge package and reinstalled and all back and working (several times after several attempts at updating, reinstalling, command line workarounds, etc).
My bottom line: 4.50.4 of homebridge-config-ui-x is the only stable version right now.
Other tidbits:
npm ERR! A complete log of this run can be found in: /var/packages/homebridge/home/.npm/_logs/2023-10-30T16_11_15_355Z-debug-0.log Error: Command failed: npm rebuild --unsafe-perm ✖ ERROR: Failed Operation
Updated the title of the issue to reflect homebridge-config-ui isn't working on 4.51.2 either.
For me :
DSM : 7.1.1-42963 Update 6 Homebridge : v3.0.17 Node.js : v18.15.0 npm : 8.15.0
_Rebuilding for Node.js v18.15.0...
npm ERR! code 1
npm ERR! path /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm ERR! command failed
npm ERR! command sh -c node scripts/check-prebuild.js || prebuild-install || node scripts/install.js
npm ERR! Prebuild binary missing for platform.
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise (
npm ERR! A complete log of this run can be found in: /var/packages/homebridge/home/.npm/logs/2023-10-30T16_28_26_482Z-debug-0.log Error: Command failed: npm rebuild --unsafe-perm ✖ ERROR: Failed Operation_
Here are the complete logs mentioned above :
verbose cli /volume1/@appstore/Node.js_v18/usr/local/bin/node /var/packages/homebridge/target/app/bin/npm 1 info using npm@9.6.7 2 info using node@v18.15.0 3 timing npm:load:whichnode Completed in 3ms 4 timing config:load:defaults Completed in 14ms 5 timing config:load:file:/volume1/@appstore/homebridge/app/lib/node_modules/npm/npmrc Completed in 1ms 6 timing config:load:builtin Completed in 1ms 7 timing config:load:cli Completed in 6ms 8 warn config global-style This option has been deprecated in favor of
--install-strategy=shallow
9 timing config:load:env Completed in 2ms 10 timing config:load:file:/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/.npmrc Completed in 0ms 11 timing config:load:project Completed in 8ms 12 timing config:load:file:/var/packages/homebridge/home/.npmrc Completed in 0ms 13 timing config:load:user Completed in 1ms 14 timing config:load:file:/var/packages/homebridge/target/app/etc/npmrc Completed in 1ms 15 timing config:load:global Completed in 1ms 16 timing config:load:setEnvs Completed in 2ms 17 timing config:load Completed in 36ms 18 timing npm:load:configload Completed in 37ms 19 timing npm:load:mkdirpcache Completed in 0ms 20 timing npm:load:mkdirplogs Completed in 1ms 21 verbose title npm run install 22 verbose argv "run" "install" "--unsafe-perm" 23 timing npm:load:setTitle Completed in 3ms 24 timing config:load:flatten Completed in 7ms 25 timing npm:load:display Completed in 10ms 26 verbose logfile logs-max:10 dir:/var/packages/homebridge/home/.npm/_logs/2023-10-30T17_10_59_690Z- 27 verbose logfile /var/packages/homebridge/home/.npm/_logs/2023-10-30T17_10_59_690Z-debug-0.log 28 timing npm:load:logFile Completed in 24ms 29 timing npm:load:timers Completed in 0ms 30 timing npm:load:configScope Completed in 0ms 31 timing npm:load Completed in 80ms 32 silly logfile start cleaning logs, removing 1 files 33 silly logfile done cleaning log files 34 timing command:run Completed in 2660ms 35 verbose exit 1 36 timing npm Completed in 2800ms 37 verbose code 1
_npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: npm@10.2.1 npm ERR! notsup Not compatible with your version of node/npm: npm@10.2.1 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} npm ERR! notsup Actual: {"npm":"8.15.0","node":"v18.15.0"}
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-10-30T16_33_30797Z-debug-0.log
nothing change.
We have released Homebridge-config-ui-x-4.52.0-beta.33 which should resolve the issue where people are having issues running sudo hb-service-rebuild
after updating homebridge-config-ui-x on linux based environments and needed to rollback to the previous version. We are looking for testers that want to give it a try. So far we have had one positive test result.
I don't know why or how, but it works again. I made some space on the DSM system partition. I removed the installation of Node.js v20, python 3, etc...
@DaGreenX - Is that with the beta or ?
@NorthernMan54
I have this on mine :
Describe The Bug
I updated homebridge-config-ui-x to v4.51.0. The download seemed to be fine, but then the server had a hard time restarting and then it became inaccessible and the one plugin XFinityHome was running became unresponsive. I then completely uninstalled homebridge, wiped out all the folders and did a clean install of homebridge and then updated homebridge-config-ui-x to v4.51.0. There are no other plugins running now, and the homebridge-config-ui-x is broken.
I have the Node.js v18 package installed and the prior version of the UI (v4.50.4) was working fine before the update.
Logs
Config
Homebridge UI Version
v4.51.0
Homebridge Version
3.0.17
Node.js Version
v18.15.0
Operating System
Synology DSM
Environment Info
Raspberry Pi Model
None