• 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.

Failed at the magicmirror@2.9.0 start script

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 5 Posters 2.4k Views 6 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.
  • F Offline
    FLOW THE NOOB
    last edited by broberg Oct 24, 2019, 7:58 PM Oct 24, 2019, 7:53 PM

    Hi,
    I was trying to run the mirror but it crashes after 5 seconds. It started well and could see and hear the google assistant popping up but then the program closes itself. Any advice would be highly appreciated.

    Here you can see the log;

    pi@raspberrypi:~ $ cd MagicMirror
    pi@raspberrypi:~/MagicMirror $ npm start
    
    > magicmirror@2.9.0 start /home/pi/MagicMirror
    > sh run-start.sh
    
    Starting MagicMirror: v2.9.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
    Initializing new module helper ...
    Module helper loaded: MMM-Hotword
    Initializing new module helper ...
    Module helper loaded: MMM-AssistantMk2
    All module helpers loaded.
    Starting server on port 8080 ... 
    Server started ...
    Connecting socket for: updatenotification
    Connecting socket for: calendar
    Starting node helper for: calendar
    Connecting socket for: newsfeed
    Starting module: newsfeed
    Connecting socket for: MMM-Hotword
    [HOTWORD] MMM-Hotword starts
    Connecting socket for: MMM-AssistantMk2
    Sockets connected & modules started ...
    Launching application.
    Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
    Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
    [AMK2] Recipe is loaded: hide_and_show_all_modules.js
    [AMK2] Recipe is loaded: reboot.js
    [AMK2] Recipe is loaded: screen_onoff.js
    [AMK2] Recipe is loaded: shutdown.js
    [AMK2] Temporal storage directory is clearing.
    [HOTWORD] begins.
    [HOTWORD] Detector starts listening.
    [HOTWORD] stops.
    [HOTWORD] Final Result: { detected: false }
    [HOTWORD] begins.
    [HOTWORD] Detector starts listening.
    [AMK2] assistant ready
    /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! magicmirror@2.9.0 start: `sh run-start.sh`
    npm ERR! spawn ENOENT
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.9.0 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/pi/.npm/_logs/2019-10-24T19_30_25_417Z-debug.log
    
    S 1 Reply Last reply Oct 25, 2019, 2:39 AM Reply Quote 0
    • S Offline
      sdetweil @greg_r
      last edited by Oct 29, 2019, 10:57 PM

      @greg_r there apparently is a bad version of grpc… if you fall back to 1.23.? instead of 1.24 it will work.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @FLOW THE NOOB
        last edited by Oct 25, 2019, 2:39 AM

        @FLOW-THE-NOOB

        the error indicates you need to do an electron-rebuild

        cd ~/MagicMirror
        npm install electron-rebuild
        node_modules/.bin/electron-rebuild
        

        then restart MagicMirror

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • W Offline
          waseemghaly
          last edited by Oct 25, 2019, 7:46 AM

          @sdetweil said in Failed at the magicmirror@2.9.0 start script:

          node_modules/.bin/electron-rebuild

          Followed the instructions above and still getting the same error
          /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8
          npm ERR! code ELIFECYCLE
          npm ERR! syscall spawn
          npm ERR! file sh
          npm ERR! errno ENOENT
          npm ERR! magicmirror@2.9.0 start: sh run-start.sh
          npm ERR! spawn ENOENT
          npm ERR!
          npm ERR! Failed at the magicmirror@2.9.0 start script.
          npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

          npm ERR! A complete log of this run can be found in:
          npm ERR! /home/pi/.npm/_logs/2019-10-25T07_45_43_692Z-debug.log

          please advise. thank you

          1 Reply Last reply Reply Quote 0
          • M Offline
            mrdenmark
            last edited by Oct 25, 2019, 9:21 AM

            following,i’m having the same problem

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil
              last edited by Oct 25, 2019, 10:14 AM

              @mrdenmark @waseemghaly we will have to wait for @Sean to help… he is the module author

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • G Offline
                greg_r
                last edited by Oct 29, 2019, 10:12 PM

                I have exactly the same problem. When triggering MK2 Assistant with hotword or with mouse click, MM crashes with the following errors:

                [AMK2] Recipe is loaded: hide_and_show_all_modules.js
                [AMK2] Recipe is loaded: reboot.js
                [AMK2] Recipe is loaded: screen_onoff.js
                [AMK2] Recipe is loaded: shutdown.js
                [AMK2] Temporal storage directory is clearing.
                [HOTWORD] begins.
                [HOTWORD] Detector starts listening.
                [HOTWORD] stops.
                [HOTWORD] Final Result: { detected: false }
                [HOTWORD] begins.
                [HOTWORD] Detector starts listening.
                [AMK2] assistant ready
                /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js: symbol lookup error: /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node: undefined symbol: __atomic_store_8
                npm ERR! file sh
                npm ERR! code ELIFECYCLE
                npm ERR! errno ENOENT
                npm ERR! syscall spawn
                npm ERR! magicmirror@2.9.0 start: sh run-start.sh
                npm ERR! spawn ENOENT
                npm ERR!
                npm ERR! Failed at the magicmirror@2.9.0 start script.
                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                npm ERR! A complete log of this run can be found in:
                npm ERR! /home/pi/.npm/_logs/2019-10-29T22_08_07_413Z-debug.log

                S 1 Reply Last reply Oct 29, 2019, 10:57 PM Reply Quote 0
                • S Offline
                  sdetweil @greg_r
                  last edited by Oct 29, 2019, 10:57 PM

                  @greg_r there apparently is a bad version of grpc… if you fall back to 1.23.? instead of 1.24 it will work.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • G Offline
                    greg_r
                    last edited by Oct 31, 2019, 7:05 AM

                    Thank you Sam
                    found the solution here https://github.com/eouia/MMM-AssistantMk2/issues/231
                    MM has stopped crashing.
                    Greg

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