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 12.7k 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.
    • A Offline
      andyyy @sdetweil
      last edited by

      @sdetweil

      Solved for now :)

      I did:

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

      My system is still very fragile. When do npm install after that, the screen turn black after reboot.

      S 2 Replies Last reply Reply Quote 0
      • 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
                          • S Offline
                            sdetweil @bdream
                            last edited by

                            @bdream so you need to go to the
                            MMM-DWD-Pollen folder and do
                            npm install request --save

                            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 I did it but don’t know what to do with these messages :face_with_rolling_eyes:

                              pi@MagicMirror:~/MagicMirror/modules/MMM-DWD-Pollen $  npm install request --save
                              npm WARN EBADENGINE Unsupported engine { package: 'magicmirror@2.16.0',
                              npm WARN EBADENGINE   required: { node: '>=12' },
                              npm WARN EBADENGINE   current: { node: 'v10.23.1', npm: '7.15.1' } }
                              npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jsdoc@35.4.0',
                              npm WARN EBADENGINE   required: { node: '>=12' },
                              npm WARN EBADENGINE   current: { node: 'v10.23.1', npm: '7.15.1' } }
                              npm WARN EBADENGINE Unsupported engine { package: 'jsdoc-type-pratt-parser@1.0.4',
                              npm WARN EBADENGINE   required: { node: '>=12.0.0' },
                              npm WARN EBADENGINE   current: { node: 'v10.23.1', npm: '7.15.1' } }
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                              npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              
                              added 628 packages, and audited 921 packages in 12m
                              
                              110 packages are looking for funding
                                run `npm fund` for details
                              
                              found 0 vulnerabilities
                              
                              

                              –
                              cheers, bdream

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

                                @sdetweil

                                I got electron installed again with specifying a version (sudo npm install electron@6.1.12). No idea, why electron disappeared in the first place.

                                @Fozi

                                The MMM-MyCalender has indeed an issue with 2.16. causing a black screen. And MMM-Fuel is saying “undefined” for an unknown reason. Both modules are disabled for now.

                                My MM boots and shows the all other modules again.

                                With each MM update something crashes, mostly one of the 3rd party modules because one or more dependencies are lost/changed or deleted.

                                Thanks for your help. Great community!

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

                                  @andyyy yeh, version 2.1.6 is on electron 11.4.9

                                  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 see you have npm version 7 installed… causes quite a few problems…

                                    I would fall back to npm 6

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    A 2 Replies Last reply Reply Quote 0
                                    • A Offline
                                      andyyy @sdetweil
                                      last edited by

                                      @sdetweil

                                      How do I revert to npm v6?

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

                                        @andyyy sudo npm install -g npm@6.14.3

                                        you will then have to cleanup from 7

                                        cd ~/MagicMirror
                                        rm -rf node_modules
                                        npm install
                                        

                                        u may have to do the same in any module folder with a package.json file

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil

                                          made it with npm install -g npm@6.14.14.

                                          I still have issues with the default wheater module. The old “currentweather” module works but new default “weather” module just says “loading”.

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

                                            @andyyy I would look in the window where u start mm

                                            npm start or pm2

                                            if pm2, the pm2 logs --lines=100

                                            for any messages

                                            loading is the default output til data arrives.
                                            so it didn’t get the content from the api

                                            is that forecast u are waiting for?
                                            there is a timing issue, workaround with setting
                                            (look it up for exact spelling)
                                            initialLoadDelay:100

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            A 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
                                            • 2 / 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