MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Can't start MM as kiosk only server

    Troubleshooting
    4
    13
    1600
    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.
    • W
      Warmyster last edited by

      Hi all, I’m new here so please help me out.
      I’m building my first mirror. Got a new Pi 3B+ and installed everything from scratch. sound and usb mic is working. I’ve added MMM-AssistantMk2 & Hotword with basic default settings. The problem is it will only run in serveronly mode and it works when I use my browser.

      But when i use npm start I get the following error:
      pi@raspi:~/MagicMirror $ npm start

      magicmirror@2.6.0 start /home/pi/MagicMirror
      sh run-start.sh

      Starting MagicMirror: v2.6.0
      Loading config …
      Loading module helpers …
      No helper found for module: alert.
      Initializing new module helper …
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper …
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper …
      Module helper loaded: newsfeed
      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-v2.0-linux-arm-glibc
      Found: [electron-v4.0-linux-arm-glibc, node-v67-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-v2.0-linux-arm-glibc/grpc_node.node’
      Loading module helpers …
      No helper found for module: alert.
      Initializing new module helper …
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper …
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper …
      Module helper loaded: newsfeed
      App threw an error during load
      Error: Failed to load gRPC binary module because it was not installed for the current system
      Expected directory: electron-v2.0-linux-arm-glibc
      Found: [electron-v4.0-linux-arm-glibc, node-v67-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-v2.0-linux-arm-glibc/grpc_node.node’
      at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17)
      at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3)
      at Module._compile (module.js:642:30)
      at Object.Module._extensions…js (module.js:653:10)
      at Module.load (module.js:561:32)
      at tryModuleLoad (module.js:504:12)
      at Function.Module._load (module.js:496:3)
      at Module.require (module.js:586:17)
      at require (internal/module.js:11:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12)
      Whoops! There was an uncaught exception…
      { Error: Failed to load gRPC binary module because it was not installed for the current system
      Expected directory: electron-v2.0-linux-arm-glibc
      Found: [electron-v4.0-linux-arm-glibc, node-v67-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-v2.0-linux-arm-glibc/grpc_node.node’
      at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:53:17)
      at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js:63:3)
      at Module._compile (module.js:642:30)
      at Object.Module._extensions…js (module.js:653:10)
      at Module.load (module.js:561:32)
      at tryModuleLoad (module.js:504:12)
      at Function.Module._load (module.js:496:3)
      at Module.require (module.js:586:17)
      at require (internal/module.js:11:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js:144:12) code: ‘MODULE_NOT_FOUND’ }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      Launching application.

      1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor last edited by

        For starters, please use the markdown features when posting code & logs.
        Secondly, did you take the error message’s advice and run npm rebuild in the MMM-AssistantMk2 folder? Did it help?

        1 Reply Last reply Reply Quote 0
        • W
          Warmyster last edited by

          Hi thanks.
          I’ve done npm rebuild and audit fix same error come up. The application launch but only a black screen and I have to Kill the process.

          lavolp3 1 Reply Last reply Reply Quote 0
          • lavolp3
            lavolp3 Module Developer last edited by

            @warmyster said in Can't start MM as kiosk only server:

            App threw an error during load
            Error: Failed to load gRPC binary module because it was not installed for the current system
            Expected directory: electron-v2.0-linux-arm-glibc
            Found: [electron-v4.0-linux-arm-glibc, node-v67-linux-arm-glibc]

            It seems that some module inside MMM-AssistantMk2 is compiled against electron v2.0. If above suggestion does not work I would recommend installing the whole module again. Delete the folder, do a git clone, git pull and npm install again.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            W 1 Reply Last reply Reply Quote 0
            • lavolp3
              lavolp3 Module Developer @Warmyster last edited by

              @warmyster Or try disabling MMM-AssistantMk2 and run MM again.

              How to troubleshoot modules
              MMM-soccer v2, MMM-AVStock

              W 1 Reply Last reply Reply Quote 0
              • W
                Warmyster @lavolp3 last edited by

                @lavolp3 It works when I don’t include the module. Ill try re installing it again

                1 Reply Last reply Reply Quote 0
                • W
                  Warmyster @lavolp3 last edited by Warmyster

                  @lavolp3
                  I’ve done a reinstall (deleted the directory and did git clone) and this is what I got after install but still getting the same error

                  pi@raspi:~/MagicMirror/modules/MMM-AssistantMk2 $ npm install

                  grpc@1.18.0 install /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc
                  node-pre-gyp install --fallback-to-build --library=static_library

                  node-pre-gyp WARN Using request for node-pre-gyp https download
                  [grpc] Success: “/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/node-v67-linux-arm-glibc/grpc_node.node” is installed via remote

                  protobufjs@6.8.8 postinstall /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/protobufjs
                  node scripts/postinstall

                  npm notice created a lockfile as package-lock.json. You should commit this file.
                  added 273 packages from 186 contributors and audited 635 packages in 64.238s
                  found 0 vulnerabilities

                  1 Reply Last reply Reply Quote 0
                  • lavolp3
                    lavolp3 Module Developer last edited by

                    well… looks good doesn’t it? Should work now.

                    How to troubleshoot modules
                    MMM-soccer v2, MMM-AVStock

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      Warmyster @lavolp3 last edited by

                      @lavolp3
                      NO its giving the same error

                      lavolp3 1 Reply Last reply Reply Quote 0
                      • lavolp3
                        lavolp3 Module Developer @Warmyster last edited by

                        @warmyster if it is still about this module, maybe @Sean can help since it’s his module

                        How to troubleshoot modules
                        MMM-soccer v2, MMM-AVStock

                        W 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy