-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error uninstalling or updating TCC plugin #138
Comments
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') 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] ==================== |
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
USER: root DIR: /var/lib/homebridge CMD: npm uninstall --save homebridge-tcc npm ERR! Cannot read properties of null (reading 'matches') npm ERR! A complete log of this run can be found in: npm ERR! /home/homebridge/.npm/_logs/2023-10-14T15_50_28_220Z-debug-0.log Operation failed. Please review log for details.
Configuration
N/A
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
The text was updated successfully, but these errors were encountered: