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.

    Update from 2.15 to 2.16

    Scheduled Pinned Locked Moved Solved Troubleshooting
    35 Posts 5 Posters 9.9k 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 @andyyy
      last edited by sdetweil

      @andyyy said in Update from 2.15 to 2.16:

      the screen turn black after reboot.

      again, this si because libraries in 2.15 were removed in 2.16 and some modules didn’t document their requirements properly…

      find the MM startup messages (npm start or pm2 logs)
      and look for ‘module not found’

      I REALLY hate reset --hard…

      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 @andyyy
        last edited by

        @andyyy I uploaded fixes to the upgrade script to handle this…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 2 Replies Last reply Reply Quote 1
        • B Offline
          bdream
          last edited by

          Hi!
          I did the upgrade to my system to 2.16

          Uploading upgrade.log with 600 lines is not possible… because of file format.

          After reboot I have only the mouse in the middle of the screen but MM is not working.

          Also I’m not able to get a connection wit ma Web-Browser.

          Raspberry itself is accessible via SSH.

          Any idea?

          –
          cheers, bdream

          S FoziF 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @bdream
            last edited by sdetweil

            @bdream yes look at the mm startup messages
            we call this the black screen

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil does it mean I have to do in MagicMirror folder?

              sudo git fetch --all
              sudo git reset --hard origin/master
              sudo git pull origin master
              

              –
              cheers, bdream

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

                @bdream no. u are probably missing some modules that mm removed

                read the startup messages

                npm start
                or
                if using pm2
                pm2 logs --lines=100

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • FoziF Offline
                  Fozi Project Sponsor @bdream
                  last edited by Fozi

                  @bdream I strongly guess that one of the 3rd party modules is not compatible vith MM2.16.0. I had the same issues with MMM-MyCalendar, which caused a black screen after starting MM. My approach is to disable all 3rd party modules by adding the line

                  disabled: true;
                  

                  for each module and enable it one after the other by setting it to

                  disabled: false;
                  

                  Taht might discover quicker, which module is the culprit instead of poking in logs (that is my personal approach!).

                  When you found the module, that causes issues, contact the developer on github, or look for an alternative fork which seems to be maintained.

                  Regarding the above mentioned MMM-MyCalendar module, I reverted to the default calendar module, which works just fine and delivers the same features.

                  HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

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

                    @fozi come on, this is easy. get the messages. it will tell you which lib to install

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      bdream @sdetweil
                      last edited by

                      @sdetweil okay, I’m going to try with messages.

                      pi@MagicMirror:~ $ pm2 logs --lines=100
                      [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
                      :
                      :
                      /home/pi/.pm2/logs/mm-error.log last 100 lines:
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/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:972:15)
                      0|mm       |     at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Module._load (internal/modules/cjs/loader.js:848:27)
                      0|mm       |     at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:1032:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:72:18)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:1152:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
                      0|mm       | [31.07.2021 03:30.08.854] [ERROR] Whoops! There was an uncaught exception...
                      0|mm       | [31.07.2021 03:30.08.865] [ERROR] Error: Cannot find module 'request'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/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:972:15)
                      0|mm       |     at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Module._load (internal/modules/cjs/loader.js:848:27)
                      0|mm       |     at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:1032:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:72:18)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:1152:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) {
                      0|mm       |   code: 'MODULE_NOT_FOUND',
                      0|mm       |   requireStack: [
                      0|mm       |     '/home/pi/MagicMirror/modules/MMM-DWD-Pollen/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       | [31.07.2021 03:30.08.868] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                      0|mm       | [31.07.2021 03:30.08.869] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                      0|mm       | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                      0|mm       | [02.08.2021 08:40.08.979] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/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       | [02.08.2021 08:40.09.001] [ERROR] App threw an error during load
                      0|mm       | [02.08.2021 08:40.09.005] [ERROR] Error: Cannot find module 'request'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/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:972:15)
                      0|mm       |     at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Module._load (internal/modules/cjs/loader.js:848:27)
                      0|mm       |     at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:1032:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:72:18)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:1152:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10)
                      0|mm       | [02.08.2021 08:40.09.007] [ERROR] Whoops! There was an uncaught exception...
                      0|mm       | [02.08.2021 08:40.09.018] [ERROR] Error: Cannot find module 'request'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/MMM-DWD-Pollen/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:972:15)
                      0|mm       |     at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Module._load (internal/modules/cjs/loader.js:848:27)
                      0|mm       |     at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:1032:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:72:18)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-DWD-Pollen/node_helper.js:7:15)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:1152:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173:10) {
                      0|mm       |   code: 'MODULE_NOT_FOUND',
                      0|mm       |   requireStack: [
                      0|mm       |     '/home/pi/MagicMirror/modules/MMM-DWD-Pollen/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       | [02.08.2021 08:40.09.021] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                      0|mm       | [02.08.2021 08:40.09.022] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                      
                      /home/pi/.pm2/logs/mm-out.log last 100 lines:
                      0|mm       | 
                      0|mm       | > magicmirror@2.16.0 start
                      0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                      0|mm       | 
                      0|mm       | [30.07.2021 03:30.08.295] [LOG]   Starting MagicMirror: v2.16.0
                      0|mm       | [30.07.2021 03:30.08.304] [LOG]   Loading config ...
                      :
                      :
                      

                      So it looks to me as MMM-DWD-Pollen will be the problem.
                      That is faster, than going with disabled: true; and disabled: false; over all my modules :crossed_fingers: even it was a guess with the related module to me.

                      @Fozi now i have to see how to deal with your statement “When you found the module, that causes issues, contact the developer on github, or look for an alternative fork which seems to be maintained.”

                      Comment out this module in config and it works again.

                      Many thanks for your fast help!!!

                      –
                      cheers, bdream

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

                        @sdetweil

                        I tried it again. Now the electron does not even start.

                        > magicmirror@2.16.0 start
                        > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                        
                        sh: 1: ./node_modules/.bin/electron: not found
                        

                        I tried to re-install electron with "sudo npm install electron@latest
                        ", but no change.

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