MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Magic Mirror flashing black screen after a power failure



  • 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 ()
    0|MagicMir |     at Object. (/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
    
    


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

  • Module Developer

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



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

  • Module Developer

    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.


Log in to reply