homebridge / homebridge-syno-spk

Homebridge Package for Synology DSM 7.
GNU General Public License v3.0
602 stars 64 forks source link

Cannot find module '../build/Release/pty.node' #137

Closed garyjoy closed 9 months ago

garyjoy commented 9 months ago

Current Situation

I am running DSM 7.1.1 on a DS216j. I have followed the instructions at https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Synology-DSM.

There seems to be a problem with homebridge-config-ui-x. I get innerError Error: Cannot find module '../build/Release/pty.node' (log attached).

Homebridge itself does seem to start (I get the code in the logs) but the UI has this error and the whole thing just keeps looping because it cannot start cleanly.

Logs

[12/18/2023, 12:37:46 PM] [HB Supervisor] Creating default config.json: /volume1/homebridge/config.json
[12/18/2023, 12:37:46 PM] [HB Supervisor] OS: Linux 3.10.108 arm
[12/18/2023, 12:37:46 PM] [HB Supervisor] Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
[12/18/2023, 12:37:46 PM] [HB Supervisor] Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
[12/18/2023, 12:37:46 PM] [HB Supervisor] UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
prebuild-file-path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi108.node
innerError 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/prebuild-loader.js
- /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/prebuild-loader.js:10: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/prebuild-loader.js',
    '/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'
  ]
}
[12/18/2023, 12:37:49 PM] [Homebridge UI] Error: /lib/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/prebuilds/linux-arm/node.abi108.node)
[12/18/2023, 12:37:49 PM] [Homebridge UI] [node-pty] Node.js v18.15.0
[12/18/2023, 12:37:49 PM] [Homebridge UI] [node-pty] Failed to load node-pty module
[12/18/2023, 12:37:49 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.
[12/18/2023, 12:37:49 PM] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
[12/18/2023, 12:37:49 PM] [Homebridge UI] [node-pty] Trying to rebuild automatically...
[12/18/2023, 12:37:49 PM] [Homebridge UI] [node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
[12/18/2023, 12:38:01 PM] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
[12/18/2023, 12:38:01 PM] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[12/18/2023, 12:38:01 PM] [Homebridge UI] sudo hb-service rebuild

[12/18/2023, 12:38:01 PM] [HB Supervisor] 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:31752:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:31774:1)
    at __webpack_require__ (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32106:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32134:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32240:3
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32245: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)
[12/18/2023, 12:38:01 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
[12/18/2023, 12:38:01 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 19290
[12/18/2023, 12:38:02 PM] [HB Supervisor] Stopping services...
[12/18/2023, 12:38:02 PM] [HB Supervisor] Homebridge Process Ended. Code: null, Signal: SIGTERM
[12/18/2023, 12:55:16 PM] [HB Supervisor] OS: Linux 3.10.108 arm
[12/18/2023, 12:55:16 PM] [HB Supervisor] Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
[12/18/2023, 12:55:16 PM] [HB Supervisor] Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
[12/18/2023, 12:55:16 PM] [HB Supervisor] UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
prebuild-file-path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi108.node
innerError 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/prebuild-loader.js
- /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/prebuild-loader.js:10: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/prebuild-loader.js',
    '/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'
  ]
}
[12/18/2023, 12:55:18 PM] [Homebridge UI] Error: /lib/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/prebuilds/linux-arm/node.abi108.node)
[12/18/2023, 12:55:18 PM] [Homebridge UI] [node-pty] Node.js v18.15.0
[12/18/2023, 12:55:18 PM] [Homebridge UI] [node-pty] Failed to load node-pty module
[12/18/2023, 12:55:18 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.
[12/18/2023, 12:55:18 PM] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
[12/18/2023, 12:55:18 PM] [Homebridge UI] [node-pty] Trying to rebuild automatically...
[12/18/2023, 12:55:18 PM] [Homebridge UI] [node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
[12/18/2023, 12:55:29 PM] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
[12/18/2023, 12:55:29 PM] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[12/18/2023, 12:55:29 PM] [Homebridge UI] sudo hb-service rebuild

[12/18/2023, 12:55:29 PM] [HB Supervisor] 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:31752:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:31774:1)
    at __webpack_require__ (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32106:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32134:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32240:3
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32245: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)
[12/18/2023, 12:55:29 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
[12/18/2023, 12:55:29 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 24835
[12/18/2023, 12:55:32 PM] Loaded config.json with 0 accessories and 1 platforms.
[12/18/2023, 12:55:32 PM] ---
[12/18/2023, 12:55:32 PM] No plugins found.
[12/18/2023, 12:55:32 PM] Loading 1 platforms...
Setup Payload:
X-HM://0024I7XTUTP13
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 123-45-678 │     
    └────────────┘     
                       
[12/18/2023, 12:55:32 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 4CF6) is running on port 51753.
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
[12/18/2023, 12:55:39 PM] [HB Supervisor] OS: Linux 3.10.108 arm
[12/18/2023, 12:55:39 PM] [HB Supervisor] Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
[12/18/2023, 12:55:39 PM] [HB Supervisor] Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
[12/18/2023, 12:55:39 PM] [HB Supervisor] UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
prebuild-file-path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi108.node
innerError 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/prebuild-loader.js
- /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/prebuild-loader.js:10: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/prebuild-loader.js',
    '/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'
  ]
}
[12/18/2023, 12:55:41 PM] [Homebridge UI] Error: /lib/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/prebuilds/linux-arm/node.abi108.node)
[12/18/2023, 12:55:41 PM] [Homebridge UI] [node-pty] Node.js v18.15.0
[12/18/2023, 12:55:41 PM] [Homebridge UI] [node-pty] Failed to load node-pty module
[12/18/2023, 12:55:41 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.
[12/18/2023, 12:55:41 PM] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
[12/18/2023, 12:55:41 PM] [Homebridge UI] [node-pty] Trying to rebuild automatically...
[12/18/2023, 12:55:41 PM] [Homebridge UI] [node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
[12/18/2023, 12:55:50 PM] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
[12/18/2023, 12:55:50 PM] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[12/18/2023, 12:55:50 PM] [Homebridge UI] sudo hb-service rebuild

[12/18/2023, 12:55:50 PM] [HB Supervisor] 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:31752:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:31774:1)
    at __webpack_require__ (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32106:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32134:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32240:3
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32245: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)
[12/18/2023, 12:55:50 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
[12/18/2023, 12:55:50 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 25008
[12/18/2023, 12:55:53 PM] Loaded config.json with 0 accessories and 1 platforms.
[12/18/2023, 12:55:53 PM] ---
[12/18/2023, 12:55:53 PM] No plugins found.
[12/18/2023, 12:55:53 PM] Loading 1 platforms...
Setup Payload:
X-HM://0024I7XTUTP13
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 123-45-678 │     
    └────────────┘     
                       
[12/18/2023, 12:55:54 PM] Error: listen EADDRINUSE: address already in use :::51753
    at Server.setupListenHandle [as _listen2] (node:net:1740:16)
    at listenInCluster (node:net:1788:12)
    at Server.listen (node:net:1876:7)
    at EventedHTTPServer.listen (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:164:20)
    at HAPServer.listen (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:377:21)
    at Bridge.<anonymous> (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1365:18)
    at step (/volume1/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
    at Object.next (/volume1/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
    at fulfilled (/volume1/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:166:62)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[12/18/2023, 12:55:54 PM] Got SIGTERM, shutting down Homebridge...
[12/18/2023, 12:56:00 PM] [HB Supervisor] OS: Linux 3.10.108 arm
[12/18/2023, 12:56:00 PM] [HB Supervisor] Node.js v18.15.0 /volume1/@appstore/Node.js_v18/usr/local/bin/node
[12/18/2023, 12:56:00 PM] [HB Supervisor] Homebridge Path: /volume1/homebridge/node_modules/homebridge/bin/homebridge
[12/18/2023, 12:56:00 PM] [HB Supervisor] UI Path: /var/packages/homebridge/target/app/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
prebuild-file-path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/prebuilds/linux-arm/node.abi108.node
innerError 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/prebuild-loader.js
- /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/prebuild-loader.js:10: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/prebuild-loader.js',
    '/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'
  ]
}
[12/18/2023, 12:56:01 PM] [Homebridge UI] Error: /lib/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/prebuilds/linux-arm/node.abi108.node)
[12/18/2023, 12:56:01 PM] [Homebridge UI] [node-pty] Node.js v18.15.0
[12/18/2023, 12:56:01 PM] [Homebridge UI] [node-pty] Failed to load node-pty module
[12/18/2023, 12:56:01 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.
[12/18/2023, 12:56:01 PM] [Homebridge UI] [node-pty] Follow the steps below to resolve this issue.
[12/18/2023, 12:56:01 PM] [Homebridge UI] [node-pty] Trying to rebuild automatically...
[12/18/2023, 12:56:01 PM] [Homebridge UI] [node-pty] Path: /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch
[12/18/2023, 12:56:12 PM] [Homebridge UI] [node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.
[12/18/2023, 12:56:12 PM] [Homebridge UI] [node-pty] From the terminal run this command to rebuild npm modules:

[12/18/2023, 12:56:12 PM] [Homebridge UI] sudo hb-service rebuild

[12/18/2023, 12:56:12 PM] [HB Supervisor] 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:31752:19)
    at 1808 (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:31774:1)
    at __webpack_require__ (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32106:42)
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32134:1
    at /volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32240:3
    at Object.<anonymous> (/volume1/@appstore/homebridge/app/lib/node_modules/homebridge-config-ui-x/dist/main.js:32245: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)
[12/18/2023, 12:56:12 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /volume1/homebridge/node_modules --strict-plugin-resolution
[12/18/2023, 12:56:12 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 25263
[12/18/2023, 12:56:17 PM] Loaded config.json with 0 accessories and 1 platforms.

Configuration

{
    "bridge": {
        "name": "Homebridge 4CF6",
        "username": "0E:9A:77:C9:4C:F6",
        "port": 51753,
        "pin": "626-30-146",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        }
    ]
}

Environment

Process Supervisor

hb-service

Additional Context

No response

NorthernMan54 commented 9 months ago

Duplicate of #138

garyjoy commented 9 months ago

Sorry! I think you're right. I'm having the same problem as RegisCorbet i.e. even a clean install (with no update) doesn't work for me. I will try the "Path A" suggested by rdeutch3 (I'm installing for the first time so I don't have a backup).