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.

    MM cant boot, wont boot!

    Scheduled Pinned Locked Moved Troubleshooting
    40 Posts 5 Posters 17.3k Views 5 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.
    • N Offline
      nicoz
      last edited by

      Hi,
      Complete noob here so please word your responses for 10 year olds :-)

      Recently my MagicMirror has been booting to a black sceen. A literal black screen, and the only way to remove it is to minimize the window.
      I think the problem started when i tried to update the program. I have tried since to update and think i have succeeded however now it seems not not boot at all. Even manually via SSH

      My pi just boots to the standard UI.

      Any Ideas???

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

        @nicoz if u updated, (git pull) did u npm install after?

        also, sometimes existing modules need to have their stuff refreshed after the base refreshes
        (all leading to black screen)

        I have a script for future updates that figures this all out…

        in the short term, make sure you did

        cd ~/MagicMirror
        npm install
        

        then check each module folder, and if there is an package.json file, also do the

        npm install 
        

        for each such folder
        then restart mm

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          One other thing you can do is run “npm run config:check” in the magicmirror root directory (~/MagicMirror) - it’ll run through and see if there’s anything that’s slightly out of wack to blank the mirror but not out of wack enough to throw an error. It’s saved me lots of headaches several times.

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

          C 1 Reply Last reply Reply Quote 1
          • N Offline
            nicoz
            last edited by

            npm install seemed to work in that i dont get a black screen anymore.

            npm start will start the mirror but for some reason it wont stay open. i come back to the mirror and i am back at the Rasbian Home screen?

            i also tried config:check but i dont really know what im looking at

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

              @nicoz when u do npm start is shows messages to the screen…

              can you do

              npm start > somefile 2>&1

              and when it ends, look at somefile

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • C Offline
                Cyric @BKeyport
                last edited by

                @BKeyport said in MM cant boot, wont boot!:

                One other thing you can do is run “npm run config:check” in the magicmirror root directory (~/MagicMirror) - it’ll run through and see if there’s anything that’s slightly out of wack to blank the mirror but not out of wack enough to throw an error. It’s saved me lots of headaches several times.

                I am having this same issue. I ran the update and everything was fine except my calendar and the 2 day weather thing, which looks like a known bug. I rebooted and am only getting a black screen with the mouse cursor. I did some digging and ran the npm install on the main magic mirror directory, and the directories for the modules i’m using, and it’s still not working. I tried to do the npm run config:check and it came back with an error saying " > magicmirror@2.11.0 config:check /home/pi/MagicMirror

                node tests/configs/check_config.js

                internal/modules/cjs/loader.js:638
                throw err;
                ^

                Error: Cannot find module ‘/home/pi/MagicMirror/tests/configs/check_config.js’
                at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
                at Function.Module._load (internal/modules/cjs/loader.js:562:25)
                at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
                at startup (internal/bootstrap/node.js:283:19)
                at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1
                npm ERR! magicmirror@2.11.0 config:check: node tests/configs/check_config.js
                npm ERR! Exit status 1
                npm ERR!
                npm ERR! Failed at the magicmirror@2.11.0 config:check 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-02T20_48_03_566Z-debug.log"

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

                  @Cyric u ran the update? how?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S C 2 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by

                    @sdetweil can u open the developers window, ctrl-shift-i, select the tab labeled console, and scroll up to see any errors

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Cyric @sdetweil
                      last edited by

                      @sdetweil I did git pull in the ~/MagicMirror parent directory. That gave me a few errors about changes, so i just did git pull --hard. Then I did npm install. For the other modules, i just did git pull and npm install.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        Cyric
                        last edited by

                        @sdetweil Im sorry, where do i do this at?

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

                          @Cyric on the mirror black screen

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            Cyric @sdetweil
                            last edited by

                            @sdetweil when I go into the developer console, it says " devtools was disconnected from the page. Once the page is reloaded, devtools will automatically reconnect."

                            If I x out of that and go to console, it’s empty.

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              Cyric
                              last edited by

                              More troubleshooting: I deleted the config.js and it loaded and said I needed to load a config.js file. I loaded the sample one, and it went back ot being a black screen.

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

                                @Cyric ok, where do u start mm? pm2 or nom start manually

                                if pm2 do

                                pm2 logs --lines=100
                                

                                if nom start, the console output is right there.

                                let us know what u find

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                C 1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Cyric @sdetweil
                                  last edited by

                                  @sdetweil Here is what it gave me when i tried npm start:
                                  "magicmirror@2.11.0 start /home/pi/MagicMirror

                                  DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                                  [2020-07-02 21:33:26.029] [LOG] Starting MagicMirror: v2.11.0
                                  [2020-07-02 21:33:26.054] [LOG] Loading config …
                                  [2020-07-02 21:33:26.071] [LOG] Loading module helpers …
                                  [2020-07-02 21:33:26.079] [LOG] No helper found for module: alert.
                                  [2020-07-02 21:33:26.249] [LOG] Initializing new module helper …
                                  [2020-07-02 21:33:26.251] [LOG] Module helper loaded: updatenotification
                                  [2020-07-02 21:33:26.253] [LOG] No helper found for module: clock.
                                  [2020-07-02 21:33:26.279] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘ical’
                                  Require stack:

                                  • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                                  • /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                                  • /home/pi/MagicMirror/js/app.js
                                  • /home/pi/MagicMirror/js/electron.js
                                  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

                                  [2020-07-02 21:33:26.282] [LOG] Loading module helpers …
                                  [2020-07-02 21:33:26.284] [LOG] No helper found for module: alert.
                                  [2020-07-02 21:33:26.286] [LOG] Initializing new module helper …
                                  [2020-07-02 21:33:26.287] [LOG] Module helper loaded: updatenotification
                                  [2020-07-02 21:33:26.289] [LOG] No helper found for module: clock.
                                  [2020-07-02 21:33:26.300] [ERROR] App threw an error during load
                                  [2020-07-02 21:33:26.303] [ERROR] Error: Cannot find module ‘ical’
                                  Require stack:

                                  • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                                  • /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                                  • /home/pi/MagicMirror/js/app.js
                                  • /home/pi/MagicMirror/js/electron.js
                                  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                  • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                    at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                    at Module.require (internal/modules/cjs/loader.js:685:19)
                                    at require (internal/modules/cjs/helpers.js:16:16)
                                    at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                                    at Module._compile (internal/modules/cjs/loader.js:786:30)
                                    at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
                                    at Module.load (internal/modules/cjs/loader.js:645:32)
                                    [2020-07-02 21:33:26.308] [ERROR] Whoops! There was an uncaught exception…
                                    [2020-07-02 21:33:26.310] [ERROR] Error: Cannot find module ‘ical’
                                    Require stack:
                                  • /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                                  • /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                                  • /home/pi/MagicMirror/js/app.js
                                  • /home/pi/MagicMirror/js/electron.js
                                  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                  • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                    at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                    at Module.require (internal/modules/cjs/loader.js:685:19)
                                    at require (internal/modules/cjs/helpers.js:16:16)
                                    at Object. (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                                    at Module._compile (internal/modules/cjs/loader.js:786:30)
                                    at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
                                    at Module.load (internal/modules/cjs/loader.js:645:32) {
                                    code: ‘MODULE_NOT_FOUND’,
                                    requireStack: [
                                    ‘/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js’,
                                    ‘/home/pi/MagicMirror/modules/default/calendar/node_helper.js’,
                                    ‘/home/pi/MagicMirror/js/app.js’,
                                    ‘/home/pi/MagicMirror/js/electron.js’,
                                    ‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
                                    undefined
                                    ]
                                    }
                                    [2020-07-02 21:33:26.337] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                    [2020-07-02 21:33:26.338] [ERROR] 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 Offline
                                    sdetweil @Cyric
                                    last edited by

                                    @Cyric >Cannot find module ‘ical’

                                    hm…
                                    the calendar reader module is not found

                                    can you do

                                    cd ~/MagicMirror
                                    rm package-lock.json
                                    rm -rf node_ modules
                                    npm install
                                    

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      Cyric
                                      last edited by

                                      I ran that, then did npm start again. It told me: "> magicmirror@2.11.0 start /home/pi/MagicMirror

                                      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                                      [2020-07-03 07:35:17.160] [ERROR] App threw an error during load
                                      [2020-07-03 07:35:17.189] [ERROR] Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules.js’
                                      Require stack:

                                      • /home/pi/MagicMirror/js/app.js
                                      • /home/pi/MagicMirror/js/electron.js
                                      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                      • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                        at Module.require (internal/modules/cjs/loader.js:685:19)
                                        at require (internal/modules/cjs/helpers.js:16:16)
                                        at Object. (/home/pi/MagicMirror/js/app.js:12:22)
                                        at Module._compile (internal/modules/cjs/loader.js:786:30)
                                        at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
                                        at Module.load (internal/modules/cjs/loader.js:645:32)
                                        at Function.Module._load (internal/modules/cjs/loader.js:560:12)
                                        A JavaScript error occurred in the main process
                                        Uncaught Exception:
                                        Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules.js’
                                        Require stack:
                                      • /home/pi/MagicMirror/js/app.js
                                      • /home/pi/MagicMirror/js/electron.js
                                      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                      • at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                        at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                        at Module.require (internal/modules/cjs/loader.js:685:19)
                                        at require (internal/modules/cjs/helpers.js:16:16)
                                        at Object. (/home/pi/MagicMirror/js/app.js:12:22)
                                        at Module._compile (internal/modules/cjs/loader.js:786:30)
                                        at Object.Module._extensions…js (internal/modules/cjs/loader.js:798:10)
                                        at Module.load (internal/modules/cjs/loader.js:645:32)
                                        at Function.Module._load (internal/modules/cjs/loader.js:560:12)"

                                      Now it won’t load the black screen. I have not rebooted yet.

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

                                        @Cyric weird
                                        do

                                        cd ~/MagicMirror
                                        git checkout modules/default/defaultmodules.js
                                        

                                        then try npm start again

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        C 2 Replies Last reply Reply Quote 0
                                        • C Offline
                                          Cyric @sdetweil
                                          last edited by

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            Cyric @sdetweil
                                            last edited by

                                            @sdetweil ok, progress. It started magic mirror with a black screen and no mouse. Before it was a black screen with the mouse, and it said electron instead of magic mirror 2. I rebooted and tried to reload my config.js, but it didn’t help.

                                            S 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
                                            • 2
                                            • 1 / 2
                                            • 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