• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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
    last edited by Aug 24, 2019, 7:28 PM

    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 Offline
      sdetweil
      last edited by Aug 24, 2019, 7:58 PM

      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 Aug 24, 2019, 8:21 PM Reply Quote 0
      • P Offline
        Parity @sdetweil
        last edited by Aug 24, 2019, 8:21 PM

        @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 Aug 24, 2019, 8:34 PM Reply Quote 0
        • S Offline
          sdetweil @Parity
          last edited by Aug 24, 2019, 8:34 PM

          @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 Aug 24, 2019, 8:37 PM Reply Quote 0
          • P Offline
            Parity @sdetweil
            last edited by Aug 24, 2019, 8:37 PM

            @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 Aug 24, 2019, 8:54 PM

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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                9/10
                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