Read the statement by Michael Teeuw here.
Magic Mirror Black Screen after "pm2 start mm"
-
Hey everyone! First time posting, so please be gentle…
Have had my MM and modules running for 3+ months at this point - no issues. I had this Pi running in a case for this entire time, however, decided to remove it and put the case to use for another Pi while I have another on order (the other needed the cooling more than this one).
After removing the case and starting back up - no issues. Raspberry Pi loaded to desktop no issues. The magicmirror service is set to start after x amount of seconds (forgot off-hand) but first thing I noticed is once the module loaded, all I get is a black screen. Returned to desktop using “pm2 stop mm”, which works successfully. If I run “pm2 start mm”, the service begins to run, but enters a black screen again. This was working 10 mins ago before I shut down the Pi for case removal.
I’ve ran the following commands, thinking updating my Pi would help (it’s been a while) but with no avail:
-sudo apt-get update
-sudo apt upgrade
-sudo apt installRaspian Stretch 9.9
Please let me know what information I can provide to help troubleshoot! Any help is appreciated!
-
@Parity run
pm2 logs -
pi@raspberrypi:~ $ pm2 logs [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option) /home/pi/.pm2/pm2.log last 15 lines: PM2 | 2019-08-24T14:27:57: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T14:27:57: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T14:27:57: PM2 log: App [mm:0] online PM2 | 2019-08-24T14:28:06: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T14:28:06: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T14:28:06: PM2 log: App [mm:0] online PM2 | 2019-08-24T14:28:15: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T14:28:15: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T14:28:15: PM2 log: App [mm:0] online PM2 | 2019-08-24T14:28:56: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T14:28:56: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T14:28:56: PM2 log: App [mm:0] online PM2 | 2019-08-24T14:29:34: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T14:29:34: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T14:29:34: PM2 log: App [mm:0] online /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) code: 'MODULE_NOT_FOUND' } 0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment. /home/pi/.pm2/logs/mm-out.log last 15 lines: 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | Whoops! There was an uncaught exception... 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Launching application. 0|mm | Shutting down server... 0|mm | Stopping module helper: updatenotification 0|mm | Stopping module helper: calendar 0|mm | Stopping module helper: updatenotification 0|mm | Stopping module helper: calendar 0|mm | 0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | PM2 | Stopping app:mm id:0 PM2 | App [mm:0] exited with code [0] via signal [SIGINT] PM2 | pid=4352 msg=process killed PM2 | App [mm:0] starting in -fork mode- PM2 | App [mm:0] online 0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | Starting MagicMirror: v2.8.0 0|mm | Loading config ... 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | 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 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | App threw an error during load 0|mm | Error: Failed to load gRPC binary module because it was not installed for the current system 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) 0|mm | Whoops! There was an uncaught exception... 0|mm | { Error: Failed to load gRPC binary module because it was not installed for the current system 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) code: 'MODULE_NOT_FOUND' } 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Launching application. 0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment. PM2 | Stopping app:mm id:0 PM2 | pid=4410 msg=failed to kill - retrying in 100ms PM2 | App [mm:0] exited with code [0] via signal [SIGINT] PM2 | pid=4410 msg=process killedOne more piece of information:
I took a backup of my config.js file (/home/pi/MagicMirror/config) and then removed it. I then took the sample “config.sample.js” and used that as my config.js – this worked. Loaded fine. Then I removed this same config, made my backup config my actual config.js, and that worked ONE time. After I quit and then tried reloading, I got a black screen again. Is this some sort of RAM issue?
-
I apologize for the above log.
Below are the Pm2 logs for starting both the “config.sample.js” (which works) and the “config.js” (which does not work)
SAMPLE CONFIG – WORKS
PM2 | App [mm:0] starting in -fork mode- PM2 | App [mm:0] online 0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | Starting MagicMirror: v2.8.0 0|mm | Loading config ... 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | No helper found for module: currentweather. 0|mm | No helper found for module: weatherforecast. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: newsfeed 0|mm | All module helpers loaded. 0|mm | Starting server on port 8080 ... 0|mm | Server started ... 0|mm | Connecting socket for: updatenotification 0|mm | Connecting socket for: calendar 0|mm | Starting node helper for: calendar 0|mm | Connecting socket for: newsfeed 0|mm | Starting module: newsfeed 0|mm | Sockets connected & modules started ... 0|mm | Launching application. 0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment. 0|mm | Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 0|mm | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 PM2 | Stopping app:mm id:0 0|mm | Shutting down server... 0|mm | Stopping module helper: updatenotification 0|mm | Stopping module helper: calendar 0|mm | Stopping module helper: newsfeed PM2 | pid=5011 msg=failed to kill - retrying in 100ms PM2 | pid=5011 msg=failed to kill - retrying in 100ms PM2 | App [mm:0] exited with code [0] via signal [SIGINT] PM2 | pid=5011 msg=process killedNORMAL CONFIG.JS (does not work)
PM2 | App [mm:0] starting in -fork mode- PM2 | App [mm:0] online 0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | Starting MagicMirror: v2.8.0 0|mm | Loading config ... 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | 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 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | App threw an error during load 0|mm | Error: Failed to load gRPC binary module because it was not installed for the current system 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) 0|mm | Whoops! There was an uncaught exception... 0|mm | { Error: Failed to load gRPC binary module because it was not installed for the current system 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [electron-v2.0-linux-arm-glibc, node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) code: 'MODULE_NOT_FOUND' } 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Launching application. 0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment. PM2 | Stopping app:mm id:0 PM2 | pid=5206 msg=failed to kill - retrying in 100ms PM2 | App [mm:0] exited with code [0] via signal [SIGINT] PM2 | pid=5206 msg=process killedThanks!
-
So I’m assuming from my own readings, it would appear that the Pi is expecting Electron-v3.1-linux-arm-glibc but that is not found. I tried rebuilding my /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules directory but ended up accidentally deleting it.
So now the same applies, it’s expecting Electron-v3.1-linux-arm-glibc, however it finds “[node-v64-linux-arm-glibc]”. I tried npm rebuild, but no avail. I’m assuming all I need to do is rebuild that node_modules directory and get it to Electron-v3.1-linx-arm-glibc?
Here is the below “pm2 logs” with the latest error:
pi@raspberrypi:~ $ pm2 logs [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option) /home/pi/.pm2/pm2.log last 15 lines: PM2 | 2019-08-24T15:11:15: PM2 log: pid=11133 msg=failed to kill - retrying in 100ms PM2 | 2019-08-24T15:11:15: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T15:11:15: PM2 log: pid=11133 msg=process killed PM2 | 2019-08-24T15:12:36: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T15:12:36: PM2 log: App [mm:0] online PM2 | 2019-08-24T15:16:18: PM2 log: Stopping app:mm id:0 PM2 | 2019-08-24T15:16:18: PM2 log: pid=11236 msg=failed to kill - retrying in 100ms PM2 | 2019-08-24T15:16:19: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T15:16:19: PM2 log: pid=11236 msg=process killed PM2 | 2019-08-24T15:16:27: PM2 log: App [mm:0] starting in -fork mode- PM2 | 2019-08-24T15:16:27: PM2 log: App [mm:0] online PM2 | 2019-08-24T15:23:43: PM2 log: Stopping app:mm id:0 PM2 | 2019-08-24T15:23:43: PM2 log: pid=11476 msg=failed to kill - retrying in 100ms PM2 | 2019-08-24T15:23:44: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT] PM2 | 2019-08-24T15:23:44: PM2 log: pid=11476 msg=process killed /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) code: 'MODULE_NOT_FOUND' } 0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment. /home/pi/.pm2/logs/mm-out.log last 15 lines: 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | Whoops! There was an uncaught exception... 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Launching application. 0|mm | Shutting down server... 0|mm | Stopping module helper: updatenotification 0|mm | Stopping module helper: calendar 0|mm | Stopping module helper: updatenotification 0|mm | Stopping module helper: calendar PM2 | App [mm:0] starting in -fork mode- PM2 | App [mm:0] online 0|mm | > magicmirror@2.8.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | Starting MagicMirror: v2.8.0 0|mm | Loading config ... 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | 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 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | Loading module helpers ... 0|mm | No helper found for module: alert. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: updatenotification 0|mm | No helper found for module: clock. 0|mm | Initializing new module helper ... 0|mm | Module helper loaded: calendar 0|mm | No helper found for module: compliments. 0|mm | App threw an error during load 0|mm | Error: Failed to load gRPC binary module because it was not installed for the current system 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) 0|mm | Whoops! There was an uncaught exception... 0|mm | { Error: Failed to load gRPC binary module because it was not installed for the current system 0|mm | Expected directory: electron-v3.1-linux-arm-glibc 0|mm | Found: [node-v64-linux-arm-glibc] 0|mm | This problem can often be fixed by running "npm rebuild" on the current system 0|mm | Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.1-linux-arm-glibc/grpc_node.node' 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3) 0|mm | at Module._compile (internal/modules/cjs/loader.js:711:30) 0|mm | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 0|mm | at Module.load (internal/modules/cjs/loader.js:620:32) 0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12) 0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3) 0|mm | at Module.require (internal/modules/cjs/loader.js:658:17) 0|mm | at require (internal/modules/cjs/helpers.js:20:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) code: 'MODULE_NOT_FOUND' } 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues 0|mm | Launching application. 0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment. PM2 | Stopping app:mm id:0 PM2 | pid=11675 msg=failed to kill - retrying in 100ms PM2 | App [mm:0] exited with code [0] via signal [SIGINT] PM2 | pid=11675 msg=process killedThanks again!
-
See the instructions in the MMM-AssistantMk2 module readme.md on how to fix the gprc issue
-
I’m assuming this is what you’re referring to?
"grpc Electron-rebuild or Raspbian Buster issues. (on Raspbian Buster) Downgrade your gcc to gcc7. (default of Buster would be gcc8)
sudo apt-get install gcc-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 10
sudo update-alternatives --config gccThen select gcc-7
Then try electron-rebuild again."
Just for confirmation - would this rebuild my node_modules directory? The most recent log I posted shows I don’t even have any electron version. I will attempt this later tonight.
As a side question - if I delete my Mmm-assistantmk2 module and rebuild it from scratch, would that affect the configurations of my mirror at all? Correct me if I’m wrong, but couldn’t I just reinstall this module since the config.js just references this module?
-
@Parity no, but u will end up at the same recovery steps
-
@sdetweil okay thanks. So just try what I posted above and it will automatically rebuild electron in the process? If not, just do Mmm-assistantmk2 from scratch?
-
Had the same problem, change directory to MagicMirror and execute npm start. Hope it help
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