MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Magic Mirror Black Screen after "pm2 start mm"

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    10 Posts 3 Posters 1.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      Parity @sdetweil
      last edited by

      @sdetweil

      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 killed
      

      One 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?

      1 Reply Last reply Reply Quote 0
      • P Offline
        Parity
        last edited by

        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 killed
        

        NORMAL 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 killed
        

        Thanks!

        1 Reply Last reply Reply Quote 0
        • P Offline
          Parity
          last edited by

          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 killed
          

          Thanks again!

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil
            last edited by

            See the instructions in the MMM-AssistantMk2 module readme.md on how to fix the gprc issue

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              Parity @sdetweil
              last edited by

              @sdetweil

              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 gcc

              Then 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?

              S 1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil @Parity
                last edited by

                @Parity no, but u will end up at the same recovery steps

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  Parity @sdetweil
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    smassy
                    last edited by

                    Had the same problem, change directory to MagicMirror and execute npm start. Hope it help

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy