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.

    MagicMirror Boot loop...

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 2 Posters 1.2k Views 2 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.
    • thymonT Offline
      thymon
      last edited by

      Hello,

      Sorry for my english…
      But my MM reboot again and again.

      ~/MagicMirror/installers $ sh mm.sh 
      
      > magicmirror@2.12.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: |ibffi.so.6: cannot open shared object file: No such file or directory
      npm ERR! code ELIFECYCLE
      npm ERR! syscall spawn
      npm ERR! file sh
      npm ERR! errno ENOENT
      npm ERR! magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
      npm ERR! spawn ENOENT
      npm ERR! 
      npm ERR! Failed at the magicmirror@2.12.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/2020-07-15T20_28_46_768Z-debug.log
      
      

      /home/pi/.npm/_logs/2020-07-15T20_28_46_768Z-debug.log

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
      2 info using npm@6.14.5
      3 info using node@v10.20.1
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.12.0~prestart: magicmirror@2.12.0
      6 info lifecycle magicmirror@2.12.0~start: magicmirror@2.12.0
      7 verbose lifecycle magicmirror@2.12.0~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.12.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_module$
      9 verbose lifecycle magicmirror@2.12.0~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.12.0~start: Args: [ '-c',
      10 silly lifecycle   'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js' ]
      11 info lifecycle magicmirror@2.12.0~start: Failed to exec start script
      12 verbose stack Error: magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
      12 verbose stack spawn ENOENT
      12 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
      12 verbose stack     at ChildProcess.emit (events.js:198:13)
      12 verbose stack     at maybeClose (internal/child_process.js:982:16)
      12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
      13 verbose pkgid magicmirror@2.12.0
      14 verbose cwd /home/pi/MagicMirror
      15 verbose Linux 4.19.97-v7+
      16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
      17 verbose node v10.20.1
      18 verbose npm  v6.14.5
      19 error code ELIFECYCLE
      20 error syscall spawn
      21 error file sh
      22 error errno ENOENT
      23 error magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
      23 error spawn ENOENT
      24 error Failed at the magicmirror@2.12.0 start script.
      24 error This is probably not a problem with npm. There is likely additional logging output above.
      25 verbose exit [ 1, true ]
      

      Thanks a lot in advance

      I have try : npm rebuild / npm install

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @thymon
        last edited by sdetweil

        @thymon how long has mm been installed?

        this looks like an SD card corruption

        
        /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: ***|ibffi.so.6***: cannot open shared object file:
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • thymonT Offline
          thymon
          last edited by thymon

          Recently.
          Three months ago.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @thymon
            last edited by

            @thymon try this… make a backup of you MM config.js

            sudo apt-get update
            sudo apt-get install libffi-dev
            

            then try to restart mm

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • thymonT Offline
              thymon
              last edited by

              @sdetweil Hi !
              Thx for your interest.

              sudo apt-get update
              sudo apt-get install libffi-dev
              

              Nothing… same error

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @thymon
                last edited by sdetweil

                @thymon yeh, so I would start w a new sd card. never seen one recover

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • thymonT Offline
                  thymon
                  last edited by

                  @sdetweil Ok thx you for this information

                  1 Reply Last reply Reply Quote 0

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