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.

    Error on update to MM 2.11.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    32 Posts 2 Posters 9.1k Views 2 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 @killing joke
      last edited by

      @killing-joke said in Error on update to MM 2.11.0:

      magicmirror@2.11.0

      but u still have 2.11 installed

      so the git pull failed

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil
        funny, but when i go into the MM folder and type “git pull” it says it´s the latest software… (in German)

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

          @killing-joke do

          cd MagicMirror
          git remote -v
          grep version package.json

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil result as followed

            pi@raspberrypi:~/MagicMirror $ git remote -v
            origin	https://github.com/MichMich/MagicMirror.git (fetch)
            origin	https://github.com/MichMich/MagicMirror.git (push)
            pi@raspberrypi:~/MagicMirror $ grep version package.json
              "version": "2.11.0",
            pi@raspberrypi:~/MagicMirror $ 
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @killing joke
              last edited by

              @killing-joke said in Error on update to MM 2.11.0:

              “version”: “2.11.0”,

              definitely NOT the latest

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil please run my script…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil
                  ok, i will do

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

                    @killing-joke please run my script…

                    https://forum.magicmirror.builders/topic/15862/error-on-update-to-mm-2-11-0/9?_=1636915152762

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil

                      pi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                      No LSB modules are available.
                      doing test run = false
                      update log will be in /home/pi/MagicMirror/installers/upgrade.log
                      Check current Node installation ...
                      Node currently installed. Checking version number.
                      Minimum Node version: v14.0.0
                      Installed Node version: v9.11.2
                      Node should be upgraded.
                      A Node process is currently running. Can't upgrade.
                      Please quit all Node processes and restart the installer.
                      pi 813 764 0 19:45 ? 00:00:00 sh -c DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js pi 817 813 0 19:45 ? 00:00:00 node ./node_modules/.bin/electron js/electron.js pi 876 817 0 19:45 ? 00:00:05 /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js pi 882 876 0 19:45 ? 00:00:00 /home/pi/MagicMirror/node_modules/electron/dist/electron --type=zygote pi 968 882 0 19:46 ? 00:00:00 /home/pi/MagicMirror/node_modules/electron/dist/electron --type=zygote pi 1133 876 0 19:46 ? 00:00:00 /home/pi/MagicMirror/node_modules/electron/dist/electron --type=gpu-process --field-trial-handle=16961185687081278422,14233476580341739937,131072 --disable-features=LayoutNG,SpareRendererForSitePerProcess --gpu-preferences=IAAAAAAAAAAgAAAgAAAAAAAAYAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --service-request-channel-token=5596814612634470352 pi 1946 1944 0 20:03 pts/0 00:00:00 grep node
                      
                      

                      how can I end a Node process to try again?

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

                        @killing-joke

                        pm2 stop all

                        then

                        ps -ef | grep node | grep -v color
                        

                        it should return no output

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil

                          pi@raspberrypi:~/MagicMirror $ pm2 stop all
                          [PM2] Applying action stopProcessId on app [all](ids: 0)
                          [PM2] [MagicMirror](0) ✓
                          ┌─────────────┬────┬──────┬─────┬─────────┬─────────┬────────┬─────┬────────┬──────┬──────────┐
                          │ App name    │ id │ mode │ pid │ status  │ restart │ uptime │ cpu │ mem    │ user │ watching │
                          ├─────────────┼────┼──────┼─────┼─────────┼─────────┼────────┼─────┼────────┼──────┼──────────┤
                          │ MagicMirror │ 0  │ fork │ 0   │ stopped │ 0       │ 0      │ 0%  │ 0 B    │ pi   │ disabled │
                          └─────────────┴────┴──────┴─────┴─────────┴─────────┴────────┴─────┴────────┴──────┴──────────┘
                           Use `pm2 show <id|name>` to get more details about an app
                          pi@raspberrypi:~/MagicMirror $ ps -ef | grep node | grep -v color
                          pi@raspberrypi:~/MagicMirror $ 
                          
                          
                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @killing joke
                            last edited by

                            @killing-joke ok, now run my script again

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @sdetweil
                              I did.
                              afterwards “npm start” but with a black screen of my MM.

                              But I need to rest for today… tomorrow is another day to have fun with it!
                              Thanks for today

                              pi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                              No LSB modules are available.
                              doing test run = false
                              update log will be in /home/pi/MagicMirror/installers/upgrade.log
                              Check current Node installation ...
                              Node currently installed. Checking version number.
                              Minimum Node version: v14.0.0
                              Installed Node version: v9.11.2
                              Node should be upgraded.
                              Installing Node.js ...
                              gpg: WARNING: unsafe ownership on homedir '/home/pi/.gnupg'
                              Paketlisten werden gelesen... Fertig
                              Abhängigkeitsbaum wird aufgebaut.       
                              Statusinformationen werden eingelesen.... Fertig
                              Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                                realpath
                              Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                              Die folgenden Pakete werden aktualisiert (Upgrade):
                                nodejs
                              1 aktualisiert, 0 neu installiert, 0 zu entfernen und 14 nicht aktualisiert.
                              Es müssen 23,0 MB an Archiven heruntergeladen werden.
                              Nach dieser Operation werden 57,2 MB Plattenplatz zusätzlich benutzt.
                              Holen:1 https://deb.nodesource.com/node_14.x stretch/main armhf nodejs armhf 14.18.1-1nodesource1 [23,0 MB]
                              Es wurden 23,0 MB in 5 s geholt (4.587 kB/s).
                              apt-listchanges: Lese Changelogs...
                              (Lese Datenbank ... 123797 Dateien und Verzeichnisse sind derzeit installiert.)
                              Vorbereitung zum Entpacken von .../nodejs_14.18.1-1nodesource1_armhf.deb ...
                              Detected old npm client, removing...
                              Entpacken von nodejs (14.18.1-1nodesource1) über (9.11.2-1nodesource1) ...
                              nodejs (14.18.1-1nodesource1) wird eingerichtet ...
                              Trigger für man-db (2.7.6.1-2) werden verarbeitet ...
                              node version is
                              Node.js installation Done! version=v14.18.1
                              Check current NPM installation ...
                              NPM currently installed. Checking version number.
                              Minimum npm version: V6.0.0
                              Installed npm version: V6.14.15
                              No npm upgrade necessary.
                              
                              upgrading from version 2.11.0 to 2.17.1
                              fetching latest revisions
                              there are 5 local files that are different than the master repo
                              
                                 fonts/package-lock.json
                                 modules/default/calendar/calendar.js
                                 package-lock.json
                                 package.json
                                 vendor/package-lock.json
                              
                              any *-lock.json files do not need to be saved
                              do you want to save these files for later   (Y/n)?y
                              updating MagicMirror runtime, please wait
                              npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/aws4
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/bowser
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet-csp
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/minimist
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/mkdirp
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/p-limit
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/yargs-parser
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/yargs
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/moment
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request/node_modules/tough-cookie
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimstart
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimleft
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/es-abstract
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimend
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimright
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/p-limit
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/yargs-parser
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/yargs
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/express-ipfilter
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/grunt-markdownlint
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/simple-git
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/es-abstract/node_modules
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet/node_modules
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request/node_modules
                              npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/simple-git/node_modules
                              npm ERR! code EACCES
                              npm ERR! syscall access
                              npm ERR! path /home/pi/MagicMirror/node_modules/aws4
                              npm ERR! errno -13
                              npm ERR! Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/aws4'
                              npm ERR!  [Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/aws4'] {
                              npm ERR!   errno: -13,
                              npm ERR!   code: 'EACCES',
                              npm ERR!   syscall: 'access',
                              npm ERR!   path: '/home/pi/MagicMirror/node_modules/aws4'
                              npm ERR! }
                              npm ERR! 
                              npm ERR! The operation was rejected by your operating system.
                              npm ERR! It is likely you do not have the permissions to access this file as the current user
                              npm ERR! 
                              npm ERR! If you believe this might be a permissions issue, please double-check the
                              npm ERR! permissions of the file and its containing directories, or try running
                              npm ERR! the command again as root/Administrator.
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/pi/.npm/_logs/2021-11-14T19_31_28_554Z-debug.log
                              Checking for modules with removed libraries
                               
                              	  package.json not found for module MMM-SunRiseSet
                              adding package.json for module MMM-SunRiseSet
                               
                              	 require for request in module MMM-SunRiseSet not found in package.json package.json for module MMM-SunRiseSet
                              installing request for module MMM-SunRiseSet
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                               
                              	 require for request in module MMM-AVStock not found in package.json package.json for module MMM-AVStock
                              installing request for module MMM-AVStock
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              processing dependency changes for active modules with package.json files
                              
                              processing for module MMM-Carousel please wait
                              ----------------------------------
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                              up to date in 0.732s
                              found 0 vulnerabilities
                              
                              processing complete for module MMM-Carousel
                              
                              processing for module MMM-DWD-WarnWeather please wait
                              ----------------------------------
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                              added 47 packages from 58 contributors and audited 47 packages in 6.397s
                              
                              2 packages are looking for funding
                                run `npm fund` for details
                              
                              found 0 vulnerabilities
                              
                              processing complete for module MMM-DWD-WarnWeather
                              
                              processing for module MMM-SunRiseSet please wait
                              ----------------------------------
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                              added 47 packages from 58 contributors and audited 47 packages in 6.702s
                              
                              2 packages are looking for funding
                                run `npm fund` for details
                              
                              found 0 vulnerabilities
                              
                              processing complete for module MMM-SunRiseSet
                              
                              processing for module MMM-AVStock please wait
                              ----------------------------------
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                              added 53 packages from 62 contributors and audited 54 packages in 11.297s
                              
                              2 packages are looking for funding
                                run `npm fund` for details
                              
                              found 0 vulnerabilities
                              
                              processing complete for module MMM-AVStock
                              
                              processing for module MMM-Fuel please wait
                              ----------------------------------
                              npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown
                              npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
                              npm notice created a lockfile as package-lock.json. You should commit this file.
                              added 464 packages from 298 contributors and audited 464 packages in 84.828s
                              
                              101 packages are looking for funding
                                run `npm fund` for details
                              
                              found 6 moderate severity vulnerabilities
                                run `npm audit fix` to fix them, or `npm audit` for details
                              processing complete for module MMM-Fuel
                              
                              we stashed a set of files that appear changed from the latest repo versions. you should review them
                              see installers/stashed_files for the list
                              
                              you can use git checkout stash@{0} -- filename to extract one file from the stash
                              
                              or git stash pop to restore them all
                              
                              WARNING..
                              WARNING.. either will overlay the file just installed by the update
                              WARNING..
                              pi@raspberrypi:~/MagicMirror $ npm start
                              
                              > magicmirror@2.17.1 start /home/pi/MagicMirror
                              > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                              
                              [2021-11-14 20:35:10.378] [LOG]    Starting MagicMirror: v2.17.1
                              [2021-11-14 20:35:10.425] [LOG]    Loading config ...
                              [2021-11-14 20:35:10.441] [LOG]    Loading module helpers ...
                              [2021-11-14 20:35:10.451] [LOG]    No helper found for module: MMM-Carousel.
                              [2021-11-14 20:35:10.454] [LOG]    No helper found for module: alert.
                              [2021-11-14 20:35:10.494] [LOG]    Initializing new module helper ...
                              [2021-11-14 20:35:10.496] [LOG]    Module helper loaded: updatenotification
                              [2021-11-14 20:35:10.500] [LOG]    No helper found for module: clock.
                              [2021-11-14 20:35:10.628] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node-ical'
                              Require stack:
                              - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                              - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                              - /home/pi/MagicMirror/js/app.js
                              - /home/pi/MagicMirror/js/electron.js
                              - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                              - 
                              [2021-11-14 20:35:10.630] [LOG]    Loading module helpers ...
                              [2021-11-14 20:35:10.631] [LOG]    No helper found for module: MMM-Carousel.
                              [2021-11-14 20:35:10.632] [LOG]    No helper found for module: alert.
                              [2021-11-14 20:35:10.634] [LOG]    Initializing new module helper ...
                              [2021-11-14 20:35:10.634] [LOG]    Module helper loaded: updatenotification
                              [2021-11-14 20:35:10.635] [LOG]    No helper found for module: clock.
                              [2021-11-14 20:35:10.640] [ERROR]  App threw an error during load
                              [2021-11-14 20:35:10.642] [ERROR]  Error: Cannot find module 'node-ical'
                              Require stack:
                              - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                              - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                              - /home/pi/MagicMirror/js/app.js
                              - /home/pi/MagicMirror/js/electron.js
                              - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                              - 
                                  at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                  at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                  at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                  at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                  at Module.require (internal/modules/cjs/loader.js:685:19)
                                  at require (internal/modules/cjs/helpers.js:16:16)
                                  at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:10:14)
                                  at Module._compile (internal/modules/cjs/loader.js:786:30)
                                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                                  at Module.load (internal/modules/cjs/loader.js:645:32)
                              [2021-11-14 20:35:10.645] [ERROR]  Whoops! There was an uncaught exception...
                              [2021-11-14 20:35:10.646] [ERROR]  Error: Cannot find module 'node-ical'
                              Require stack:
                              - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                              - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                              - /home/pi/MagicMirror/js/app.js
                              - /home/pi/MagicMirror/js/electron.js
                              - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                              - 
                                  at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                                  at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                                  at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                  at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                                  at Module.require (internal/modules/cjs/loader.js:685:19)
                                  at require (internal/modules/cjs/helpers.js:16:16)
                                  at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:10:14)
                                  at Module._compile (internal/modules/cjs/loader.js:786:30)
                                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                                  at Module.load (internal/modules/cjs/loader.js:645:32) {
                                code: 'MODULE_NOT_FOUND',
                                requireStack: [
                                  '/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js',
                                  '/home/pi/MagicMirror/modules/default/calendar/node_helper.js',
                                  '/home/pi/MagicMirror/js/app.js',
                                  '/home/pi/MagicMirror/js/electron.js',
                                  '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
                                  undefined
                                ]
                              }
                              [2021-11-14 20:35:10.659] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                              [2021-11-14 20:35:10.660] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                              Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
                              [2021-11-14 20:35:11.331] [LOG]    Launching application.
                              [2021-11-14 20:37:36.856] [LOG]    Shutting down server...
                              [2021-11-14 20:37:36.862] [LOG]    Stopping module helper: updatenotification
                              [2021-11-14 20:37:36.864] [LOG]    Stopping module helper: updatenotification
                              [2021-11-14 20:37:36.865] [ERROR]  Whoops! There was an uncaught exception...
                              [2021-11-14 20:37:36.866] [ERROR]  TypeError: Cannot read property 'close' of undefined
                                  at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
                                  at App.<anonymous> (/home/pi/MagicMirror/js/electron.js:139:7)
                                  at App.emit (events.js:200:13)
                                  at Object.exports.execute (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu-item-roles.js:286:23)
                                  at MenuItem.click (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu-item.js:46:20)
                                  at Function.executeCommand (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:32:17)
                              [2021-11-14 20:37:36.870] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                              [2021-11-14 20:37:36.871] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                              [2021-11-14 20:37:38.262] [LOG]    Shutting down server...
                              [2021-11-14 20:37:38.265] [LOG]    Stopping module helper: updatenotification
                              [2021-11-14 20:37:38.266] [LOG]    Stopping module helper: updatenotification
                              [2021-11-14 20:37:38.268] [ERROR]  Whoops! There was an uncaught exception...
                              [2021-11-14 20:37:38.269] [ERROR]  TypeError: Cannot read property 'close' of undefined
                                  at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
                                  at App.<anonymous> (/home/pi/MagicMirror/js/electron.js:139:7)
                                  at App.emit (events.js:200:13)
                                  at Object.exports.execute (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu-item-roles.js:286:23)
                                  at MenuItem.click (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu-item.js:46:20)
                                  at Function.executeCommand (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:32:17)
                              [2021-11-14 20:37:38.271] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                              [2021-11-14 20:37:38.272] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                              [2021-11-14 20:37:39.822] [LOG]    Shutting down server...
                              [2021-11-14 20:37:39.823] [LOG]    Stopping module helper: updatenotification
                              [2021-11-14 20:37:39.824] [LOG]    Stopping module helper: updatenotification
                              [2021-11-14 20:37:39.826] [ERROR]  Whoops! There was an uncaught exception...
                              [2021-11-14 20:37:39.827] [ERROR]  TypeError: Cannot read property 'close' of undefined
                                  at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
                                  at App.<anonymous> (/home/pi/MagicMirror/js/electron.js:139:7)
                                  at App.emit (events.js:200:13)
                                  at Object.exports.execute (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu-item-roles.js:286:23)
                                  at MenuItem.click (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu-item.js:46:20)
                                  at Function.executeCommand (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/browser/api/menu.js:32:17)
                              [2021-11-14 20:37:39.829] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                              [2021-11-14 20:37:39.830] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                              pi@raspberrypi:~/MagicMirror $ 
                              
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @killing joke
                                last edited by

                                @killing-joke crazy

                                cd ~/MagicMirror
                                sudo rm -rf node_modules
                                

                                the update didn’t work (write access) almost like someone did sudo npm install at one time.

                                run my script again

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @sdetweil I did the described code

                                  sudo rm -rf node_modules
                                  

                                  and run your script again. The result as followed…

                                  pi@raspberrypi:~ $ sudo rm -rf node_modules
                                  pi@raspberrypi:~ $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                                  No LSB modules are available.
                                  doing test run = false
                                  update log will be in /home/pi/MagicMirror/installers/upgrade.log
                                  Check current Node installation ...
                                  Node currently installed. Checking version number.
                                  Minimum Node version: v14.0.0
                                  Installed Node version: v14.18.1
                                  No Node.js upgrade necessary.
                                  Check current NPM installation ...
                                  NPM currently installed. Checking version number.
                                  Minimum npm version: V6.0.0
                                  Installed npm version: V6.14.15
                                  No npm upgrade necessary.
                                  
                                  upgrading from version 2.17.1 to 2.17.1
                                  fetching latest revisions
                                  updating MagicMirror runtime, please wait
                                  npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/aws4
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/bowser
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet-csp
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/minimist
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/mkdirp
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/p-limit
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/yargs-parser
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules/yargs
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/moment
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request/node_modules/tough-cookie
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimstart
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimleft
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/es-abstract
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimend
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/string.prototype.trimright
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/p-limit
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/yargs-parser
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/yargs-unparser/node_modules/yargs
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/express-ipfilter
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/grunt-markdownlint
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/simple-git
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/es-abstract/node_modules
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/helmet/node_modules
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/mocha/node_modules
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/request/node_modules
                                  npm WARN checkPermissions Missing write access to /home/pi/MagicMirror/node_modules/simple-git/node_modules
                                  npm ERR! code EACCES
                                  npm ERR! syscall access
                                  npm ERR! path /home/pi/MagicMirror/node_modules/aws4
                                  npm ERR! errno -13
                                  npm ERR! Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/aws4'
                                  npm ERR!  [Error: EACCES: permission denied, access '/home/pi/MagicMirror/node_modules/aws4'] {
                                  npm ERR!   errno: -13,
                                  npm ERR!   code: 'EACCES',
                                  npm ERR!   syscall: 'access',
                                  npm ERR!   path: '/home/pi/MagicMirror/node_modules/aws4'
                                  npm ERR! }
                                  npm ERR! 
                                  npm ERR! The operation was rejected by your operating system.
                                  npm ERR! It is likely you do not have the permissions to access this file as the current user
                                  npm ERR! 
                                  npm ERR! If you believe this might be a permissions issue, please double-check the
                                  npm ERR! permissions of the file and its containing directories, or try running
                                  npm ERR! the command again as root/Administrator.
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /home/pi/.npm/_logs/2021-11-17T21_23_10_794Z-debug.log
                                  Checking for modules with removed libraries
                                  processing dependency changes for active modules with package.json files
                                  
                                  processing for module MMM-Carousel please wait
                                  ----------------------------------
                                  npm notice created a lockfile as package-lock.json. You should commit this file.
                                  up to date in 1.262s
                                  found 0 vulnerabilities
                                  
                                  processing complete for module MMM-Carousel
                                  
                                  processing for module MMM-DWD-WarnWeather please wait
                                  ----------------------------------
                                  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                  npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                  npm notice created a lockfile as package-lock.json. You should commit this file.
                                  added 47 packages from 58 contributors and audited 47 packages in 7.638s
                                  
                                  2 packages are looking for funding
                                    run `npm fund` for details
                                  
                                  found 0 vulnerabilities
                                  
                                  processing complete for module MMM-DWD-WarnWeather
                                  
                                  processing for module MMM-SunRiseSet please wait
                                  ----------------------------------
                                  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                  npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                  npm notice created a lockfile as package-lock.json. You should commit this file.
                                  added 47 packages from 58 contributors and audited 47 packages in 6.311s
                                  
                                  2 packages are looking for funding
                                    run `npm fund` for details
                                  
                                  found 0 vulnerabilities
                                  
                                  processing complete for module MMM-SunRiseSet
                                  
                                  processing for module MMM-AVStock please wait
                                  ----------------------------------
                                  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                  npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
                                  npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                  npm notice created a lockfile as package-lock.json. You should commit this file.
                                  added 53 packages from 62 contributors and audited 54 packages in 9.551s
                                  
                                  2 packages are looking for funding
                                    run `npm fund` for details
                                  
                                  found 0 vulnerabilities
                                  
                                  processing complete for module MMM-AVStock
                                  
                                  processing for module MMM-Fuel please wait
                                  ----------------------------------
                                  npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown
                                  npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
                                  npm notice created a lockfile as package-lock.json. You should commit this file.
                                  added 464 packages from 298 contributors and audited 464 packages in 67.606s
                                  
                                  101 packages are looking for funding
                                    run `npm fund` for details
                                  
                                  found 6 moderate severity vulnerabilities
                                    run `npm audit fix` to fix them, or `npm audit` for details
                                  processing complete for module MMM-Fuel
                                  
                                  pi@raspberrypi:~ $ 
                                  
                                  

                                  “npm start” gives me the following error code

                                  pi@raspberrypi:~ $ npm start
                                  npm ERR! code ENOENT
                                  npm ERR! syscall open
                                  npm ERR! path /home/pi/package.json
                                  npm ERR! errno -2
                                  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/2021-11-17T21_27_04_499Z-debug.log
                                  pi@raspberrypi:~ $ 
                                  
                                  

                                  I don´t have a folder named “.npm” to show the logs. Is it a hidden folder?

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

                                    @killing-joke you need to be IN the MagicMirror folder to do npm start

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    K 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @killing joke
                                      last edited by

                                      @killing-joke but u missed a step right at the beginning

                                      cd ~/MagicMirror
                                      

                                      so u didn’t erase the bad folder which is causing all the problems

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

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

                                        @sdetweil said in Error on update to MM 2.11.0:

                                        @killing-joke you need to be IN the MagicMirror folder to do npm start

                                        Oh my gosh, same mistake twice a week? Shame on me!!!

                                        Did as described before (but IN the correct folder now) :beaming_face_with_smiling_eyes:

                                        pi@raspberrypi:~ $ cd ~/MagicMirror
                                        pi@raspberrypi:~/MagicMirror $ sudo rm -rf node_modulespi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                                        No LSB modules are available.
                                        doing test run = false
                                        update log will be in /home/pi/MagicMirror/installers/upgrade.log
                                        Check current Node installation ...
                                        Node currently installed. Checking version number.
                                        Minimum Node version: v14.0.0
                                        Installed Node version: v14.18.1
                                        No Node.js upgrade necessary.
                                        Check current NPM installation ...
                                        NPM currently installed. Checking version number.
                                        Minimum npm version: V6.0.0
                                        Installed npm version: V6.14.15
                                        No npm upgrade necessary.
                                        
                                        (23) Failed writing body
                                        upgrading from version 2.17.1 to 2.17.1
                                        fetching latest revisions
                                        updating MagicMirror runtime, please wait
                                        npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
                                        
                                        > core-js@3.15.2 postinstall /home/pi/MagicMirror/node_modules/core-js
                                        > node -e "try{require('./postinstall')}catch(e){}"
                                        
                                        Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
                                        
                                        The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
                                        > https://opencollective.com/core-js 
                                        > https://www.patreon.com/zloirock 
                                        
                                        Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
                                        
                                        
                                        > electron@13.5.1 postinstall /home/pi/MagicMirror/node_modules/electron
                                        > node install.js
                                        
                                        
                                        > magicmirror@2.17.1 install /home/pi/MagicMirror
                                        > echo "Installing vendor files ...
                                        " && cd vendor && npm install --loglevel=error
                                        
                                        Installing vendor files ...
                                        
                                        audited 9 packages in 1.163s
                                        found 0 vulnerabilities
                                        
                                        
                                        > magicmirror@2.17.1 postinstall /home/pi/MagicMirror
                                        > npm run install-fonts && echo "MagicMirror installation finished successfully! 
                                        "
                                        
                                        
                                        > magicmirror@2.17.1 install-fonts /home/pi/MagicMirror
                                        > echo "Installing fonts ...
                                        " && cd fonts && npm install --loglevel=error
                                        
                                        Installing fonts ...
                                        
                                        audited 1 package in 1.367s
                                        found 0 vulnerabilities
                                        
                                        MagicMirror installation finished successfully! 
                                        
                                        added 294 packages from 243 contributors and audited 918 packages in 94.737s
                                        
                                        20 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        found 0 vulnerabilities
                                        
                                        Checking for modules with removed libraries
                                        processing dependency changes for active modules with package.json files
                                        
                                        processing for module MMM-Carousel please wait
                                        ----------------------------------
                                        npm notice created a lockfile as package-lock.json. You should commit this file.
                                        up to date in 0.782s
                                        found 0 vulnerabilities
                                        
                                        processing complete for module MMM-Carousel
                                        
                                        processing for module MMM-DWD-WarnWeather please wait
                                        ----------------------------------
                                        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                        npm notice created a lockfile as package-lock.json. You should commit this file.
                                        added 47 packages from 58 contributors and audited 47 packages in 9.188s
                                        
                                        2 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        found 0 vulnerabilities
                                        
                                        processing complete for module MMM-DWD-WarnWeather
                                        
                                        processing for module MMM-SunRiseSet please wait
                                        ----------------------------------
                                        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                        npm notice created a lockfile as package-lock.json. You should commit this file.
                                        added 47 packages from 58 contributors and audited 47 packages in 6.346s
                                        
                                        2 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        found 0 vulnerabilities
                                        
                                        processing complete for module MMM-SunRiseSet
                                        
                                        processing for module MMM-AVStock please wait
                                        ----------------------------------
                                        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                                        npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
                                        npm notice created a lockfile as package-lock.json. You should commit this file.
                                        added 53 packages from 62 contributors and audited 54 packages in 9.937s
                                        
                                        2 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        found 0 vulnerabilities
                                        
                                        processing complete for module MMM-AVStock
                                        
                                        processing for module MMM-Fuel please wait
                                        ----------------------------------
                                        npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown
                                        npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
                                        npm notice created a lockfile as package-lock.json. You should commit this file.
                                        added 464 packages from 298 contributors and audited 464 packages in 72.299s
                                        
                                        101 packages are looking for funding
                                          run `npm fund` for details
                                        
                                        found 6 moderate severity vulnerabilities
                                          run `npm audit fix` to fix them, or `npm audit` for details
                                        processing complete for module MMM-Fuel
                                        
                                        pi@raspberrypi:~/MagicMirror $ 
                                        
                                        

                                        npm start works fine, but two more questions:

                                        • What should I do with the 6 moderate severity vulnerabilities? (last block of the code)
                                        • how should I update my MM or the modules in future?

                                        Thank you very much for your help / support!!!

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

                                          @killing-joke said in Error on update to MM 2.11.0:

                                          What should I do with the 6 moderate severity vulnerabilities? (last block of the code)

                                          nothing you can do… not our code

                                          how should I update my MM or the modules in future?

                                          MM run my upgarde script

                                          modules, u have to go to each module folder that NEEDS update and do

                                          git pull 
                                          

                                          IF the module has a package.json file then also do , IN the module folder,

                                          rm -rf node_modules
                                          npm install
                                          

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

                                            @killing-joke said in Error on update to MM 2.11.0:

                                            /home/pi/MagicMirror/installers/upgrade.log

                                            can u send the log file to me via email, same userid at gmail…

                                            I want to look at the one error reported

                                            (23) Failed writing body
                                            

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 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