Read the statement by Michael Teeuw here.
Update MMM
-
I did the “npm install”.
I fixed 2 moderate vulnerabilities and it still remains 8 low severity vulnerabilities.I don’t get if this can have consequences or not.
-
@mattx38 don’t worry about the audit stuff… does it run?
-
No, the mirror stays black with the mouse arrow in the left upper corner.
I did a reboot and a “pm2 restart mm”, but nothing works… -
@mattx38
pm2 stop mm
cd ~/magicMirror
npm start dev
alt-spacebar, n to minimize MM,… any messages on the terminal window?
select the MM window to reopen, select the console, and scroll up to see if any errors…
there is a fatal one somewhere -
Yes there is an error in red :
[2020-04-01 22:06:21.797] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuildornpm install).and other errors still with PIR module, but the errors are written in white
EDIT : I try a “npm rebuild” ?
-
@mattx38 pir is a pain in the rear… I would disable it in config.js for now
add
disabled:true,after module:“MMM-PIR-Sensor”,
-
Done.
I did again a “npm start dev” and I have new errors written in red :
[2020-04-01 22:14:46.668] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘/home/pi/MagicMirror/modules/MMM-Hotword/snowboy/lib/node/binding/Release/electron-v6.1-linux-arm/snowboy.node’
Require stack:- /home/pi/MagicMirror/modules/MMM-Hotword/snowboy/lib/node/index.js
- /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
-
@mattx38 yep, snowboy is broke too… disable MMM-Hotword
-
This update broke a lot of things… What a pain !
-
@mattx38 for hotword, from the hotword doc, try
in the MMm_Hotword foldergit clone https://github.com/Kitt-AI/snowboy.git cd snowboy rm -rf .git cp -r resources/models .. npm install -y nan node-pre-gyp ./node_modules/node-pre-gyp/bin/node-pre-gyp clean configure build npm install -y npm install -y electron-rebuild ./node_modules/.bin/electron-rebuildits because electron changed versions… some modules are compiled at certain node and electron versions
if u change the versions (how would u know), then these modules break… Hotword and PIR are two such modules… -
Now it is the Jarvis Assitant :
[2020-04-01 22:22:29.776] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: electron-v6.1-linux-arm-glibc
Found: [electron-v3.1-linux-arm-glibc, node-v64-linux-arm-glibc]
This problem can often be fixed by running “npm rebuild” on the current system
Original error: Cannot find module ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-arm-glibc/grpc_node.node’
Require stack:- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/index.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/google-assistant/components/assistant.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/google-assistant/index.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/components/assistant.js
- /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
-
@mattx38 said in Update MMM:
MMM-AssistantMk2
yep assistant… same problem as hotword… incompatible binary versions
assistant doc
Then, you need to rebuild grpc module for electron of MagicMirror. npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild -
for pir-sensor try
cd ~/MagicMirror npm install electron-rebuild node_modules/.bin/electron-rebuild -
@sdetweil said in Update MMM:
@mattx38 said in Update MMM:
MMM-AssistantMk2
yep assistant… same problem as hotword… incompatible binary versions
assistant doc
Then, you need to rebuild grpc module for electron of MagicMirror. npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuildFor the last command, it is very long to achieve ; 5 minutes that it runs.
It’s written : Building module : grpc, Completed: 0 -
@mattx38 every machine is different… I ignore how long it takes…
did i work?
-
Don’t know yet.
Did I do something wrong with the update ?
Everything seams to be broken…Anyway, thank you very much for your precious help and sorry for my poor english (I’m from France)
-
@mattx38 no issue… the ‘default’ instructions don’t consider all the other things that will break.
even my upgrade script does not handle these problems… as they are so module specific…
my french is a LOT worse than your english!..
-
Ok I understand.
I saw a message on the Remote Control module github and it seams there is also a problem with it after the MMM update.My MagicMirror was running as a charm till this update. I saw the alert on the MM screen so I did it… what a shame
-
It is still running, but nothing changed into the terminal.
After the command “npm install --save-dev electron-rebuild” I had this message :- electron-rebuild@1.10.1
updated 2 packages and audited 822 packages in 16.302s
3 packages are looking for funding
runnpm fundfor detailsfound 9 low severity vulnerabilities
runnpm audit fixto fix them, ornpm auditfor detailsShould I run “npm fund” and “npm audit fix” before launching the second command ?
- electron-rebuild@1.10.1
-
@mattx38 no, those won’t help anything
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login