homebridge/homebridge-syno-spk

On Synology DSM Homebridge UI not accessible after homebridge-config-ui upgrade to v4.51.0 (or 4.51.2)

rdeutsch3 opened this issue · 78 comments

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

Note- this log was generated after I completely uninstalled homebridge and wiped out the folders, and reinstalled homebridge and then updated homebridge-config-ui to v4.51.0.  There are no other plugins installed at this time.

�[37m[10/24/2023, 9:57:51 AM] �[39mHomebridge v1.6.1 (HAP v0.11.1) (Homebridge 11EA) is running on port 51985.
Failed to create listener for avahi-daemon server state. The system will not be notified about restarts of avahi-daemon and will therefore stay undiscoverable in those instances. Error message: Error: No such interface found
�[0;37m[10/24/2023, 9:58:50 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33mAdded new user: XXX�[0m
�[0;37m[10/24/2023, 10:00:03 AM] �[0m�[0;36m[Homebridge UI]�[0m Running Command: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/upgrade-install.sh 4.51.0 /var/packages/homebridge/target/app
�[0;37m[10/24/2023, 10:00:15 AM] �[0m�[0;36m[Homebridge UI]�[0m Homebridge restart request received
�[0;37m[10/24/2023, 10:00:16 AM] �[0m�[0;36m[Homebridge UI]�[0m Sending SIGTERM to process...
�[37m[10/24/2023, 10:00:16 AM]�[0m �[36m[HB Supervisor]�[0m Stopping services...
�[37m[10/24/2023, 10:00:16 AM] �[39mGot SIGTERM, shutting down Homebridge...
�[37m[10/24/2023, 10:00:21 AM]�[0m �[36m[HB Supervisor]�[0m Homebridge Process Ended. Code: 143, Signal: null
�[37m[10/24/2023, 10:00:27 AM]�[0m �[36m[HB Supervisor]�[0m OS: Linux 3.10.108 x64
�[37m[10/24/2023, 10:00:27 AM]�[0m �[36m[HB Supervisor]�[0m Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
�[37m[10/24/2023, 10:00:27 AM]�[0m �[36m[HB Supervisor]�[0m Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
�[37m[10/24/2023, 10:00:27 AM]�[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.<anonymous> (/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'
}
Trying Debug version
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
- /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js:38:15)
    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)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
  ]
}
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31mError: /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)�[0m
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Node.js v18.15.0�[0m
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Failed to load node-pty module�[0m
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] This could be because the installation of this plugin did not complete successfully or you may have recently upgraded Node.js to a new major version.�[0m
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Follow the steps below to resolve this issue.�[0m
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] Trying to rebuild automatically...�[0m
�[0;37m[10/24/2023, 10:00:27 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch�[0m
�[0;37m[10/24/2023, 10:00:32 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.�[0m
�[0;37m[10/24/2023, 10:00:32 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] From the terminal run this command to rebuild npm modules:
�[0m
�[0;37m[10/24/2023, 10:00:32 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33msudo hb-service rebuild
�[0m
�[37m[10/24/2023, 10:00:32 AM]�[0m �[36m[HB Supervisor]�[0m ERROR: The user interface threw an unhandled error
Error: Node.js global modules rebuild required. See log errors above.
    at main (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:29754:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:29806:1)
    at __webpack_require__ (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30138:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30166:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30272:3
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30277:12)
    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)
�[37m[10/24/2023, 10:00:32 AM]�[0m �[36m[HB Supervisor]�[0m Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
�[37m[10/24/2023, 10:00:32 AM]�[0m �[36m[HB Supervisor]�[0m Started Homebridge v1.6.1 with PID: 820
�[37m[10/24/2023, 10:00:33 AM] �[39mLoaded config.json with 0 accessories and 1 platforms.
�[37m[10/24/2023, 10:00:33 AM] �[39mLoaded 0 cached accessories from cachedAccessories.
�[37m[10/24/2023, 10:00:33 AM] �[39m---
�[37m[10/24/2023, 10:00:33 AM] �[39m�[33mNo plugins found.�[39m
�[37m[10/24/2023, 10:00:33 AM] �[39mLoading 1 platforms...

Config

{
    "bridge": {
        "name": "Homebridge 11EA",
        "username": "XX:XX:XX:XX:XX:XX",
        "port": 51985,
        "pin": "444-00-759",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        }
    ]
}

Homebridge UI Version

v4.51.0

Homebridge Version

3.0.17

Node.js Version

v18.15.0

Operating System

Synology DSM

Environment Info

  • Using Docker?
  • Using Hyper-V?
  • Using hb-service?

Raspberry Pi Model

None

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:-

  1. sudo hb-service rebuild
  2. sudo npm install -g npm@10.2.1
  3. sudo reboot
  4. Wait a while

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 @

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:

  • 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.

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

eibi63 commented

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: #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

yweiss commented

Tried everything above, tried apt-get and full-upgrade to the system. Rebuilt HB, rebooted, NOTHING worked. Then found this thread: homebridge/homebridge-config-ui-x#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! gyp ERR! stack at step (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 4.4.180+
npm ERR! gyp ERR! command "/volume1/@appstore/Node.js_v18/usr/local/bin/node" "/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm ERR! gyp ERR! node -v v18.15.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

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.

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:

  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    [10/25/2023, 6:57:59 PM] [Homebridge UI] [node-pty] Node.js v18.15.0
    [10/25/2023, 6:57:59 PM] [Homebridge UI] [node-pty] Failed to load node-pty module
    [10/25/2023, 6:57:59 PM] [Homebridge UI] [node-pty] This could be because the installation of this plugin did not complete successfully or you may have recently upgraded Node.js to a new major version.
    [10/25/2023, 6:57:59 PM] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
    [10/25/2023, 6:57:59 PM] [Homebridge UI] [node-pty] Trying to rebuild automatically...
    [10/25/2023, 6:57:59 PM] [Homebridge UI] [node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
    [10/25/2023, 6:58:06 PM] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
    [10/25/2023, 6:58:06 PM] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[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. (/usr/local/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:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12) {
code: 'ERR_DLOPEN_FAILED'
}
Trying Debug version
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:

  • /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object. (/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js:38:15)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    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) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js',
    '/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
    ]
    }
    [25/10/2023, 19:06:11] [Homebridge UI] 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
    [25/10/2023, 19:06:11] [Homebridge UI] [node-pty] Node.js v18.18.0
    [25/10/2023, 19:06:11] [Homebridge UI] [node-pty] Failed to load node-pty module
    [25/10/2023, 19:06:11] [Homebridge UI] [node-pty] This could be because the installation of this plugin did not complete successfully or you may have recently upgraded Node.js to a new major version.
    [25/10/2023, 19:06:11] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
    [25/10/2023, 19:06:11] [Homebridge UI] [node-pty] Trying to rebuild automatically...
    [25/10/2023, 19:06:11] [Homebridge UI] [node-pty] Path: /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
    [25/10/2023, 19:06:12] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
    [25/10/2023, 19:06:12] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[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. (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30277:12)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
[25/10/2023, 19:06:12] [HB Supervisor] Starting Homebridge with extra flags: -I
[25/10/2023, 19:06:12] [HB Supervisor] Started Homebridge v1.6.1 with PID: 7753
[25/10/2023, 19:06:13] Loaded config.json with 2 accessories and 8 platforms.
[25/10/2023, 19:06:13] Loaded 0 cached accessories from cachedAccessories.
[25/10/2023, 19:06:13] ---
[25/10/2023, 19:06:14] Loaded plugin: homebridge-camera-ffmpeg@3.1.4
[25/10/2023, 19:06:14] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[25/10/2023, 19:06:14] ---
[25/10/2023, 19:06:14] Loaded plugin: homebridge-config-ui-x@4.51.0
[25/10/2023, 19:06:14] Registering platform 'homebridge-config-ui-x.config'
[25/10/2023, 19:06:14] ---
[25/10/2023, 19:06:15] Disabled plugin: homebridge-homeconnect@0.29.8
[25/10/2023, 19:06:15] ---
[25/10/2023, 19:06:15] Disabled plugin: homebridge-ismartgate@1.4.2
[25/10/2023, 19:06:15] ---
[25/10/2023, 19:06:15] Loaded plugin: homebridge-nest@4.6.9
[25/10/2023, 19:06:15] Registering platform 'homebridge-nest.Nest'
[25/10/2023, 19:06:15] ---
[25/10/2023, 19:06:15] Disabled plugin: homebridge-solaredge-inverter@0.2.7
[25/10/2023, 19:06:15] ---
[25/10/2023, 19:06:16] Loaded plugin: homebridge-webos-tv@2.4.1
[25/10/2023, 19:06:16] Registering platform 'homebridge-webos-tv.webostv'
[25/10/2023, 19:06:16] ---
[25/10/2023, 19:06:16] Loaded plugin: homebridge-wiz-lan@3.2.8
[25/10/2023, 19:06:16] Registering platform 'homebridge-wiz-lan.WizSmarthome'
[25/10/2023, 19:06:16] ---
[25/10/2023, 19:06:22] [HB Supervisor] OS: Linux 5.10.92-v7l+ arm
[25/10/2023, 19:06:22] [HB Supervisor] Node.js v20.9.0 /usr/local/bin/node
[25/10/2023, 19:06:22] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[25/10/2023, 19:06:22] [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:1327:18)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object. (/usr/local/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:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12) {
code: 'ERR_DLOPEN_FAILED'
}
Trying Debug version
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:

  • /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object. (/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js:38:15)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js',
    '/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
    ]
    }
    [25/10/2023, 19:06:22] [Homebridge UI] 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
    [25/10/2023, 19:06:22] [Homebridge UI] [node-pty] Node.js v20.9.0
    [25/10/2023, 19:06:22] [Homebridge UI] [node-pty] Failed to load node-pty module
    [25/10/2023, 19:06:22] [Homebridge UI] [node-pty] This could be because the installation of this plugin did not complete successfully or you may have recently upgraded Node.js to a new major version.
    [25/10/2023, 19:06:22] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
    [25/10/2023, 19:06:22] [Homebridge UI] [node-pty] Trying to rebuild automatically...
    [25/10/2023, 19:06:22] [Homebridge UI] [node-pty] Path: /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
    [25/10/2023, 19:06:26] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
    [25/10/2023, 19:06:26] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[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. (/usr/local/lib/node_modules/homebridge-config-ui-x/dist/main.js:30277:12)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)

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 homebridge/homebridge#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. (/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'
}
Trying Debug version
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:

  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    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:38:15)
    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)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
    ]
    }
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31mError: /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)�[0m
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Node.js v18.15.0�[0m
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Failed to load node-pty module�[0m
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] This could be because the installation of this plugin did not complete successfully or you may have recently upgraded Node.js to a new major version.�[0m
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Follow the steps below to resolve this issue.�[0m
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] Trying to rebuild automatically...�[0m
    �[0;37m[10/26/2023, 12:49:59 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch�[0m
    �[0;37m[10/26/2023, 12:50:04 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.�[0m
    �[0;37m[10/26/2023, 12:50:04 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] From the terminal run this command to rebuild npm modules:
    �[0m
    �[0;37m[10/26/2023, 12:50:04 PM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33msudo hb-service rebuild
    �[0m
    �[37m[10/26/2023, 12:50:04 PM]�[0m �[36m[HB Supervisor]�[0m ERROR: The user interface threw an unhandled error
    Error: Node.js global modules rebuild required. See log errors above.
    at main (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:29754:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:29806:1)
    at webpack_require (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30138:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30166:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30272:3
    at Object. (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30277:12)
    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)
    �[37m[10/26/2023, 12:50:04 PM]�[0m �[36m[HB Supervisor]�[0m Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
    �[37m[10/26/2023, 12:50:04 PM]�[0m �[36m[HB Supervisor]�[0m Started Homebridge v1.6.1 with PID: 28985
    �[37m[10/26/2023, 12:50:05 PM] �[39mLoaded config.json with 0 accessories and 2 platforms.
    �[37m[10/26/2023, 12:50:05 PM] �[39mLoaded 0 cached accessories from cachedAccessories.
    �[37m[10/26/2023, 12:50:05 PM] �[39m---
    �[37m[10/26/2023, 12:50:05 PM] �[39mLoaded plugin: homebridge-xfinityhome@3.4.1
    �[37m[10/26/2023, 12:50:05 PM] �[39mRegistering platform 'homebridge-xfinityhome.XfinityHomePlatform'
    �[37m[10/26/2023, 12:50:05 PM] �[39m---
    �[37m[10/26/2023, 12:50:05 PM] �[39mLoading 2 platforms...
    �[37m[10/26/2023, 12:50:05 PM] �[39m�[36m[Xfinity Home System]�[39m Initializing XfinityHomePlatform platform...
    �[37m[10/26/2023, 12:50:05 PM] �[39m�[36m[Xfinity Home System]�[39m Initializing child bridge 0E:5D:DF:42:C2:35

*** 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:

  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    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:38:15)
    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)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
    ]
    }
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31mError: Cannot find module '../build/Release/pty.node'
    Require stack:
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js�[0m
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Node.js v18.15.0�[0m
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Failed to load node-pty module�[0m
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] This could be because the installation of this plugin did not complete successfully or you may have recently upgraded Node.js to a new major version.�[0m
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Follow the steps below to resolve this issue.�[0m
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] Trying to rebuild automatically...�[0m
    �[0;37m[10/27/2023, 12:05:33 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch�[0m
    �[0;37m[10/27/2023, 12:05:44 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;31m[node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.�[0m
    �[0;37m[10/27/2023, 12:05:44 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33m[node-pty] From the terminal run this command to rebuild npm modules:
    �[0m
    �[0;37m[10/27/2023, 12:05:44 AM] �[0m�[0;36m[Homebridge UI]�[0m �[0;33msudo hb-service rebuild
    �[0m
    �[37m[10/27/2023, 12:05:44 AM]�[0m �[36m[HB Supervisor]�[0m ERROR: The user interface threw an unhandled error
    Error: Node.js global modules rebuild required. See log errors above.
    at main (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:29754:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:29806:1)
    at webpack_require (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30138:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30166:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30272:3
    at Object. (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:30277:12)
    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)
    �[37m[10/27/2023, 12:05:44 AM]�[0m �[36m[HB Supervisor]�[0m Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
    /volume1/@appstore/Node.js_v18/usr/local/bin/node
    �[37m[10/27/2023, 12:05:55 AM]�[0m �[36m[HB Supervisor]�[0m Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
    �[37m[10/27/2023, 12:05:55 AM]�[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: Cannot find module '../build/Release/pty.node'
    Require stack:
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js
  • /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    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)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/lib/index.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js',
    '/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js'
    ]

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:

  • There is no Node.js v20 package available for installation from Synology.
  • The 'strings' command doesn't exist in the DSM installation
  • hb-service update-node fails with the following:
    ℹ Updating Node.js from v18.15.0 to v20.9.0...
    ✖ Cannot update Node.js on your system. Non-standard installation path detected: /volume1/@appstore/Node.js_v18/usr/local
  • The 'sudo hb-service rebuild' command fails with:
    ℹ 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! gyp ERR! stack at step (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
    npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
    npm ERR! gyp ERR! stack at new Promise ()
    npm ERR! gyp ERR! stack at subStep (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
    npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
    npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/index.js:42:5
    npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
    npm ERR! gyp ERR! System Linux 3.10.108
    npm ERR! gyp ERR! command "/volume1/@appstore/Node.js_v18/usr/local/bin/node" "/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    npm ERR! gyp ERR! cwd /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
    npm ERR! gyp ERR! node -v v18.15.0
    npm ERR! gyp ERR! node-gyp -v v9.3.1
    npm ERR! gyp ERR! not ok

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

Step 1 : sudo hb-service rebuild

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! gyp ERR! stack at step (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 4.4.180+
npm ERR! gyp ERR! command "/volume1/@appstore/Node.js_v18/usr/local/bin/node" "/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm ERR! gyp ERR! node -v v18.15.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

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

Step 2 : 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":"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_30_797Z-debug-0.log

Step 3 : sudo reboot

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.

image

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 :

image

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.

image

No joy on my DSM with Homebridge-config-ui-x-4.52.0-beta.33. Build failed. Can you get me a link for the tools to build?

sudo hb-service rebuild
ℹ 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 exists: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi108.node
npm ERR! Prebuild binary failed test.
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! gyp ERR! stack at step (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 3.10.108
npm ERR! gyp ERR! command "/volume1/@appstore/Node.js_v18/usr/local/bin/node" "/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
npm ERR! gyp ERR! node -v v18.15.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /var/packages/homebridge/home/.npm/_logs/2023-10-30T21_15_52_639Z-debug-0.log
Error: Command failed: npm rebuild --unsafe-perm
✖ ERROR: Failed Operation

@rdeutsch3 - With Beta 33, I had updated the native module prebuild process to reduce the number of issues on RPI, but haven't deep dived into the Synology DSM.

At this point in your last log -
npm ERR! Prebuild binary exists: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/prebuilds/linux-x64/node.abi108.node
npm ERR! Prebuild binary failed test.

It is attempting to load a native module, and it is failing.

If your running 4.50.6, what does this command show

find /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/ -ls

And I'm going to introduce a new beta later today, with additional logging to hopefully find the resolution to the issue.

@NorthernMan54
I am currently running: homebridge-config-ui-x v4.50.4

/$ find /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/ -ls
find: `/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/': No such file or directory

There is no @homebridge directory under: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules

However there is a node-pty-prebuild-multiarch directory and it shows:
/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/node-pty-prebuilt-multiarch$ ls -l
total 40
-rw-r--r-- 1 homebridge homebridge 1997 Oct 26 1985 binding.gyp
drwxr-xr-x 3 homebridge homebridge 4096 Jul 20 15:44 deps
drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 lib
-rw-r--r-- 1 homebridge homebridge 3326 Oct 26 1985 LICENSE
-rw-r--r-- 1 homebridge homebridge 2910 Jul 20 15:44 package.json
drwxr-xr-x 8 homebridge homebridge 4096 Jul 20 15:44 prebuilds
-rw-r--r-- 1 homebridge homebridge 2502 Oct 26 1985 README.md
drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 scripts
drwxr-xr-x 4 homebridge homebridge 4096 Jul 20 15:44 src
drwxr-xr-x 2 homebridge homebridge 4096 Jul 20 15:44 typings

How can we resolve more quickly? Can you message me directly and establish verbal comm?

Tks for that ls, it helps to determine why 4.50.4 works and a bit into why 4.51.x fails.

Looking at the other log messages supplied, and this one
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)`

Does this output anything on your DSM ? getconf GNU_LIBC_VERSION

My working theory is that the updated OS prebuild server is generating native modules with too high of a GLIBC version.

PS I'm on the homebridge discord, most mornings from 9 to 11ish Eastern Time

@NorthernMan54
$ getconf GNU_LIBC_VERSION
bash: getconf: command not found

Not on discord, and not familiar. I used to work remotely into Toronto, from Texas
Update: I'm now on discord, but still not familiar. Tried to message you, and failed. Perhaps we can connect at some point and resolve more quickly.

Challenge is that the prebuild service builds native modules for a lot of environments, and the old Linux OS is no longer supported. Need to find a method of building for the older GLIBC

From old version

strings node.abi108.node | grep GLIBC | awk -F@ '{ print $3 }' | sort | uniq

GLIBCXX_3.4
GLIBC_2.2.5

From Current Version

strings node.abi108.node | grep GLIBC | awk -F@ '{ print $2 }' | sort | uniq

GLIBCXX_3.4
GLIBC_2.2.5
GLIBC_2.28

Build from buster-slim

strings ~/Downloads/node.abi108.node | grep GLIBC | awk -F@ '{ print $2 $3 }' | sort | uniq

GLIBCXX_3.4
GLIBC_2.2.5
GLIBC_2.28

Build from stretch

strings node.abi108.node | grep GLIBC | awk -F@ '{ print $2 $3 }' | sort | uniq

GLIBCXX_3.4
GLIBC_2.2.5

PS Everything was very cranky as the OS Release is no longer supported

Now just need to split up the build process for NodeJS <= 18 and NodeJS > 18

@rdeutsch3 and others - If you have some free time and brave, could you test Homebridge-config-ui-x@v4.52.0-beta.49 ? I believe I have resolved the GLIBC_2.28 issue.

This version includes native modules when running NodeJS <= 18 that don't look for GLIBC_2.28

PS Getting this assembled as a package took longer than expected as I needed to redo the build process, and create a separate build environment targeting older releases.

@NorthernMan54 successfully installed the version v4.52.0-beta.49 on Raspbian GNU/Linux Buster (10) with node v18.18.2 via ui.
with version v4.51.0 I had the issue with GLIBCXX_3.4.26/node 20
so node 20 isn't required anymore for homebridge-config-ui-x (for now) ?

Homebridge-config-ui-x supports Node 18 and 20, so your okay for now. But at some point you will need an operating system update to a more recent version to support Node 20, when Node 18 goes out of support ( Spring 2025 ). Hopefully synology supplies this.

Perfect - I currently in-upgrading to bullseye in the meantime (with updating node to v20), homebridge is working fine, some plugins need attention (eg. camera ffmpeg does not stream anymore, but this is another story) ;)

@NorthernMan54 I will be able to try it on my DSM on Sunday evening or Monday am

@rdeutsch3 - If we get a couple of positive results, we may release before then. Stay tuned.

Success with Homebridge UI v4.52.1 on Synology DSM (node 18). Thank you!

@NorthernMan54 - Confirmed success on update from v4.50.4 to 4.52.1, with no changes to the native DSM homebridge installation.

Feels like Docker is in my future as it looks like my 415+ DSM is no longer supported with the latest versions of their OS, even though I fixed the resistor and updated the memory ages ago and its still working great. :(

@rdeutsch3 thank you confirming.

Thank you for your tests of the various versions. Your plans to switch to docker or something else in the future is a great thought. The build server to create the native modules for these older versions is also long past support as well, so with the next major update, likely 12 to 18 months out, we won’t be able to build these anymore.

Am thinking we need to highlight this future end of support for older OS’s.

I’m going to leave this open for a few weeks, in case anyone else has issues.

I used to run Homebridge on a Pi then Synology Docker (DSM 6 & 7) all without issue. With Synology DSM 7 it seemed the "native install" was the way to go so I switched... looks like I may be switching back to Docker as well... appreciate the updates and roadmap.

Success with Homebridge UI v4.52.1 on Synology DSM (node 18). Thank you!

Great but how to make this update without access to the UI?

Success with Homebridge UI v4.52.1 on Synology DSM (node 18). Thank you!

Great but how to make this update without access to the UI?

I found you can go to the package manager on Synology and stop and then uninstall homebridge and then reinstall the homebridge package and everything works with the default installed version of the config ui plug-in. Then you can update the config ui plug in to a newer version that addresses the issue.

Success with Homebridge UI v4.52.1 on Synology DSM (node 18). Thank you!

Great but how to make this update without access to the UI?

I found you can go to the package manager on Synology and stop and then uninstall homebridge and then reinstall the homebridge package and everything works with the default installed version of the config ui plug-in. Then you can update the config ui plug in to a newer version that addresses the issue.

I tried to do so many times during the past weeks, and tried again few minutes ago and it doesn't work for me. Thank you to take time to answer, probably it will work for other users

Success with Homebridge UI v4.52.1 on Synology DSM (node 18). Thank you!

Great but how to make this update without access to the UI?

I found you can go to the package manager on Synology and stop and then uninstall homebridge and then reinstall the homebridge package and everything works with the default installed version of the config ui plug-in. Then you can update the config ui plug in to a newer version that addresses the issue.

I tried to do so many times during the past weeks, and tried again few minutes ago and it doesn't work for me. Thank you to take time to answer, probably it will work for other users

Bummer. There is one more approach that will definitely work, but it is a bit more dramatic. If you have a backup of when it was working there is very little drama, if you don’t then it means re-installing the plug-ins and re-adding to HK.

Go to the Package Manager on the Synology, then stop the service within the package page and uninstall it. Then delete the entire /homebridge folder and re-installs the homebridge package. This makes it like a fresh installation.

Then choose your path:
A) The clean slate approach - Update the config up plug in to one that works and then reinstall the other plug-ins and configure HK. I actually favor this one, as a software engineer this allowed me to isolate it down to just the config plug in being problematic.
B) Restore the homebridge backup. This will automatically download the plug-ins and they’ll show back up in HK like they were before and any previous automations will work, etc. Then update the config-ui plug-in to a known working version.

I’ve actually done both as a consequence of this issue, several times as a matter of fact. I then transplanted homebridge onto an old Raspberry Pi 3+ with the restoration.

Then choose your path: A) The clean slate approach - Update the config up plug in to one that works and then reinstall the other plug-ins and configure HK. I actually favor this one, as a software engineer this allowed me to isolate it down to just the config plug in being problematic.

Can you elaborate a bit on how I can "Update the config up plug in to one that works"? I can't find any reference to the UI plugin version in any of the configuration files. Is it an SSH command?

You are correct the config UI is not in the config like the rest of the plug ins.

If you uninstall the homebridge package on the Synology, and then re-install it leaving the current config in place everything will work. Then in the homebridge plug-in install section there will be a dropdown for what version to install and you can pick a version that works. This issue was addressed a while back, so jumping forward to at least 4.52.1 was key. The latest/current version 4.54.1 works.

You are correct the config UI is not in the config like the rest of the plug ins.

If you uninstall the homebridge package on the Synology, and then re-install it leaving the current config in place everything will work. Then in the homebridge plug-in install section there will be a dropdown for what version to install and you can pick a version that works. This issue was addressed a while back, so jumping forward to at least 4.52.1 was key. The latest/current version 4.54.1 works.

Ah.. I see what you mean now but I'm having the same problem as RegisCorbet i.e. I get this problem from a fresh install i.e. after a fresh install the UI plugin does not work for me...

I'm running...

DSM = DSM 7.1.1
Node = v18.15.0
DS216j

...and just following the install instructions from https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Synology-DSM.

You are correct the config UI is not in the config like the rest of the plug ins.
If you uninstall the homebridge package on the Synology, and then re-install it leaving the current config in place everything will work. Then in the homebridge plug-in install section there will be a dropdown for what version to install and you can pick a version that works. This issue was addressed a while back, so jumping forward to at least 4.52.1 was key. The latest/current version 4.54.1 works.

Ah.. I see what you mean now but I'm having the same problem as RegisCorbet i.e. I get this problem from a fresh install i.e. after a fresh install the UI plugin does not work for me...

I'm running...

DSM = DSM 7.1.1 Node = v18.15.0 DS216j

...and just following the install instructions from https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Synology-DSM.

For the sake of clarity and curiosity I just stopped and uninstalled homebridge on my Synology 415+ via the package manager. I then reinstalled homebridge from package version 3.0.20, which I think was made available in early Dec. That version has homebridge-config-ui-x v4.52.3 in that package and runs fine on my system.

My DSM is running: 7.1.1-42962 Update 5
The Node.js package v18 is installed, as well as homebridge 3.0.20 package

Without updating any plug-ins or anything, Homebridge reports:
Node.js v18.15
Homebridge v1.7.0
homebridge-config-ui-x v4.52.3
npm v 10.1.0

If you've got the same packages as me and it doesn't work, I might suggest the 'clean slate' approach.
What I would suggest is copying your entire homebridge folder on the DSM to a back up location, then deleting it from the original location and uninstalling and reinstalling the packages and see what you come up with a clean load. You could then install the latest config ui and see if it works. Again the latest/current version 4.54.1 works for me.

If you've got a backup, e.g. from the homebridge/backups/instance-backups folder from your original install when it was working, you should be able to restore it and get your HK environment back like it was.

For the sake of clarity and curiosity I just stopped and uninstalled homebridge on my Synology 415+ via the package manager. I then reinstalled homebridge from package version 3.0.20, which I think was made available in early Dec. That version has homebridge-config-ui-x v4.52.3 in that package and runs fine on my system.

My DSM is running: 7.1.1-42962 Update 5 The Node.js package v18 is installed, as well as homebridge 3.0.20 package

Without updating any plug-ins or anything, Homebridge reports: Node.js v18.15 Homebridge v1.7.0 homebridge-config-ui-x v4.52.3 npm v 10.1.0

If you've got the same packages as me and it doesn't work, I might suggest the 'clean slate' approach. What I would suggest is copying your entire homebridge folder on the DSM to a back up location, then deleting it from the original location and uninstalling and reinstalling the packages and see what you come up with a clean load. You could then install the latest config ui and see if it works. Again the latest/current version 4.54.1 works for me.

If you've got a backup, e.g. from the homebridge/backups/instance-backups folder from your original install when it was working, you should be able to restore it and get your HK environment back like it was.

I've tried the "clean slate" approach a few times and it still doesn't work. This is the first time I've tried to install Homebridge so I don't have a backup of a working setup.

My setup is pretty much the same as yours. I have a slightly newer DSM (DSM 7.1.1-42962 Update 6) and a slightly older NPM (9.5.0) but otherwise everything looks the same (i.e. 3.0.20 (v1.7.0)).

Thanks for your help but I'm going to find another device to run it on I think.

This may be a solution for some users - #134 (comment)