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.

    Blackscreen after update to v.2.8.0

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    30 Posts 8 Posters 12.7k Views 7 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.
    • mumblebajM Offline
      mumblebaj Module Developer @Blackmirror
      last edited by

      @Blackmirror Hi. Are there any errors in pm2 logs?

      Check out my modules at: https://github.com/mumblebaj?tab=repositories
      Check my blog-post: https://mumblebaj.xyz/
      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

      1 Reply Last reply Reply Quote 0
      • B Offline
        Blackmirror
        last edited by

        Thanks.

        I have only npm install at Magicmirror not for the modules.

        Now it was running fine.

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

          @Blackmirror great!.. thanks for the feedback…

          I am working on an upgrade script to do all this for users.
          https://forum.magicmirror.builders/topic/10729/new-script-for-mirror-release-upgrades

          how many modules did u have to npm install for?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • P Offline
            potts-mike
            last edited by

            I am having the same issue but doing npm install in all of the modules folders doesn’t resolve it. Any other thoughts?

            mumblebajM 1 Reply Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @potts-mike
              last edited by

              @potts-mike Are there any issues in your config.js? Can you run npm run config:check and see if there are errors?

              Check out my modules at: https://github.com/mumblebaj?tab=repositories
              Check my blog-post: https://mumblebaj.xyz/
              Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

              1 Reply Last reply Reply Quote 0
              • P Offline
                potts-mike
                last edited by

                I can, should I run that from the config file?

                I will say though that it worked before the upgrade and I tried the config.js.sample file and it didnt work.

                bheplerB 1 Reply Last reply Reply Quote 0
                • bheplerB Offline
                  bhepler Module Developer @potts-mike
                  last edited by

                  @potts-mike - Run it from the command line in the /home/pi/MagicMirror folder.

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    potts-mike
                    last edited by

                    THe config file does not contain syntax errors.

                    pi@raspberrypi:~/MagicMirror $ npm run config:check
                    
                    > magicmirror@2.8.0 config:check /home/pi/MagicMirror
                    > node tests/configs/check_config.js
                    
                    Checking file...  /home/pi/MagicMirror/config/config.js
                    Your configuration file doesn't contain syntax errors :)
                    pi@raspberrypi:~/MagicMirror $ 
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @potts-mike
                      last edited by

                      @potts-mike ok, then do

                      npm start dev
                      

                      Or

                      Ctrl-shift-i   if already running
                      

                      And in the developers window, select the console tab, and scroll up to find any errors. Red text usually.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        potts-mike
                        last edited by

                        I know that the last thing it says it is launching the app but a white screen with the developer console opens with the error “Dev tools was disconnected from the page…”

                        pi@raspberrypi:~/MagicMirror $ npm start dev
                        
                        > magicmirror@2.8.0 start /home/pi/MagicMirror
                        > sh run-start.sh "dev"
                        
                        Starting MagicMirror: v2.8.0
                        Loading config ...
                        Loading module helpers ...
                        WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node_helper'
                        Loading module helpers ...
                        App threw an error during load
                        Error: Cannot find module 'node_helper'
                            at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                            at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                            at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                            at Module.require (internal/modules/cjs/loader.js:658:17)
                            at require (internal/modules/cjs/helpers.js:20:18)
                            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Sonos/node_helper.js:7:18)
                            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Sonos/node_helper.js:30:3)
                            at Module._compile (internal/modules/cjs/loader.js:711:30)
                            at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                            at Module.load (internal/modules/cjs/loader.js:620:32)
                        Whoops! There was an uncaught exception...
                        { Error: Cannot find module 'node_helper'
                            at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                            at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                            at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                            at Module.require (internal/modules/cjs/loader.js:658:17)
                            at require (internal/modules/cjs/helpers.js:20:18)
                            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Sonos/node_helper.js:7:18)
                            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Sonos/node_helper.js:30:3)
                            at Module._compile (internal/modules/cjs/loader.js:711:30)
                            at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                            at Module.load (internal/modules/cjs/loader.js:620:32) code: 'MODULE_NOT_FOUND' }
                        MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                        If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                        Launching application.
                        
                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          dazza120 @potts-mike
                          last edited by

                          @potts-mike i get the same with the pi4, the npm installs on some modules are killing the mirror. i think its safe to link all of these threads into one, ive put out a request for the dev of one module, i have no idea if any other module that i will put on the mirror will do the same i can only take it one step at a time, the affected module is mmm-nest-status.

                          pi@raspberrypi:~ $ cd MagicMirror/modules
                          pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/BenRoe/MMM-SystemStats
                          Cloning into 'MMM-SystemStats'...
                          remote: Enumerating objects: 22, done.
                          remote: Counting objects: 100% (22/22), done.
                          remote: Compressing objects: 100% (14/14), done.
                          remote: Total 231 (delta 10), reused 16 (delta 8), pack-reused 209
                          Receiving objects: 100% (231/231), 88.08 KiB | 578.00 KiB/s, done.
                          Resolving deltas: 100% (122/122), done.
                          pi@raspberrypi:~/MagicMirror/modules $ cd MMM-SystemStats
                          pi@raspberrypi:~/MagicMirror/modules/MMM-SystemStats $ npm install
                          npm notice created a lockfile as package-lock.json. You should commit this file.
                          added 1 package from 1 contributor and audited 1 package in 1.265s
                          found 0 vulnerabilities
                          
                          pi@raspberrypi:~/MagicMirror/modules/MMM-SystemStats $ cd
                          pi@raspberrypi:~ $ cd MagicMirror
                          pi@raspberrypi:~/MagicMirror $ npm  run config:check
                          
                          > magicmirror@2.8.0 config:check /home/pi/MagicMirror
                          > node tests/configs/check_config.js
                          
                          Checking file...  /home/pi/MagicMirror/config/config.js
                          Your configuration file doesn't contain syntax errors :)
                          pi@raspberrypi:~/MagicMirror $ cd modules
                          pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/michael5r/mmm-nest-status.git
                          Cloning into 'mmm-nest-status'...
                          remote: Enumerating objects: 135, done.
                          remote: Total 135 (delta 0), reused 0 (delta 0), pack-reused 135
                          Receiving objects: 100% (135/135), 65.27 KiB | 718.00 KiB/s, done.
                          Resolving deltas: 100% (77/77), done.
                          pi@raspberrypi:~/MagicMirror/modules $ cd mmm-nest-status
                          pi@raspberrypi:~/MagicMirror/modules/mmm-nest-status $ npm install
                          npm WARN deprecated undefined@0.1.0: this package has been deprecated
                          npm WARN saveError ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/package.json'
                          npm notice created a lockfile as package-lock.json. You should commit this file.
                          npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/package.json'
                          npm WARN modules No description
                          npm WARN modules No repository field.
                          npm WARN modules No README data
                          npm WARN modules No license field.
                          
                          removed 1 package in 1.141s
                          found 0 vulnerabilities
                          
                          pi@raspberrypi:~/MagicMirror/modules/mmm-nest-status $ cd
                          pi@raspberrypi:~ $ pm2 restart MagicMirror
                          Use --update-env to update environment variables
                          [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                          [PM2] [MagicMirror](0) ✓
                          ┌─────────────┬────┬──────┬────────┬───┬─────┬──────────┐
                          │ Name        │ id │ mode │ status │ ↺ │ cpu │ memory   │
                          ├─────────────┼────┼──────┼────────┼───┼─────┼──────────┤
                          │ MagicMirror │ 0  │ fork │ online │ 2 │ 0%  │ 2.5 MB   │
                          └─────────────┴────┴──────┴────────┴───┴─────┴──────────┘
                           Use `pm2 show <id|name>` to get more details about an app
                          pi@raspberrypi:~ $ npm  run config:check
                          npm ERR! path /home/pi/package.json
                          npm ERR! code ENOENT
                          npm ERR! errno -2
                          npm ERR! syscall open
                          npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                          npm ERR! enoent This is related to npm not being able to find a file.
                          npm ERR! enoent 
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /home/pi/.npm/_logs/2019-07-13T20_08_21_703Z-debug.log
                          
                          
                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @dazza120
                            last edited by

                            @dazza120 mmm-nest-status does not have a package.json file,
                            so you should NOT do an npm install in that modules folder

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            D 1 Reply Last reply Reply Quote 0
                            • D Offline
                              dazza120 @sdetweil
                              last edited by

                              @sdetweil ok interesting any idea why it kills it if you do that as it’s never before very strange thanks I’ll take a look at it

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

                                @dazza120 no idea… all this npm stuff is new to me and I don’t understand all the rules and issues

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                D 1 Reply Last reply Reply Quote 1
                                • D Offline
                                  dazza120 @sdetweil
                                  last edited by

                                  @sdetweil 100% that man it doesn’t need npm install and is working :) thank you

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

                                    @dazza120 thanks for the update!..

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      panos
                                      last edited by panos

                                      Same issue here.
                                      Black screen after updating to v2.8. Any suggestions?

                                      Log file:

                                      pm2 logs MagicMirror
                                      [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
                                      /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
                                      0|MagicMir | Initializing new module helper …
                                      0|MagicMir | Module helper loaded: calendar
                                      0|MagicMir | No helper found for module: calendar_monthly.
                                      0|MagicMir | Loading module helpers …
                                      0|MagicMir | No helper found for module: alert.
                                      0|MagicMir | Initializing new module helper …
                                      0|MagicMir | Module helper loaded: updatenotification
                                      0|MagicMir | No helper found for module: clock.
                                      0|MagicMir | Initializing new module helper …
                                      0|MagicMir | Module helper loaded: calendar
                                      0|MagicMir | No helper found for module: calendar_monthly.
                                      0|MagicMir | Whoops! There was an uncaught exception…
                                      0|MagicMir | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                      0|MagicMir | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                      0|MagicMir | Launching application.

                                      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
                                      0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:711:30)
                                      0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
                                      0|MagicMir | at Module.load (internal/modules/cjs/loader.js:620:32)
                                      0|MagicMir | { Error: Cannot find module ‘del’
                                      0|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                                      0|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                      0|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                                      0|MagicMir | at Module.require (internal/modules/cjs/loader.js:658:17)
                                      0|MagicMir | at require (internal/modules/cjs/helpers.js:20:18)
                                      0|MagicMir | at Object. (/home/pi/MagicMirror/modules/mmm-moon-phases/node_helper.js:3:11)
                                      0|MagicMir | at Object. (/home/pi/MagicMirror/modules/mmm-moon-phases/node_helper.js:39:3)
                                      0|MagicMir | at Module._compile (internal/modules/cjs/loader.js:711:30)
                                      0|MagicMir | at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
                                      0|MagicMir | at Module.load (internal/modules/cjs/loader.js:620:32) code: ‘MODULE_NOT_FOUND’ }
                                      0|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.

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

                                        @panos after you did the git clone, you have to run

                                        npm install
                                        

                                        in the MagicMirror folder
                                        and then

                                        npm install
                                        

                                        in each module folder that has a package.json file…

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        P 1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          panos @sdetweil
                                          last edited by panos

                                          @sdetweil still no luck…:(

                                          pi@raspberrypi:~/MagicMirror $ npm install

                                          magicmirror@2.8.0 install /home/pi/MagicMirror
                                          cd vendor && npm install

                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
                                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm”})

                                          audited 220 packages in 13.958s
                                          found 5 vulnerabilities (4 low, 1 high)
                                          run npm audit fix to fix them, or npm audit for details

                                          magicmirror@2.8.0 postinstall /home/pi/MagicMirror
                                          sh installers/postinstall/postinstall.sh && npm run install-fonts

                                          MagicMirror installation successful!

                                          magicmirror@2.8.0 install-fonts /home/pi/MagicMirror
                                          cd fonts && npm install

                                          audited 1 package in 1.893s
                                          found 0 vulnerabilities

                                          audited 3581 packages in 72.743s
                                          found 44 high severity vulnerabilities
                                          run npm audit fix to fix them, or npm audit for details

                                          When I manually try to launch MagicMirror I get this:

                                          pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

                                          magicmirror@2.8.0 start /home/pi/MagicMirror
                                          sh run-start.sh

                                          Starting MagicMirror: v2.8.0
                                          Loading config …
                                          Loading module helpers …
                                          No helper found for module: alert.
                                          Initializing new module helper …
                                          Module helper loaded: updatenotification
                                          No helper found for module: clock.
                                          Initializing new module helper …
                                          Module helper loaded: calendar
                                          No helper found for module: calendar_monthly.
                                          WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘del’
                                          Loading module helpers …
                                          No helper found for module: alert.
                                          Initializing new module helper …
                                          Module helper loaded: updatenotification
                                          No helper found for module: clock.
                                          Initializing new module helper …
                                          Module helper loaded: calendar
                                          No helper found for module: calendar_monthly.
                                          App threw an error during load
                                          Error: Cannot find module ‘del’
                                          at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                                          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                          at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                                          at Module.require (internal/modules/cjs/loader.js:658:17)
                                          at require (internal/modules/cjs/helpers.js:20:18)
                                          at Object. (/home/pi/MagicMirror/modules/mmm-moon-phases/node_helper.js:3:11)
                                          at Object. (/home/pi/MagicMirror/modules/mmm-moon-phases/node_helper.js:39:3)
                                          at Module._compile (internal/modules/cjs/loader.js:711:30)
                                          at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
                                          at Module.load (internal/modules/cjs/loader.js:620:32)
                                          Whoops! There was an uncaught exception…
                                          { Error: Cannot find module ‘del’
                                          at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                                          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                          at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                                          at Module.require (internal/modules/cjs/loader.js:658:17)
                                          at require (internal/modules/cjs/helpers.js:20:18)
                                          at Object. (/home/pi/MagicMirror/modules/mmm-moon-phases/node_helper.js:3:11)
                                          at Object. (/home/pi/MagicMirror/modules/mmm-moon-phases/node_helper.js:39:3)
                                          at Module._compile (internal/modules/cjs/loader.js:711:30)
                                          at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
                                          at Module.load (internal/modules/cjs/loader.js:620:32) code: ‘MODULE_NOT_FOUND’ }
                                          MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                          If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                          Launching application.

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

                                            ok, one more forceful try

                                            from the MagicMirror folder do

                                            rm -rf node_modules
                                            npm install
                                            

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            P 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