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 flashing black screen after a power failure

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 921 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.
    • L Offline
      lusiess01
      last edited by

      After an power failure my RaspberryPi have been starting up but MagicMirror only is a flashing black screen. I try pm2 restart MagicMirror but nothing changed.
      Can someone help me pleas?! I post the log below
      Thanks!!

      pm2 log MagicMirror
      
      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir |     at Module.require (internal/modules/cjs/loader.js:685:19)
      0|MagicMir |     at require (internal/modules/cjs/helpers.js:16:16)
      0|MagicMir |     at /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/exports/electron.js:11:27
      0|MagicMir |     at Object.app (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/api/exports/electron.js:12:29)
      0|MagicMir | [2020-06-04 22:50:21.405] [ERROR]  TypeError: Cannot redefine property: applicationMenu
      0|MagicMir |     at Function.defineProperty (<anonymous>)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/app.js:37:8)
      0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:786:30)
      0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
      0|MagicMir |     at Module.load (internal/modules/cjs/loader.js:645:32)
      0|MagicMir |     at Function.Module._load (internal/modules/cjs/loader.js:560:12)
      0|MagicMir |     at Module.require (internal/modules/cjs/loader.js:685:19)
      0|MagicMir |     at require (internal/modules/cjs/helpers.js:16:16)
      0|MagicMir |     at /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/exports/electron.js:11:27
      0|MagicMir |     at Object.app (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/api/exports/electron.js:12:29)
      
      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | [2020-06-04 22:50:20.341] [LOG]    Whoops! There was an uncaught exception...
      0|MagicMir | [2020-06-04 22:50:20.345] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-06-04 22:50:20.346] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [2020-06-04 22:50:20.588] [LOG]    Whoops! There was an uncaught exception...
      0|MagicMir | [2020-06-04 22:50:20.604] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-06-04 22:50:20.606] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [2020-06-04 22:50:20.847] [LOG]    Whoops! There was an uncaught exception...
      0|MagicMir | [2020-06-04 22:50:20.855] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-06-04 22:50:20.858] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [2020-06-04 22:50:21.128] [LOG]    Whoops! There was an uncaught exception...
      0|MagicMir | [2020-06-04 22:50:21.146] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-06-04 22:50:21.148] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [2020-06-04 22:50:21.399] [LOG]    Whoops! There was an uncaught exception...
      0|MagicMir | [2020-06-04 22:50:21.410] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-06-04 22:50:21.413] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @lusiess01
        last edited by

        @lusiess01 i am sad to say this looks like an SD card problem…

        lets see if we can work around it. reinstall the exact same version

        grep version ~/MagicMirror/node_modules/electron/package.json
        mv   ~/MagicMirror/node_modules/electron  ~/MagicMirror/node_modules/electron.save
        npm install electron@??? --only=prod  # where ??? is the version number from the 1st statement
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        L 1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer
          last edited by

          I agree with Sam here - I’d bet the SD card got bit from the power failure.

          The "E" in "Javascript" stands for "Easy"

          1 Reply Last reply Reply Quote 0
          • L Offline
            lusiess01 @sdetweil
            last edited by

            @sdetweil
            Thanks i tryed your way but i get this…

            pi@raspberrypi:~ $ npm install electron@6.1.7 --only=prod
            npm ERR! code EAI_AGAIN
            npm ERR! errno EAI_AGAIN
            npm ERR! request to https://registry.npmjs.org/electron failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org registry.npmjs.org:443
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/pi/.npm/_logs/2020-06-05T06_21_53_740Z-debug.log
            
            
            1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer
              last edited by

              um. That’s a DNS error. Basically “Try again later” – Might wanna try a new OS install on a new card, and if that don’t work, you’ve got some slightly burned hardware.

              The "E" in "Javascript" stands for "Easy"

              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