• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 magic mirror

Scheduled Pinned Locked Moved Solved Troubleshooting
19 Posts 3 Posters 4.5k 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.
  • R Offline
    Raxos
    last edited by Jan 29, 2020, 5:29 PM

    hi !

    Today i have a problem with the update. The screen show the message “an update is available, need 4 commits”, but when i do the command on the readme, my terminal say “no module found needing npm refresh” and many error about save_custom.css.

    More, i would like know if they are something to do to make automatic installation update .
    best regards

    S 1 Reply Last reply Jan 29, 2020, 6:00 PM Reply Quote 0
    • S Offline
      sdetweil @mastadook
      last edited by sdetweil Feb 5, 2020, 12:22 PM Feb 5, 2020, 12:21 PM

      @mastadook ok, you are starting in the wrong place with the wrong script…

      in folder  
           /home/pi  
      start this
          /home/pi/MagicMirror    
      

      use my pm2 fixup script…

      do this

      pm2 delete 0
      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @Raxos
        last edited by Jan 29, 2020, 6:00 PM

        @Raxos I think you are running the upgrade script? if so, can u show me the

        ~/MagicMirror/installers/upgrade.log
        

        that message means there are no active installed modules (in the modules folder) which contain a package.json file

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R Offline
          Raxos
          last edited by Jan 29, 2020, 7:02 PM

          i use the command bash -c “$(curl -sl https://raw.gitusercontent/miuchmich/magicmirror/master/installers/upgrade-script.sh)”

          the log : https://drive.google.com/open?id=1t1eFgTcRHwEFOalFnfDFjbiW5g80V6VT

          S 1 Reply Last reply Jan 29, 2020, 7:13 PM Reply Quote 0
          • S Offline
            sdetweil @Raxos
            last edited by sdetweil Jan 29, 2020, 7:14 PM Jan 29, 2020, 7:13 PM

            @Raxos that link is not valid. The scripts have been moved to an external site for a few weeks now. (That exact script has a fatal bug)

            See the scripts here
            https://github.com/sdetweil/MagicMirror_scripts

            Also, the Google drive link is not shared.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              Raxos
              last edited by Raxos Jan 29, 2020, 7:32 PM Jan 29, 2020, 7:20 PM

              okay, so if i understand, i nedd to do bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply

              the log: https://drive.google.com/file/d/1t1eFgTcRHwEFOalFnfDFjbiW5g80V6VT/view?usp=sharing

              S 1 Reply Last reply Jan 29, 2020, 7:57 PM Reply Quote 0
              • S Offline
                sdetweil @Raxos
                last edited by sdetweil Jan 29, 2020, 7:59 PM Jan 29, 2020, 7:57 PM

                @Raxos ok, can you execute these commands and tell me the results

                LC_ALL=C git status
                
                locale
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mastadook
                  last edited by Jan 31, 2020, 3:15 PM

                  Hi,

                  after Update I have this Problem: Any Idea?

                  0|MagicMirror | > magicmirror@2.10.1 start /home/pi/MagicMirror
                  0|MagicMirror | > ./run-start.sh
                  0|MagicMirror | ./run-start.sh: Zeile 66: electron: Kommando nicht gefunden.
                  0|MagicMirror | npm
                  0|MagicMirror | ERR! code ELIFECYCLE
                  0|MagicMirror | npm
                  0|MagicMirror | ERR! syscall spawn
                  0|MagicMirror | npm ERR! file
                  0|MagicMirror | sh
                  0|MagicMirror | npm ERR! errno ENOENT
                  0|MagicMirror | npm
                  0|MagicMirror | ERR! magicmirror@2.10.1 start: ./run-start.sh
                  0|MagicMirror | npm ERR! spawn ENOENT
                  0|MagicMirror | npm ERR!
                  0|MagicMirror | npm
                  0|MagicMirror | ERR! Failed at the magicmirror@2.10.1 start script.
                  0|MagicMirror | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                  0|MagicMirror | npm ERR! A complete log of this run can be found in:
                  0|MagicMirror | npm ERR! /home/pi/.npm/_logs/2020-01-31T15_08_06_616Z-debug.log

                  What can I do?

                  Regards
                  Clemens

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil
                    last edited by sdetweil Jan 31, 2020, 3:38 PM Jan 31, 2020, 3:33 PM

                    @mastadook can u tell us more?
                    What version did u upgrade from?

                    Show output of
                    uname
                    npm -v
                    node -v

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mastadook
                      last edited by Feb 3, 2020, 2:36 PM

                      Hi Sam,

                      here are the requested Infos:
                      pi@magicmirror:~ $ uname
                      Linux
                      pi@magicmirror:~ $ npm -v
                      6.13.4
                      pi@magicmirror:~ $ node -v
                      v10.18.1

                      Errormessage after npm install
                      0|MagicMirror | path: ‘package.json’ }
                      0|MagicMirror | [15:31:05.578] [ERROR]
                      0|MagicMirror | { Error: ENOENT: no such file or directory, open ‘package.json’
                      0|MagicMirror | at Object.openSync (fs.js:443:3)
                      0|MagicMirror | at Object.readFileSync (fs.js:343:35)
                      0|MagicMirror | at Object. (/home/pi/MagicMirror/js/app.js:21:32)
                      0|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:778:30)
                      0|MagicMirror | at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
                      0|MagicMirror | at Module.load (internal/modules/cjs/loader.js:653:32)
                      0|MagicMirror | at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
                      0|MagicMirror | at Function.Module._load (internal/modules/cjs/loader.js:585:3)
                      0|MagicMirror | at Module.require (internal/modules/cjs/loader.js:692:17)
                      0|MagicMirror | at Module.Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:70:39)
                      0|MagicMirror | errno: -2,
                      0|MagicMirror | syscall: ‘open’,
                      0|MagicMirror | code: ‘ENOENT’,

                      It works for some hours, after restart the Errormessage comes back.

                      S 1 Reply Last reply Feb 3, 2020, 2:51 PM Reply Quote 0
                      • S Offline
                        sdetweil @mastadook
                        last edited by Feb 3, 2020, 2:51 PM

                        @mastadook said in update magic mirror:

                        /usr/lib/node_modules/pm2/node_

                        can u tell me what modules u have installed? (folder names in MagicMirror/modules, excluding default)

                        there is one module I know of that uses pm2 to launch another component under the covers

                        how did u upgrade to 2.10.1?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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