homebridge-tcc icon indicating copy to clipboard operation
homebridge-tcc copied to clipboard

Installation using native Synology DSM 7 Homebridge not working

Open wbuschha opened this issue 1 year ago • 13 comments

When I have tried to install the TCC plugin in the native Homebridge version for DSM 7, the installation does not finish and reports a long list of errors. Sorry, I didn’t record the error details. Rather, I switched back to the Oznu/Homebridge version within Docker, and that works fine.

wbuschha avatar May 04 '23 23:05 wbuschha

My DSM 7 fails with this: USER: homebridge DIR: /volume1/homebridge CMD: npm install --save [email protected]

[##################] - reify:googleapis: timing reifyNode:node_modules/homebridge-tcc/

[email protected] install node-gyp rebuild

gyp ERR! build error - reify:googleapis: timing reifyNode:node_modules/homebridge-tcc/ gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:10:17) gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:57:18 gyp ERR! stack at new Promise () gyp ERR! stack at step (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:54:21) gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:71:22 gyp ERR! stack at new Promise () gyp ERR! stack at subStep (/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:69:33) gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/which/which.js:80:22 gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! System Linux 4.4.302+ gyp ERR! command "/volume1/@appstore/homebridge/app/bin/node" "/volume1/@appstore/homebridge/app/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /volume1/homebridge/node_modules/homebridge-tcc/node_modules/node-expat gyp ERR! node -v v17.9.1 gyp ERR! node-gyp -v v9.0.0 gyp ERR! not ok npm ERR! code 1 npm ERR! path /volume1/homebridge/node_modules/homebridge-tcc/node_modules/node-expat npm ERR! command failed npm ERR! command sh -c node-gyp rebuild

npm ERR! A complete log of this run can be found in: npm ERR! /var/packages/homebridge/home/.npm/_logs/2023-05-28T20_26_26_998Z-debug-0.log

Operation failed. Please review log for details.

patrick131 avatar May 28 '23 20:05 patrick131

Any help would be greatly appreciated. It was working fine on my 2009 MacPro that I'm retiring.

patrick131 avatar May 29 '23 16:05 patrick131

@patrick131 homebridge-tcc leverages node-gyp to compile code needed for the plugin to operate. And the Synology environment does not support this without making changes to your setup. If you google node-gyp synology dsm you can see a few guides.

NorthernMan54 avatar May 30 '23 00:05 NorthernMan54

Hi, thank you for the info. I will check it out.

On May 29, 2023, at 20:09, Northern Man @.***> wrote:

node-gyp synology dsm

wbuschha avatar May 30 '23 00:05 wbuschha

Much appreciated, looking into this now!

patrick131 avatar May 30 '23 00:05 patrick131

Please correct me if I'm wrong but the problem seems to be that make isn't available, rather than node-gyp not being available.

I have node-gyp available but not make and I cannot install this plugin.

Is make bundled with node-gyp? Or does it have to be installed separately?

tc8 avatar May 30 '23 17:05 tc8

Make is a compiler tool that is needed with node-gyp, but not included

NorthernMan54 avatar May 30 '23 21:05 NorthernMan54

I have looked into this, but cannot figure out how to install node-gyp on my Synology NAS. I guess I will have to continue using Homebridge with Docker.Thank you.On May 29, 2023, at 20:56, patrick131 @.***> wrote: Much appreciated, looking into this now!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

wbuschha avatar Jun 05 '23 13:06 wbuschha

Even with the upgraded Node.js, I'm getting failures on my DSM 7 system. Looks like something's messed up with libpthread:

[7/31/2023, 3:16:23 PM] ====================
[7/31/2023, 3:16:23 PM] ERROR LOADING PLUGIN homebridge-tcc:
[7/31/2023, 3:16:23 PM] Error: /opt/lib/libpthread.so.0: undefined symbol: __libc_vfork, version GLIBC_PRIVATE
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.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 bindings (/volume1/homebridge/node_modules/homebridge-tcc/node_modules/bindings/bindings.js:112:48)
    at Object.<anonymous> (/volume1/homebridge/node_modules/homebridge-tcc/node_modules/node-expat/lib/node-expat.js:4:34)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.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/homebridge/node_modules/homebridge-tcc/node_modules/xml2json/lib/xml2json.js:1:13)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.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/homebridge/node_modules/homebridge-tcc/node_modules/xml2json/lib/index.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
[7/31/2023, 3:16:23 PM] ====================```

refactoringdr avatar Aug 04 '23 13:08 refactoringdr

As I don't have a DSM, I'm not able to troubleshoot this.

NorthernMan54 avatar Aug 05 '23 13:08 NorthernMan54

Trying to install in Synology DS1821+ with DSM 7.2.1. and no go. I installed Entware and re-tried but no luck. In the log it is looking for something called Make? Not sure what it is or how to install it on the NAS. Anyone have any luck installing this?

Demoleon63 avatar Apr 03 '24 15:04 Demoleon63

@Demoleon63 did you try this ? https://github.com/NorthernMan54/homebridge-tcc/issues/134#issuecomment-1567611742

NorthernMan54 avatar Apr 04 '24 13:04 NorthernMan54

Yes. Both the Entware and the Apache make script were installed but still no go. Looks like same error message as before.

Demoleon63 avatar Apr 04 '24 15:04 Demoleon63