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 to v2.9.0 fail

    Scheduled Pinned Locked Moved Solved Troubleshooting
    48 Posts 3 Posters 12.7k Views 3 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.
    • B Offline
      bdream
      last edited by

      @sdetweil said in Update to v2.9.0 fail:

      if u can

      Got it

      Upgrade started - Mi Okt 16 20:03:22 CEST 2019
      user requested to apply changes
      doing test run = false
      
      saving custom.css
      not english or locale not set, set git alias
      alias egrep='egrep --color=auto'
      alias fgrep='fgrep --color=auto'
      alias git='LC_ALL=en_US.UTF-8 git'
      alias grep='grep --color=auto'
      alias ls='ls --color=auto'
      remote name = origin
      local version 2.9.0 already same as master 2.9.0
      restoring custom.css
      removing git alias
      Upgrade ended - Mi Okt 16 20:03:22 CEST 2019
      

      there is no statement about the package-lock.json where I added spaces and saved it.

      Seems it works fine :grinning_face_with_smiling_eyes:

      One question I have now.
      Would it make sense changing the guide for update MM using your script instead of git pull && npm install?
      Or is this only a option in case of failure?

      –
      cheers, bdream

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

        @bdream said in Update to v2.9.0 fail:

        local version 2.9.0 already same as master 2.9.0
        restoring custom.css

        if you do apply, then if the versions are the same, it just exits… if you use force then it keeps going…

        try with force instead of apply

        … once we get this tested I will submit to add to the product… u are helping me test… and I thank you very much!!

        i have 3 scripts.
        1 updated installer
        2 new updater
        3 one for fixing pm2 without having to do installer

        will submit them all

        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 said in Update to v2.9.0 fail:

          try with force instead of apply

          Interesting. Now I get 2 package-lock.json listed…

          pi@MagicMirror:~/MagicMirror $  bash -c -i  "$(curl -sL https://www.dropbox.com/s/lxzwyzohg61sppu/upgrade-script.sh?dl=0)" force
          doing test run = false
          update log will be in /home/pi/MagicMirror/installers/upgrade.log
          
          saving custom.css
          upgrading from version 2.9.0 to 2.9.0
          fetching latest revisions
          there are 2 local files that are different than the master repo
          
             package-lock.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
          git: 'git_user_name' ist kein Git-Befehl. Siehe 'git --help'.
          updating MagicMirror runtime, please wait
          
          > [email protected] install /home/pi/MagicMirror
          > cd vendor && npm install
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          
          audited 220 packages in 23.225s
          found 5 vulnerabilities (4 low, 1 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          
          > [email protected] postinstall /home/pi/MagicMirror
          > sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts
          
          MagicMirror installation successful!
          
          > [email protected] install-fonts /home/pi/MagicMirror
          > cd fonts && npm install
          
          audited 1 package in 0.999s
          found 0 vulnerabilities
          
          npm WARN [email protected] requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN [email protected] requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself.
          
          audited 3475 packages in 88.305s
          found 28 vulnerabilities (1 low, 1 moderate, 26 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          processing dependency changes for active modules with package.json files
          
          processing for module MMM-Carousel please wait
          ----------------------------------
          audited 859 packages in 16.958s
          found 2 high severity vulnerabilities
            run `npm audit fix` to fix them, or `npm audit` for details
          processing complete for module MMM-Carousel
          
          processing for module MMM-PublicTransportHafas please wait
          ----------------------------------
          audited 41 packages in 2.814s
          found 0 vulnerabilities
          
          processing complete for module MMM-PublicTransportHafas
          
          processing for module MMM-PublicTransportHafas please wait
          ----------------------------------
          audited 41 packages in 3.741s
          found 0 vulnerabilities
          
          processing complete for module MMM-PublicTransportHafas
          
          processing for module MMM-PublicTransportHafas please wait
          ----------------------------------
          audited 41 packages in 3.333s
          found 0 vulnerabilities
          
          processing complete for module MMM-PublicTransportHafas
          
          restoring custom.css
          we stashed a set of files that appear changed from the latest repo versions. you should review them
          Keine Stash-Einträge gefunden.
          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..
          

          and the log:

          
          Upgrade started - Mi Okt 16 20:15:10 CEST 2019
          user requested to force apply changes
          doing test run = false
          
          saving custom.css
          not english or locale not set, set git alias
          alias egrep='egrep --color=auto'
          alias fgrep='fgrep --color=auto'
          alias git='LC_ALL=en_US.UTF-8 git'
          alias grep='grep --color=auto'
          alias ls='ls --color=auto'
          remote name = origin
          upgrading from version 2.9.0 to 2.9.0
          fetching latest revisions
          current branch = master
          Auf Branch master
          Ihr Branch ist auf demselben Stand wie 'origin/master'.
          
          Zum Commit vorgemerkte Änderungen:
            (benutzen Sie "git reset HEAD <Datei>..." zum Entfernen aus der Staging-Area)
          
          	gelöscht:       css/custom.css
          
          Änderungen, die nicht zum Commit vorgemerkt sind:
            (benutzen Sie "git add <Datei>...", um die Änderungen zum Commit vorzumerken)
            (benutzen Sie "git checkout -- <Datei>...", um die Änderungen im Arbeitsverzeichnis zu verwerfen)
          
          	geändert:       package-lock.json
          	geändert:       vendor/package-lock.json
          
          Unversionierte Dateien:
            (benutzen Sie "git add <Datei>...", um die Änderungen zum Commit vorzumerken)
          
          	$
          	%logfile
          	core
          	css/save_custom.css
          	installers/dumpactivemodules.js
          	installers/pm2_MagicMirror_new.json
          	installers/stashed_files
          	mm.sh
          	nohup.out
          
          there are 2 local files that are different than the master repo
          
             package-lock.json
             vendor/package-lock.json
          
          save/restore files selection = y
          test merge result rc='' , if empty, no conflicts
          executing merge, apply specified
          merge result rc= 0
           Already up to date.
          processor architecture is armv7l
          updating MagicMirror runtime, please wait
          
          > [email protected] install /home/pi/MagicMirror
          > cd vendor && npm install
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          
          audited 220 packages in 23.225s
          found 5 vulnerabilities (4 low, 1 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          
          > [email protected] postinstall /home/pi/MagicMirror
          > sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts
          
          MagicMirror installation successful!
          
          > [email protected] install-fonts /home/pi/MagicMirror
          > cd fonts && npm install
          
          audited 1 package in 0.999s
          found 0 vulnerabilities
          
          npm WARN [email protected] requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN [email protected] requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself.
          
          audited 3475 packages in 88.305s
          found 28 vulnerabilities (1 low, 1 moderate, 26 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          
          processing dependency changes for active modules with package.json files
          processing for module MMM-Carousel please wait
          ----------------------------------
          audited 859 packages in 16.958s
          found 2 high severity vulnerabilities
            run `npm audit fix` to fix them, or `npm audit` for details
          processing complete for module MMM-Carousel
          processing for module MMM-PublicTransportHafas please wait
          ----------------------------------
          audited 41 packages in 2.814s
          found 0 vulnerabilities
          
          processing complete for module MMM-PublicTransportHafas
          processing for module MMM-PublicTransportHafas please wait
          ----------------------------------
          audited 41 packages in 3.741s
          found 0 vulnerabilities
          
          processing complete for module MMM-PublicTransportHafas
          processing for module MMM-PublicTransportHafas please wait
          ----------------------------------
          audited 41 packages in 3.333s
          found 0 vulnerabilities
          
          processing complete for module MMM-PublicTransportHafas
          restoring custom.css
          removing git alias
          we stashed a set of files that appear changed from the latest repo versions. you should review them
          Upgrade ended - Mi Okt 16 20:17:37 CEST 2019
          
          

          –
          cheers, bdream

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

            @bdream cool… don’t know why we got the german there… issued same command back to back, one to log, one to script…

            log one came out in german
            script one came out in english

            fixed a bug, which should have said

            any *-lock.json files do not need to be saved"
            

            that is all u had, so you would have selected n, instead of y

            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 said in Update to v2.9.0 fail:

              that is all u had, so you would have selected n, instead of y

              Sorry, is this I have to run script again and select n instead of yes?

              –
              cheers, bdream

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

                @bdream if you have edited the package-lock.json file

                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 said in Update to v2.9.0 fail:

                  if you have edited the package-lock.json file

                  reedited and run script

                  pi@MagicMirror:~/MagicMirror $  bash -c -i  "$(curl -sL https://www.dropbox.com/s/lxzwyzohg61sppu/upgrade-script.sh?dl=0)" force
                  doing test run = false
                  update log will be in /home/pi/MagicMirror/installers/upgrade.log
                  
                  saving custom.css
                  upgrading from version 2.9.0 to 2.9.0
                  fetching latest revisions
                  there are 2 local files that are different than the master repo
                  
                     package-lock.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)?n
                  updating MagicMirror runtime, please wait
                  
                  > [email protected] install /home/pi/MagicMirror
                  > cd vendor && npm install
                  
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                  
                  audited 220 packages in 13.98s
                  found 5 vulnerabilities (4 low, 1 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  > [email protected] postinstall /home/pi/MagicMirror
                  > sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts
                  
                  MagicMirror installation successful!
                  
                  > [email protected] install-fonts /home/pi/MagicMirror
                  > cd fonts && npm install
                  
                  audited 1 package in 1.385s
                  found 0 vulnerabilities
                  
                  npm WARN [email protected] requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
                  npm WARN [email protected] requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself.
                  
                  updated 1 package and audited 3475 packages in 106.649s
                  found 28 vulnerabilities (1 low, 1 moderate, 26 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  processing dependency changes for active modules with package.json files
                  
                  processing for module MMM-Carousel please wait
                  ----------------------------------
                  audited 859 packages in 13.644s
                  found 2 high severity vulnerabilities
                    run `npm audit fix` to fix them, or `npm audit` for details
                  processing complete for module MMM-Carousel
                  
                  processing for module MMM-PublicTransportHafas please wait
                  ----------------------------------
                  audited 41 packages in 3.408s
                  found 0 vulnerabilities
                  
                  processing complete for module MMM-PublicTransportHafas
                  
                  processing for module MMM-PublicTransportHafas please wait
                  ----------------------------------
                  audited 41 packages in 2.67s
                  found 0 vulnerabilities
                  
                  processing complete for module MMM-PublicTransportHafas
                  
                  processing for module MMM-PublicTransportHafas please wait
                  ----------------------------------
                  audited 41 packages in 3.904s
                  found 0 vulnerabilities
                  
                  processing complete for module MMM-PublicTransportHafas
                  
                  restoring custom.css
                  

                  upgrade.log

                  
                  Upgrade started - Mi Okt 16 22:11:36 CEST 2019
                  user requested to force apply changes
                  doing test run = false
                  
                  saving custom.css
                  not english or locale not set, set git alias
                  remote name = origin
                  upgrading from version 2.9.0 to 2.9.0
                  fetching latest revisions
                  current branch = master
                  Auf Branch master
                  Ihr Branch ist auf demselben Stand wie 'origin/master'.
                  
                  Zum Commit vorgemerkte Änderungen:
                    (benutzen Sie "git reset HEAD <Datei>..." zum Entfernen aus der Staging-Area)
                  
                  	gelöscht:       css/custom.css
                  
                  Änderungen, die nicht zum Commit vorgemerkt sind:
                    (benutzen Sie "git add <Datei>...", um die Änderungen zum Commit vorzumerken)
                    (benutzen Sie "git checkout -- <Datei>...", um die Änderungen im Arbeitsverzeichnis zu verwerfen)
                  
                  	geändert:       package-lock.json
                  	geändert:       vendor/package-lock.json
                  
                  Unversionierte Dateien:
                    (benutzen Sie "git add <Datei>...", um die Änderungen zum Commit vorzumerken)
                  
                  	$
                  	%logfile
                  	core
                  	css/save_custom.css
                  	installers/dumpactivemodules.js
                  	installers/pm2_MagicMirror_new.json
                  	installers/stashed_files
                  	installers/upgrade.log.bak2
                  	mm.sh
                  	nohup.out
                  
                  there are 2 local files that are different than the master repo
                  
                     package-lock.json
                     vendor/package-lock.json
                  
                  save/restore files selection = n
                  restoring package-lock.json from repo
                  restoring vendor/package-lock.json from repo
                  test merge result rc='' , if empty, no conflicts
                  executing merge, apply specified
                  merge result rc= 0
                   Already up to date.
                  processor architecture is armv7l
                  updating MagicMirror runtime, please wait
                  
                  > [email protected] install /home/pi/MagicMirror
                  > cd vendor && npm install
                  
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                  
                  audited 220 packages in 13.98s
                  found 5 vulnerabilities (4 low, 1 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  > [email protected] postinstall /home/pi/MagicMirror
                  > sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts
                  
                  MagicMirror installation successful!
                  
                  > [email protected] install-fonts /home/pi/MagicMirror
                  > cd fonts && npm install
                  
                  audited 1 package in 1.385s
                  found 0 vulnerabilities
                  
                  npm WARN [email protected] requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
                  npm WARN [email protected] requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself.
                  
                  updated 1 package and audited 3475 packages in 106.649s
                  found 28 vulnerabilities (1 low, 1 moderate, 26 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  processing dependency changes for active modules with package.json files
                  processing for module MMM-Carousel please wait
                  ----------------------------------
                  audited 859 packages in 13.644s
                  found 2 high severity vulnerabilities
                    run `npm audit fix` to fix them, or `npm audit` for details
                  processing complete for module MMM-Carousel
                  processing for module MMM-PublicTransportHafas please wait
                  ----------------------------------
                  audited 41 packages in 3.408s
                  found 0 vulnerabilities
                  
                  processing complete for module MMM-PublicTransportHafas
                  processing for module MMM-PublicTransportHafas please wait
                  ----------------------------------
                  audited 41 packages in 2.67s
                  found 0 vulnerabilities
                  
                  processing complete for module MMM-PublicTransportHafas
                  processing for module MMM-PublicTransportHafas please wait
                  ----------------------------------
                  audited 41 packages in 3.904s
                  found 0 vulnerabilities
                  
                  processing complete for module MMM-PublicTransportHafas
                  restoring custom.css
                  removing git alias
                  Upgrade ended - Mi Okt 16 22:14:11 CEST 2019
                  

                  do I need to akt in any way here or other point?

                  npm WARN [email protected] requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
                  npm WARN [email protected] requires a peer of stylelint@^10.0.0 but none is installed. You must install peer dependencies yourself.
                  
                  

                  –
                  cheers, bdream

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

                    @bdream thank you for your help and patience… all looks great!!

                    no, you do not need to do anything about the last two entries.

                    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

                      so we are done and I set post to solved.

                      Many thanks for your great help and patience with this newbe-stuff :smiling_face_with_sunglasses:

                      –
                      cheers, bdream

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

                        @bdream said in Update to v2.9.0 fail:

                        patience with this newbe-stuff

                        you are welcome… and why I want to make these scripts solid

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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