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 17.1k 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.
    • C Offline
      carlywarly
      last edited by

      @sdetweil said in Black screen after 2.13 update:

      history of commands…

      525 cd ./MagicMirror
      526 git pull
      527 sudo reboot

      << black screen >>

      528 sudo apt update
      529 sudo apt upgrade
      530 sudo reboot
      531 cd /MagicMirror
      532 cd node_modules/
      533 ls
      534 sudo rm -r electron
      535 cd …
      536 npm install
      537 pm2 logs --lines=100
      540 sudo reboot

      << black screen >>

      541 ifconfig
      542 sudo reboot
      543 history

      Working again…??? I think it my pi possibly had a problem talking to the internet… maybe the reboot gods strike again???

      BTW thx for the quick reply :)

      CarlyWarly

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

        @carlywarly cool, glad its working… but… sure would have been nice to see the error messages… shouldn’t black screen for a network problem…

        but that usually means a module didn’t handle network failure and crashed and UI died

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          m0bed @carlywarly
          last edited by

          @carlywarly thank you for your help. I tried all of the mentions commands bot still having a black screen.

          on "pm2 logs --lines=100 i get this error message.

          0|MagicMir | npm ERR! Linux 4.19.66-v7+
          0|MagicMir | npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
          0|MagicMir | npm ERR! node v6.14.1
          0|MagicMir | npm ERR! npm  v3.10.10
          0|MagicMir | npm ERR! code ELIFECYCLE
          0|MagicMir | npm ERR! magicmirror@2.13.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
          0|MagicMir | npm ERR! Exit status 1
          0|MagicMir | npm ERR!
          0|MagicMir | npm ERR! Failed at the magicmirror@2.13.0 start script 'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js'.
          0|MagicMir | npm ERR! Make sure you have the latest version of node.js and npm installed.
          0|MagicMir | npm ERR! If you do, this is most likely a problem with the magicmirror package,
          0|MagicMir | npm ERR! not with npm itself.
          0|MagicMir | npm ERR! Tell the author that this fails on your system:
          0|MagicMir | npm ERR!     DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
          0|MagicMir | npm ERR! You can get information on how to open an issue for this project with:
          0|MagicMir | npm ERR!     npm bugs magicmirror
          0|MagicMir | npm ERR! Or if that isn't available, you can get their info via:
          0|MagicMir | npm ERR!     npm owner ls magicmirror
          0|MagicMir | npm ERR! There is likely additional logging output above.
          0|MagicMir |
          0|MagicMir | npm ERR! Please include the following file with any support request:
          0|MagicMir | npm ERR!     /home/pi/MagicMirror/npm-debug.log
          0|MagicMir | Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
          0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
          
          

          Also after running “npm install” I get this messages:

          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/chokidar/node_modules/fsevents):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          npm WARN acorn-jsx@5.3.1 requires a peer of acorn@^6.0.0 || ^7.0.0 || ^8.0.0 but none was installed.
          npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none was installed.
          npm WARN grunt-stylelint@0.9.0 requires a peer of stylelint@^8.0.0 but none was installed.
          npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none was installed.
          npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none was installed.
          

          After a reboot the desktop starts, also some programm starts turning screen first white for 2 seconds then it turns black.

          What can I do?

          Daniel

          M 1 Reply Last reply Reply Quote 0
          • 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
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 3 / 6
                        • 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