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 not starting

    Scheduled Pinned Locked Moved Solved Troubleshooting
    19 Posts 3 Posters 4.5k 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.
    • Z Offline
      zolabus
      last edited by

      Hi all,
      it’s some days that my magic mirror seems not to start.
      The OS starts correctly but when mm should start I can see only a white flash and nothing else…
      I can access via ssh.
      Any idea?
      Thanks

      S 1 Reply Last reply Reply Quote 0
      • Z Offline
        zolabus @zolabus
        last edited by

        @zolabus Hi all after all I found a couple of modules causing the issue…
        I started from a standard config file and added the modules one by one.
        Now I have my magic mirror back
        Thanks

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @zolabus
          last edited by

          @zolabus need to see the messages from start

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          Z 1 Reply Last reply Reply Quote 0
          • Z Offline
            zolabus @sdetweil
            last edited by

            @sdetweil I do not have any messages…only a white flash then blank monitor

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @zolabus
              last edited by sdetweil

              @zolabus on the pi you issue

              npm start
              or pm2 start MagicMirror

              that is where u look for messages,
              not on the mirror screen

              you should see stuff like

              ~/MagicMirror$ npm start 
              
              > magicmirror@2.17.1 start /home/pi/MagicMirror
              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
              
              [30.12.2021 17:00.28.545] [LOG]   Starting MagicMirror: v2.17.1
              [30.12.2021 17:00.28.546] [LOG]   Loading config ...
              [30.12.2021 17:00.28.547] [LOG]   Loading module helpers ...
              [30.12.2021 17:00.28.547] [LOG]   trying to load module=alert
              [30.12.2021 17:00.28.547] [LOG]   No helper found for module: alert.
              [30.12.2021 17:00.28.548] [LOG]   trying to load module=clock
              [30.12.2021 17:00.28.548] [LOG]   No helper found for module: clock.
              [30.12.2021 17:00.28.548] [LOG]   trying to load module=calendar
              [30.12.2021 17:00.28.574] [LOG]   Initializing new module helper ...
              [30.12.2021 17:00.28.574] [LOG]   Module helper loaded: calendar
              [30.12.2021 17:00.28.574] [LOG]   trying to load module=compliments
              [30.12.2021 17:00.28.574] [LOG]   No helper found for module: compliments.
              [30.12.2021 17:00.28.574] [LOG]   trying to load module=MMM-Config
              [30.12.2021 17:00.28.625] [LOG]   Initializing new module helper ...
              [30.12.2021 17:00.28.625] [LOG]   Module helper loaded: MMM-Config
              [30.12.2021 17:00.28.626] [LOG]   trying to load module=MMM-WunderGround-PWS-Observations
              [30.12.2021 17:00.28.672] [LOG]   Initializing new module helper ...
              [30.12.2021 17:00.28.672] [LOG]   Module helper loaded: MMM-WunderGround-PWS-Observations
              [30.12.2021 17:00.28.672] [LOG]   trying to load module=MMM-Carousel
              [30.12.2021 17:00.28.672] [LOG]   No helper found for module: MMM-Carousel.
              [30.12.2021 17:00.28.672] [LOG]   trying to load module=MMM-TimeTreeEvent
              [30.12.2021 17:00.28.723] [LOG]   Initializing new module helper ...
              [30.12.2021 17:00.28.723] [LOG]   Module helper loaded: MMM-TimeTreeEvent
              [30.12.2021 17:00.28.723] [LOG]   trying to load module=MMM-SleepWake
              [30.12.2021 17:00.28.723] [LOG]   handler helper in init
              [30.12.2021 17:00.28.723] [LOG]   Module helper loaded: MMM-SleepWake
              [30.12.2021 17:00.28.724] [LOG]   All module helpers loaded.
              [30.12.2021 17:00.28.735] [LOG]   Starting server on port 8090 ... 
              [30.12.2021 17:00.28.736] [WARN]  You're using a full whitelist configuration to allow for all IPs
              [30.12.2021 17:00.28.738] [LOG]   Server started ...
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                zolabus @sdetweil
                last edited by

                @sdetweil pi@magicmirror:~/MagicMirror $ npm start

                magicmirror@2.17.1 start /home/pi/MagicMirror
                DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                Fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown element “blank”
                [01.01.2022 11:39.38.805] [LOG] Starting MagicMirror: v2.17.1
                [01.01.2022 11:39.38.821] [LOG] Loading config …
                [01.01.2022 11:39.38.846] [LOG] Loading module helpers …
                [01.01.2022 11:39.38.853] [LOG] No helper found for module: alert.
                [01.01.2022 11:39.38.927] [LOG] Initializing new module helper …
                [01.01.2022 11:39.38.932] [LOG] Module helper loaded: updatenotification
                [01.01.2022 11:39.38.937] [LOG] No helper found for module: clock.
                [01.01.2022 11:39.40.614] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'digest-fetch ’
                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/mai n.js

                [01.01.2022 11:39.40.623] [LOG] Loading module helpers …
                [01.01.2022 11:39.40.631] [LOG] No helper found for module: alert.
                [01.01.2022 11:39.40.637] [LOG] Initializing new module helper …
                [01.01.2022 11:39.40.642] [LOG] Module helper loaded: updatenotification
                [01.01.2022 11:39.40.646] [LOG] No helper found for module: clock.
                [01.01.2022 11:39.40.658] [ERROR] App threw an error during load
                [01.01.2022 11:39.40.687] [ERROR] Error: Cannot find module ‘digest-fetch’
                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/mai n.js
                • at Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
                  at Function…/lib/common/reset-search-paths.ts.Module._resolveFilename (elec tron/js2c/browser_init.js:7718:16)
                  at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/modul e-alias/index.js:49:29)
                  at Module._load (internal/modules/cjs/loader.js:691:27)
                  at Function.Module._load (electron/js2c/asar.js:748:26)
                  at Module.require (internal/modules/cjs/loader.js:853:19)
                  at require (internal/modules/cjs/helpers.js:74:18)
                  at Object. (/home/pi/MagicMirror/modules/default/calendar/calenda rfetcher.js:12:16)
                  at Module._compile (internal/modules/cjs/loader.js:968:30)
                  at Object.Module._extensions…js (internal/modules/cjs/loader.js:986:10)
                  [01.01.2022 11:39.40.706] [ERROR] Whoops! There was an uncaught exception…
                  [01.01.2022 11:39.40.728] [ERROR] Error: Cannot find module ‘digest-fetch’
                  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/mai n.js
                • at Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
                  at Function…/lib/common/reset-search-paths.ts.Module._resolveFilename (elec tron/js2c/browser_init.js:7718:16)
                  at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/modul e-alias/index.js:49:29)
                  at Module._load (internal/modules/cjs/loader.js:691:27)
                  at Function.Module._load (electron/js2c/asar.js:748:26)
                  at Module.require (internal/modules/cjs/loader.js:853:19)
                  at require (internal/modules/cjs/helpers.js:74:18)
                  at Object. (/home/pi/MagicMirror/modules/default/calendar/calenda rfetcher.js:12:16)
                  at Module._compile (internal/modules/cjs/loader.js:968:30)
                  at Object.Module._extensions…js (internal/modules/cjs/loader.js:986:10) {
                  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
                  ]
                  }
                  [01.01.2022 11:39.40.754] [ERROR] MagicMirror will not quit, but it might be a g ood idea to check why this happened. Maybe no internet connection?
                  [01.01.2022 11:39.40.761] [ERROR] If you think this really is an issue, please o pen an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                  [01.01.2022 11:39.41.576] [LOG] Launching application.
                  [01.01.2022 11:39.41.658] [WARN] (electron) The default value of app.allowRende rerProcessReuse is deprecated, it is currently “false”. It will change to be “t rue” in Electron 9. For more information please check https://github.com/electr on/electron/issues/18397

                Thanks

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @zolabus
                  last edited by sdetweil

                  @zolabus edited

                  see the comments below…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  karsten13K 1 Reply Last reply Reply Quote 0
                  • karsten13K Offline
                    karsten13 @sdetweil
                    last edited by

                    @sdetweil

                    in this case I don’t think it is the problem you mentioned with the link.

                    digest-fetch is a core dependency, so he may forgot to run npm install in the mm folder. Or if it’s an old installation which is suddenly not working anymore this is may caused by a corrupt SD Card.

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @karsten13
                      last edited by

                      @karsten13 ok, got it… I agree…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      Z 1 Reply Last reply Reply Quote 0
                      • Z Offline
                        zolabus @sdetweil
                        last edited by

                        @sdetweil run npm install with this output

                        npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!
                        npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
                        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.3.2 (node_modules/jest-haste-map/node_modules/fsevents):
                        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})

                        npm ERR! path /home/pi/MagicMirror/node_modules/ical
                        npm ERR! code EISGIT
                        npm ERR! git /home/pi/MagicMirror/node_modules/ical: Appears to be a git repo or submodule.
                        npm ERR! git /home/pi/MagicMirror/node_modules/ical
                        npm ERR! git Refusing to remove it. Update manually,
                        npm ERR! git or move it out of the way first.

                        npm ERR! A complete log of this run can be found in:
                        npm ERR! /home/pi/.npm/_logs/2022-01-01T16_16_01_042Z-debug.log

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @zolabus
                          last edited by

                          @zolabus we don’t use ical anymore. weird, do

                          cd ~/MagicMirror
                          rm -rf node_modules
                          npm install
                          

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          Z 1 Reply Last reply Reply Quote 0
                          • Z Offline
                            zolabus @sdetweil
                            last edited by

                            @sdetweil same problem…

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @zolabus
                              last edited by

                              @zolabus

                               /home/pi/MagicMirror/node_modules/ical
                              

                              this folder does not exist in the latest release

                              and if u deleted the node_modules folder (per the prior instructions) it should not exist on your system either

                              do

                              grep version ~/MagicMirror/package.json
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              karsten13K Z 2 Replies Last reply Reply Quote 0
                              • karsten13K Offline
                                karsten13 @sdetweil
                                last edited by

                                @sdetweil may he should delete package-lock.json too

                                S Z 2 Replies Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @karsten13
                                  last edited by

                                  @karsten13 true…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • Z Offline
                                    zolabus @sdetweil
                                    last edited by

                                    @sdetweil said in Magic mirror not starting:

                                    grep version ~/MagicMirror/package.json

                                    “version”: “2.17.1”,

                                    1 Reply Last reply Reply Quote 0
                                    • Z Offline
                                      zolabus @karsten13
                                      last edited by

                                      @karsten13 done…
                                      My log now is

                                      pi@magicmirror:~/MagicMirror $ npm start

                                      magicmirror@2.17.1 start /home/pi/MagicMirror
                                      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

                                      Fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown element “blank”
                                      [03.01.2022 09:56.26.101] [LOG] Starting MagicMirror: v2.17.1
                                      [03.01.2022 09:56.26.130] [LOG] Loading config …
                                      [03.01.2022 09:56.26.156] [LOG] Loading module helpers …
                                      [03.01.2022 09:56.26.166] [LOG] No helper found for module: alert.
                                      [03.01.2022 09:56.26.238] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.26.243] [LOG] Module helper loaded: updatenotification
                                      [03.01.2022 09:56.26.246] [LOG] No helper found for module: clock.
                                      [03.01.2022 09:56.27.074] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.27.078] [LOG] Module helper loaded: calendar
                                      [03.01.2022 09:56.28.016] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.28.020] [LOG] Module helper loaded: MMM-GooglePhotos
                                      [03.01.2022 09:56.29.319] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.323] [LOG] Module helper loaded: MMM-DarkSkyForecast
                                      [03.01.2022 09:56.29.407] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.409] [LOG] Module helper loaded: newsfeed
                                      [03.01.2022 09:56.29.412] [LOG] No helper found for module: compliments.
                                      [03.01.2022 09:56.29.427] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘request’
                                      Require stack:

                                      • /home/pi/MagicMirror/modules/MMM-SoccerLiveScore/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/mai n.js

                                      [03.01.2022 09:56.29.432] [LOG] Loading module helpers …
                                      [03.01.2022 09:56.29.439] [LOG] No helper found for module: alert.
                                      [03.01.2022 09:56.29.442] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.444] [LOG] Module helper loaded: updatenotification
                                      [03.01.2022 09:56.29.447] [LOG] No helper found for module: clock.
                                      [03.01.2022 09:56.29.450] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.454] [LOG] Module helper loaded: calendar
                                      [03.01.2022 09:56.29.459] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.462] [LOG] Module helper loaded: MMM-GooglePhotos
                                      [03.01.2022 09:56.29.467] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.470] [LOG] Module helper loaded: MMM-DarkSkyForecast
                                      [03.01.2022 09:56.29.473] [LOG] Initializing new module helper …
                                      [03.01.2022 09:56.29.475] [LOG] Module helper loaded: newsfeed
                                      [03.01.2022 09:56.29.478] [LOG] No helper found for module: compliments.
                                      [03.01.2022 09:56.29.487] [ERROR] App threw an error during load
                                      [03.01.2022 09:56.29.497] [ERROR] Error: Cannot find module ‘request’
                                      Require stack:

                                      • /home/pi/MagicMirror/modules/MMM-SoccerLiveScore/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/mai n.js
                                      • at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
                                        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/modul e-alias/index.js:49:29)
                                        at Module._load (internal/modules/cjs/loader.js:732:27)
                                        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
                                        at Module.require (internal/modules/cjs/loader.js:959:19)
                                        at require (internal/modules/cjs/helpers.js:88:18)
                                        at Object. (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node _helper.js:11:15)
                                        at Module._compile (internal/modules/cjs/loader.js:1078:30)
                                        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
                                        [03.01.2022 09:56.29.503] [ERROR] Whoops! There was an uncaught exception…
                                        [03.01.2022 09:56.29.526] [ERROR] Error: Cannot find module ‘request’
                                        Require stack:
                                      • /home/pi/MagicMirror/modules/MMM-SoccerLiveScore/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/mai n.js
                                      • at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
                                        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/modul e-alias/index.js:49:29)
                                        at Module._load (internal/modules/cjs/loader.js:732:27)
                                        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
                                        at Module.require (internal/modules/cjs/loader.js:959:19)
                                        at require (internal/modules/cjs/helpers.js:88:18)
                                        at Object. (/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/node _helper.js:11:15)
                                        at Module._compile (internal/modules/cjs/loader.js:1078:30)
                                        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10) {
                                        code: ‘MODULE_NOT_FOUND’,
                                        requireStack: [
                                        ‘/home/pi/MagicMirror/modules/MMM-SoccerLiveScore/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
                                        ]
                                        }
                                        [03.01.2022 09:56.29.545] [ERROR] MagicMirror will not quit, but it might be a g ood idea to check why this happened. Maybe no internet connection?
                                        [03.01.2022 09:56.29.548] [ERROR] If you think this really is an issue, please o pen an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                        [03.01.2022 09:56.30.426] [LOG] Launching application.
                                      S 1 Reply Last reply Reply Quote 0
                                      • Z Offline
                                        zolabus
                                        last edited by

                                        I saved all the modules I had installed…
                                        What else for a backup?
                                        What about a clean reinstallation?
                                        How can I delete everything? It’s enough if I delete the MagicMirror folder?

                                        Z 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @zolabus
                                          last edited by

                                          @zolabus said in Magic mirror not starting:

                                          Cannot find module ‘request’

                                          see
                                          https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • Z Offline
                                            zolabus @zolabus
                                            last edited by

                                            @zolabus Hi all after all I found a couple of modules causing the issue…
                                            I started from a standard config file and added the modules one by one.
                                            Now I have my magic mirror back
                                            Thanks

                                            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