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.

    Black screen after 2.13 update - tentatively resolved

    Scheduled Pinned Locked Moved Troubleshooting
    53 Posts 9 Posters 20.4k Views 9 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.
    • M Offline
      m0bed @m0bed
      last edited by

      @m0bed So, I changed my config found out that this modules dont work at the moment:
      MMM-Homematic-Heaters
      MMM-FRITZ-Box-Callmonitor
      On the callmonitor I tried this help topic, but not working.
      https://github.com/MichMich/MagicMirror/issues/2144

      After deleting this two moduls form the config, every thing works fine, but still getting the messages from npm install.

      Daniel

      S spitzlbergerjS 2 Replies Last reply Reply Quote 0
      • R Offline
        retroflex Project Sponsor Module Developer
        last edited by

        Found one more in module MMM-Vasttrafik-PublicTransport. I have created an issue for that:

        https://github.com/bureus/MMM-Vasttrafik-PublicTransport/issues/14

        1 Reply Last reply Reply Quote 0
        • K Offline
          Klinge
          last edited by Klinge

          Found one more module too. In my case a black screen appears through the standard calendar module.

          my config is

                          {
                                  module: "calendar",
                                  header: "Termine",
                                  position: "top_left",
                                  config: {
                                          timeFormat: 'absolute',
                                          maximumEntries: 10,
                                          dateFormat: 'ddd DD MMM HH:mm',
                                          fullDayEventDateFormat: 'ddd DD MMM',
                                          showEnd: false,
                                          urgency: 0,
                                          getRelative: 0,
                                          calendars: [
                                                  {
                                                          symbol: "calendar-check",
                                                          url: "https://calendar.google.com/calendar/ical/XXXXXXXXXXXXX/basic.ics"
                                                  },
                                                  {
                                                          url: "https://calendar.google.com/calendar/ical/XXXXXXXXXXX/basic.ics"
                                                  }
                                          ]
                                  }
                          },
          
          

          How can I create an issue for that?

          Or is there a problem in my config?

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

            @Klinge black screen

            look in two places,
            the window where you start mm,
            using npm start
            or
            pm2
            if pm2 use the command
            pm2 logs --lines=???
            ??? is a number, default is 15

            also look in the developers window
            ctrl-shift-i and select the console tab 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
            • S Offline
              sdetweil @m0bed
              last edited by

              @m0bed did u run npm install in all the module folders which have a package.json file?

              next time, use my upgrade script
              see here
              https://github.com/sdetweil/MagicMirror_scripts

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • K Offline
                Klinge
                last edited by

                @sdetweil said in Black screen after 2.13 update - tentatively resolved:

                pm2 logs --lines=???

                When I run the pm2 logs, I got the following logs

                0|mm     | [2020-10-02 14:32:00.841] [LOG]    Module helper loaded: updatenotification
                0|mm     | [2020-10-02 14:32:00.843] [LOG]    No helper found for module: clock.
                0|mm     | [2020-10-02 14:32:01.602] [LOG]
                0|mm     | Initializing new module helper ...
                0|mm     | [2020-10-02 14:32:01.604] [LOG]    Module helper loaded: MMM-DarkSkyForecast
                0|mm     | [2020-10-02 14:32:01.620] [ERROR]
                0|mm     | WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node-ical'
                0|mm     | Require stack:
                0|mm     | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                0|mm     | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                0|mm     | - /home/pi/MagicMirror/js/app.js
                0|mm     | - /home/pi/MagicMirror/js/electron.js
                0|mm     | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                0|mm     | -
                0|mm     | [2020-10-02 14:32:01.621] [LOG]    Loading module helpers ...
                0|mm     | [2020-10-02 14:32:01.623] [LOG]    No helper found for module: alert.
                0|mm     | [2020-10-02 14:32:01.627] [LOG]    Initializing new module helper ...
                0|mm     | [2020-10-02 14:32:01.629] [LOG]    Module helper loaded: updatenotification
                0|mm     | [2020-10-02 14:32:01.633] [LOG]    No helper found for module: clock.
                0|mm     | [2020-10-02 14:32:01.637] [LOG]    Initializing new module helper ...
                0|mm     | [2020-10-02 14:32:01.640] [LOG]    Module helper loaded: MMM-DarkSkyForecast
                0|mm     | [2020-10-02 14:32:01.649] [ERROR]
                0|mm     | App threw an error during load
                0|mm     | [2020-10-02 14:32:01.651] [ERROR]  Error: Cannot find module 'node-ical'
                0|mm     | Require stack:
                0|mm     | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                0|mm     | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                0|mm     | - /home/pi/MagicMirror/js/app.js
                0|mm     | - /home/pi/MagicMirror/js/electron.js
                0|mm     | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                0|mm     | -
                0|mm     |     at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                0|mm     |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                0|mm     |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                0|mm     |     at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                0|mm     |     at Module.require (internal/modules/cjs/loader.js:685:19)
                0|mm     |     at require (internal/modules/cjs/helpers.js:16:16)
                0|mm     |     at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                0|mm     |     at Module._compile (internal/modules/cjs/loader.js:786:30)
                0|mm     |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                0|mm     |     at Module.load (internal/modules/cjs/loader.js:645:32)
                0|mm     | [2020-10-02 14:32:01.654] [ERROR]  Whoops! There was an uncaught exception...
                0|mm     | [2020-10-02 14:32:01.655] [ERROR]
                0|mm     | Error: Cannot find module 'node-ical'
                0|mm     | Require stack:
                0|mm     | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                0|mm     | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                0|mm     | - /home/pi/MagicMirror/js/app.js
                0|mm     | - /home/pi/MagicMirror/js/electron.js
                0|mm     | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                0|mm     | -
                0|mm     |     at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                0|mm     |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                0|mm     |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                0|mm     |     at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                0|mm     |     at Module.require (internal/modules/cjs/loader.js:685:19)
                0|mm     |     at require (internal/modules/cjs/helpers.js:16:16)
                0|mm     |     at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                0|mm     |     at Module._compile (internal/modules/cjs/loader.js:786:30)
                0|mm     |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                0|mm     |     at Module.load (internal/modules/cjs/loader.js:645:32) {
                0|mm     |   code: 'MODULE_NOT_FOUND',
                0|mm     |   requireStack: [
                0|mm     |     '/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js',
                0|mm     |     '/home/pi/MagicMirror/modules/default/calendar/node_helper.js',
                0|mm     |     '/home/pi/MagicMirror/js/app.js',
                0|mm     |     '/home/pi/MagicMirror/js/electron.js',
                0|mm     |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
                0|mm     |     undefined
                0|mm     |   ]
                0|mm     | }
                0|mm     | [2020-10-02 14:32:01.682] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                0|mm     | [2020-10-02 14:32:01.683] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                0|mm     | [2020-10-02 14:32:01.845] [LOG]
                0|mm     | Launching application.
                
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Klinge
                  last edited by sdetweil

                  @Klinge looks like u did not run
                  npm install
                  after the git pull

                  darksky looks like it will need one too

                  or use the upgrade script with force at the end, instead of apply
                  see here
                  https://github.com/sdetweil/MagicMirror_scripts

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Reply Quote 0
                  • swvalentiS Offline
                    swvalenti Project Sponsor
                    last edited by

                    Sam,

                    Used your scrips on 3 updates with no issue except for one install. Getting black screen and ran the logs showing calendar error?

                    /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
                    0|MagicMir |   syscall: 'read'
                    0|MagicMir | }
                    0|MagicMir | [2020-09-29 00:11:23.035] [ERROR]  Calendar Error. Could not fetch calendar:  http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics Error: connect ETIMEDOUT 69.16.220.190:80
                    0|MagicMir |     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1054:14) {
                    0|MagicMir |   errno: 'ETIMEDOUT',
                    0|MagicMir |   code: 'ETIMEDOUT',
                    0|MagicMir |   syscall: 'connect',
                    0|MagicMir |   address: '69.16.220.190',
                    0|MagicMir |   port: 80
                    0|MagicMir | }
                    0|MagicMir | [25300:0930/035804.824753:FATAL:memory.cc(22)] Out of memory. size=262144
                    0|MagicMir | [12409:1001/033404.599579:FATAL:memory.cc(22)] Out of memory. size=262144
                    0|MagicMir | [14477:1001/034403.637658:FATAL:memory.cc(22)] Out of memory. size=262144
                    0|MagicMir | [14677:1001/034505.102662:FATAL:memory.cc(22)] Out of memory. size=262144
                    0|MagicMir | [1436:1002/084636.370183:FATAL:memory.cc(22)] Out of memory. size=262144
                    
                    /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
                    0|MagicMir | [2020-10-02 08:53:45.855] [LOG]    No helper found for module: MMM-EyeCandy.
                    0|MagicMir | [2020-10-02 08:53:45.856] [LOG]    No helper found for module: on-this-day.
                    0|MagicMir | [2020-10-02 08:53:45.856] [LOG]    All module helpers loaded.
                    0|MagicMir | [2020-10-02 08:53:46.035] [LOG]    Starting server on port 8080 ...
                    0|MagicMir | [2020-10-02 08:53:46.044] [INFO]   You're using a full whitelist configuration to allow for all IPs
                    0|MagicMir | [2020-10-02 08:53:46.053] [LOG]    Server started ...
                    0|MagicMir | [2020-10-02 08:53:46.054] [LOG]    Connecting socket for: updatenotification
                    0|MagicMir | [2020-10-02 08:53:46.056] [LOG]    Connecting socket for: calendar
                    0|MagicMir | [2020-10-02 08:53:46.057] [LOG]    Starting node helper for: calendar
                    0|MagicMir | [2020-10-02 08:53:46.058] [LOG]    Connecting socket for: MMM-EARTH
                    0|MagicMir | [2020-10-02 08:53:46.059] [LOG]    Starting module: MMM-EARTH
                    0|MagicMir | [2020-10-02 08:53:46.060] [LOG]    Connecting socket for: MMM-DarkSkyForecast
                    0|MagicMir | [2020-10-02 08:53:46.061] [LOG]    ====================== Starting node_helper for module [MMM-DarkSkyForecast]
                    0|MagicMir | [2020-10-02 08:53:46.062] [LOG]    Sockets connected & modules started ...
                    0|MagicMir | [2020-10-02 08:53:46.177] [LOG]    Launching application.
                    
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @swvalenti
                      last edited by sdetweil

                      @swvalenti hm… connection timeout

                      it should handle that for sure.
                      I will look at the code in a while

                      that url worked here just now

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • swvalentiS Offline
                        swvalenti Project Sponsor
                        last edited by

                        Hmm weird, two other updates went fine and this one only has the error shown giving black screen. Ran script again too and didn’t do anything. Restarted pi and nothing still error and black screen.

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

                          @swvalenti that calendar problem is from Sept 29. so not relevant now

                          can u open the dev window, see the instructions a few messages back

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            Klinge @sdetweil
                            last edited by

                            @sdetweil you are right. After an npm install it works. But I don´t understand it. Because, I run an update script with git pull && npm install in the MagicMirror Folder.

                            Whtatever, after the npm install it works. Is it running now because the electron was rebuilt?

                            Thank you for your help.

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

                              @Klinge said in Black screen after 2.13 update - tentatively resolved:

                              after the npm install it works

                              where did u run this npm install?

                              that command stinks,

                              git pull && npm install
                              

                              if git pull returns non-0, then the npm install will not be executed

                              "&&" is used to chain commands together, such that the next command is run if and only if the preceding command exited without errors
                              

                              use my script!..

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              K 1 Reply Last reply Reply Quote 0
                              • swvalentiS Offline
                                swvalenti Project Sponsor
                                last edited by

                                This is what the dev console error is…

                                /home/pi/MagicMirror…rity-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://0.0.0.0:8080/css/main.css
                                - http://0.0.0.0:8080/fonts/roboto.css
                                - http://0.0.0.0:8080/socket.io/socket.io.js
                                - http://0.0.0.0:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
                                - http://0.0.0.0:8080/js/defaults.js
                                - http://0.0.0.0:8080/config/config.js
                                - http://0.0.0.0:8080/vendor/vendor.js
                                - http://0.0.0.0:8080/modules/default/defaultmodules.js
                                - http://0.0.0.0:8080/js/logger.js
                                - http://0.0.0.0:8080/translations/translations.js
                                - http://0.0.0.0:8080/js/translator.js
                                - http://0.0.0.0:8080/js/class.js
                                - http://0.0.0.0:8080/js/module.js
                                - http://0.0.0.0:8080/js/loader.js
                                - http://0.0.0.0:8080/js/socketclient.js
                                - http://0.0.0.0:8080/js/main.js
                                - http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
                                - http://0.0.0.0:8080/translations/en.json
                                - http://0.0.0.0:8080/translations/en.json
                                - http://0.0.0.0:8080/modules/default/alert//alert.js
                                - http://0.0.0.0:8080/modules/default/alert/notificationFx.js
                                - http://0.0.0.0:8080/modules/default/alert/notificationFx.css
                                - http://0.0.0.0:8080/vendor/css/font-awesome.css
                                - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css
                                - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css
                                  
                                 
                                For more information and help, consult
                                https://electronjs.org/docs/tutorial/security.
                                 This warning will not show up
                                once the app is packaged.
                                /home/pi/MagicMirror…ity-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.
                                
                                S 2 Replies Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @swvalenti
                                  last edited by sdetweil

                                  @swvalenti said in Black screen after 2.13 update - tentatively resolved:

                                  Electron Security Warning (Insecure Content-Security-Policy)

                                  hm…

                                  try this

                                  edit ~/MagicMirror/index.html

                                  < head>
                                  	< title>MagicMirror²< /title>
                                  	< meta name="google" content="notranslate" />
                                  	< meta http-equiv="Content-type" content="text/html; charset=utf-8" />
                                  
                                  	< meta name="apple-mobile-web-app-capable" content="yes">
                                  	< meta name="apple-mobile-web-app-status-bar-style" content="black">
                                  	< meta name="format-detection" content="telephone=no">
                                  	< meta name="mobile-web-app-capable" content="yes">
                                  	< meta http-equiv="Content-Security-Policy" content="script-src 'self';"> < ---- insert this line without the space after < 
                                  

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 1
                                  • swvalentiS Offline
                                    swvalenti Project Sponsor
                                    last edited by

                                    Sam, that worked thank you very much!

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

                                      @swvalenti i wonder why YOU see it and no one else does…

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • swvalentiS Offline
                                        swvalenti Project Sponsor
                                        last edited by

                                        I have no clue on that as all my units run the same hardware and OS

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

                                          @swvalenti I opened issue https://github.com/MichMich/MagicMirror/issues/2147 to track this

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • swvalentiS Offline
                                            swvalenti Project Sponsor
                                            last edited by

                                            Same unit that give me earlier issue does not load darksky or pokemon…my kids monitor…lol…other mirrors run darksky with no problem.

                                            Scripts loaded for: MMM-EARTH
                                            loader.js:195 Load stylesheet: modules/MMM-EARTH/MMM-EARTH.css
                                            loader.js:155 Styles loaded for: MMM-EARTH
                                            loader.js:157 Translations loaded for: MMM-EARTH
                                            loader.js:176 Load script: modules/MMM-DarkSkyForecast//MMM-DarkSkyForecast.js
                                            module.js:505 Check MagicMirror version for module 'MMM-DarkSkyForecast' - Minimum version:  2.2.0 - Current version: undefined
                                            module.js:528 Uncaught TypeError: Cannot read property 'replace' of undefined
                                                at cmpVersions (module.js:528)
                                                at Function.Module.register (module.js:506)
                                                at MMM-DarkSkyForecast.js:41
                                            loader.js:176 Load script: modules/MMM-DailyPokemon//MMM-DailyPokemon.js
                                            module.js:505 Check MagicMirror version for module 'MMM-DailyPokemon' - Minimum version:  2.1.0 - Current version: undefined
                                            module.js:528 Uncaught TypeError: Cannot read property 'replace' of undefined
                                                at cmpVersions (module.js:528)
                                                at Function.Module.register (module.js:506)
                                                at MMM-DailyPokemon.js:10
                                            loader.js:176 Load script: modules/MMM-EventHorizon//MMM-EventHorizon.js
                                            module.js:513 Module registered: MMM-EventHorizon
                                            loader.js:148 Bootstrapping module: MMM-EventHorizon
                                            loader.js:153 Scripts loaded for: MMM-EventHorizon
                                            loader.js:195 Load stylesheet: modules/MMM-EventHorizon/MMM-EventHorizon.css
                                            loader.js:155 Styles loaded for: MMM-EventHorizon
                                            
                                            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
                                            • 3
                                            • 2 / 3
                                            • 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