Open ibogost opened 11 months ago
Looks like this may be unrelated to TCC and instead a more general Node issue, although I’m still not sure how to resolve it if so.
Maybe update NodeJS to the latest version will reset the node environment ?
Also was there anything interesting in this file - /home/homebridge/.npm/_logs/2023-10-14T15_50_28_220Z-debug-0.log
I left the tail of the file in the OP, but it didn't contain anything I could decode. Here's the end:
11148 verbose stack TypeError: Cannot read properties of null (reading 'matches')
11148 verbose stack at Link.matches (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1119:41)
11148 verbose stack at Link.canDedupe (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1073:15)
11148 verbose stack at PlaceDep.pruneDedupable (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:426:14)
11148 verbose stack at PlaceDep.pruneDedupable (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:450:16)
11148 verbose stack at new PlaceDep (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:219:12)
11148 verbose stack at /opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:943:31
11148 verbose stack at Array.map (
I was thinking of trying an npm rebuild, but maybe updating would also do it.
Nothing in there jumps out to me
I'm stumped
Yeah. It's weird. I can't even get npm rebuild to run. I guess I could recreate the container.
This was the original error message I got for TCC when booting the container. No problem, I thought, I'll just update it. But now I can't update, install, or uninstall this or any plugins. Anything in here look helpful?
[10/15/2023, 6:41:13 PM] ====================
[10/15/2023, 6:41:13 PM] ERROR LOADING PLUGIN homebridge-tcc:
[10/15/2023, 6:41:13 PM] Error: The module '/homebridge/node_modules/.pnpm/node-expat@2.4.0/node_modules/node-expat/build/Release/node_expat.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
or npm install
).
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 (/homebridge/node_modules/.pnpm/bindings@1.5.0/node_modules/bindings/bindings.js:112:48)
at Object.
That message is pretty typical after an update of NodeJS, and the usual fix it to run npm rebuild or just install the plugin again.
That's what I thought too. But I can't run npm rebuild, and I can't uninstall or reinstall the plugin, because I get the error initially reported.
Should I just delete node_modules and restart my container? Will homebridge rebuild its dependencies automatically?
Homebridge won't rebuild its dependencies automatically
What about creating a new container, and restoring a homebridge UI backup from the existing container ? It should install / update all you plugins.
Yes, that seems like the best approach. I'll try it next. Thanks for the input.
Analysis
Cannot reinstall or uninstall TCC plugin. Worked previously, but I updated to a new Homebridge Docker image and now it cannot load nor uninstall/reinstall.
Expected Behavior
Update plugin or uninstall plugin from Homebridge plugin UI
Steps To Reproduce
Logs
Configuration
Environment
Process Supervisor
Docker (Mention image name in
Additional Context
)Additional Context
Image name Homebridge-homebridge
Tail of the log error is attached.
log.txt