• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 12.2k 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.
  • S Offline
    sdetweil @Cyric
    last edited by Jul 3, 2020, 6:28 AM

    @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 Jul 3, 2020, 12:38 PM

      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 Jul 3, 2020, 12:47 PM Reply Quote 0
      • S Offline
        sdetweil @Cyric
        last edited by sdetweil Jul 3, 2020, 12:47 PM Jul 3, 2020, 12:47 PM

        @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 Jul 3, 2020, 1:19 PM Reply Quote 0
        • C Offline
          Cyric @sdetweil
          last edited by Jul 3, 2020, 1:19 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • C Offline
            Cyric @sdetweil
            last edited by Jul 3, 2020, 1:29 PM

            @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 Jul 3, 2020, 2:09 PM Reply Quote 0
            • S Offline
              sdetweil @Cyric
              last edited by sdetweil Jul 3, 2020, 5:15 PM Jul 3, 2020, 2:09 PM

              @Cyric can u show any errors from pm2 or npm start screen

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Jul 3, 2020, 3:00 PM Reply Quote 0
              • C Offline
                Cyric @sdetweil
                last edited by Jul 3, 2020, 3:00 PM

                @sdetweil main.js:478 Initializing MagicMirror.
                translator.js:202 Loading core translation file: translations/en.json
                translator.js:227 Loading core translation fallback file: translations/en.json
                loader.js:175 Load script: modules/default/alert//alert.js
                :8080/modules/default/alert//alert.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/alert//alert.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/updatenotification//updatenotification.js
                :8080/modules/default/updatenotification//updatenotification.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/updatenotification//updatenotification.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/clock//clock.js
                :8080/modules/default/clock//clock.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/clock//clock.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/calendar//calendar.js
                :8080/modules/default/calendar//calendar.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/calendar//calendar.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/compliments//compliments.js
                :8080/modules/default/compliments//compliments.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/compliments//compliments.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/currentweather//currentweather.js
                :8080/modules/default/currentweather//currentweather.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/currentweather//currentweather.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/weatherforecast//weatherforecast.js
                :8080/modules/default/weatherforecast//weatherforecast.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/weatherforecast//weatherforecast.js
                script.onerror @ loader.js:185
                loader.js:175 Load script: modules/default/newsfeed//newsfeed.js
                :8080/modules/default/newsfeed//newsfeed.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
                loader.js:185 Error on loading script: modules/default/newsfeed//newsfeed.js
                script.onerror @ loader.js:185
                loader.js:194 Load stylesheet: css/custom.css
                main.js:496 All modules started!
                /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
                protocols.This exposes users of this app to unnecessary security risks.
                Consider loading the following resources over HTTPS or FTPS.

                • http://localhost:8080/css/main.css
                • http://localhost:8080/fonts/roboto.css
                • http://localhost:8080/socket.io/socket.io.js
                • http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
                • http://localhost:8080/js/defaults.js
                • http://localhost:8080/config/config.js
                • http://localhost:8080/vendor/vendor.js
                • http://localhost:8080/modules/default/defaultmodules.js
                • http://localhost:8080/js/logger.js
                • http://localhost:8080/translations/translations.js
                • http://localhost:8080/js/translator.js
                • http://localhost:8080/js/class.js
                • http://localhost:8080/js/module.js
                • http://localhost:8080/js/loader.js
                • http://localhost:8080/js/socketclient.js
                • http://localhost:8080/js/main.js
                • http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
                • http://localhost:8080/translations/en.json
                • http://localhost:8080/translations/en.json
                • http://localhost:8080/css/custom.css

                For more information and help, consult
                https://electronjs.org/docs/tutorial/security.
                This warning will not show up
                once the app is packaged.
                warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95
                /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
                Policy set or a policy with “unsafe-eval” enabled. This exposes users of
                this app to unnecessary security risks.

                For more information and help, consult
                https://electronjs.org/docs/tutorial/security.
                This warning will not show up
                once the app is packaged.
                (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145

                S 1 Reply Last reply Jul 3, 2020, 5:17 PM Reply Quote 0
                • S Offline
                  sdetweil @Cyric
                  last edited by Jul 3, 2020, 5:17 PM

                  @Cyric are u running MM OS? or docker?

                  those files should be there.

                  cd ~/MagicMirror
                  ls modules/default -laF

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C C 2 Replies Last reply Jul 3, 2020, 5:32 PM Reply Quote 1
                  • C Offline
                    Cyric @sdetweil
                    last edited by Jul 3, 2020, 5:32 PM

                    @sdetweil I’m running rasbian like the tutorial suggests.

                    That command gave me: “pi@raspberrypi:~/MagicMirror $ ls modules/default -laF
                    total 12
                    drwxr-xr-x 2 pi pi 4096 Jul 3 08:21 ./
                    drwxr-xr-x 3 pi pi 4096 Jul 3 08:21 …/
                    -rw-r–r-- 1 pi pi 512 Jul 3 08:21 defaultmodules.js”

                    S 1 Reply Last reply Jul 3, 2020, 5:38 PM Reply Quote 0
                    • S Offline
                      sdetweil @Cyric
                      last edited by Jul 3, 2020, 5:38 PM

                      @Cyric well. why are they. missing?

                      I don’t know if this will work

                      cd ~/MagicMirror
                      git checkout modules/default

                      if not, you will probably have to git clone and copy the files from the clone

                      git clone https://github.com/MichMich/MagicMirror. git mm

                      cp -r -p mm/modules/default ~/MagicMirror/modules

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      C 1 Reply Last reply Jul 3, 2020, 5:52 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        20/40
                        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