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.

    how to update my MM

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    45 Posts 3 Posters 14.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.
    • S Offline
      sdetweil @RIKKO14
      last edited by sdetweil

      @rikko14 yes, just pm2 start… i don’t know what is causing the

      code EINTEGRITY

      errors…

      the more I look at it, the more it sounds like a networking problem
      I checked each reported bad file and I get them clean…

      on this

         fonts/package-lock.json
         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  < --------- but you replied yes???
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • R Offline
        RIKKO14
        last edited by

        it does not work …

        pi @ raspberrypi: ~ $ pm2 start
        [PM2] [ERROR] File ecosystem.config.js not found
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @RIKKO14
          last edited by

          @rikko14 because of the changed node and npm version… do this

          pm2 update
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • R Offline
            RIKKO14
            last edited by

            I do this :

            pi@raspberrypi:~ $ pm2 update
            Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.
            [PM2] [v] Modules Stopped
            [PM2] Applying action deleteProcessId on app [all](ids: [ 0 ])
            [PM2] [mm](0) ✓
            [PM2] [v] All Applications Stopped
            [PM2] [v] PM2 Daemon Stopped
            [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
            [PM2] Restoring processes located in /home/pi/.pm2/dump.pm2
            [PM2] Process /home/pi/mm.sh restored
            >>>>>>>>>> PM2 updated
            
            

            but nothing happens … the MM does not start

            same in the MM folder :

            pi@raspberrypi:~/MagicMirror $ pm2 update
            [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
            [PM2] PM2 Successfully daemonized
            Be sure to have the latest version by doing `npm install pm2@latest -g` before doing this procedure.
            [PM2] [v] Modules Stopped
            [PM2][WARN] No process found
            [PM2] [v] All Applications Stopped
            [PM2] [v] PM2 Daemon Stopped
            [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
            [PM2] Restoring processes located in /home/pi/.pm2/dump.pm2
            [PM2] Process /home/pi/mm.sh restored
            >>>>>>>>>> PM2 updated
            ┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
            │ id  │ name  │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
            ├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
            │ 0   │ mm    │ default     │ N/A     │ fork    │ N/A      │ 0      │ 0    │ stopped   │ 0%       │ 0b       │ pi       │ disabled │
            └─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
            pi@raspberrypi:~/MagicMirror $ 
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @RIKKO14
              last edited by

              @rikko14 and then pm2 start

              pm2 update fixed the missing 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
                RIKKO14
                last edited by

                same error :

                pi@raspberrypi:~/MagicMirror $ pm2 start
                [PM2][ERROR] File ecosystem.config.js not found
                
                

                and

                pi@raspberrypi:~ $ pm2 start
                [PM2][ERROR] File ecosystem.config.js not found
                
                

                2022-01-13-163431_1080x1920_scrot.png
                2022-01-13-163440_1080x1920_scrot.png

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

                  @rikko14 ok, (when I said pm2 start, I assumed you would know to add the name or number , pm2 start 0)

                  do

                  pm2 save
                  pm2 start 0
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RIKKO14
                    last edited by

                    it works but I found this Electron problem … with a black screen :
                    see a the top right of my screen
                    2022-01-13-164408_1080x1920_scrot.png

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

                      @rikko14 black screen… yeh. I added code to fix that but the bad file format problems prevented

                      do

                      pm2 stop all
                      pm2 flush
                      pm2 start 0

                      wait til MM comes up

                      pm2 stop all

                      then do this (1st post is enough)
                      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                      for each module reporting a missing library (there are more than 1 library potentially missing, so I don’t give you the exact command to issue, but teach you how to find the error and fix it from there)

                      then after fixing for all modules with problem,
                      (note you MAY have to repeat this looking thru the log part, I don’t know if they ALL will report, or if it will stop after the 1st error)

                      pm2 start 0

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RIKKO14
                        last edited by

                        I’m not sure I understood and did the right thing …:

                        pi@raspberrypi:~ $ pm2 stop all
                        [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                        [PM2] [mm](0) ✓
                        ┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                        │ id  │ name  │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
                        ├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                        │ 0   │ mm    │ default     │ N/A     │ fork    │ 0        │ 0      │ 0    │ stopped   │ 0%       │ 0b       │ pi       │ disabled │
                        └─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                        pi@raspberrypi:~ $ pm2 flush
                        [PM2] Flushing /home/pi/.pm2/pm2.log
                        [PM2] Flushing:
                        [PM2] /home/pi/.pm2/logs/mm-out.log
                        [PM2] /home/pi/.pm2/logs/mm-error.log
                        [PM2] Logs flushed
                        pi@raspberrypi:~ $ pm2 start 0
                        [PM2] Applying action restartProcessId on app [0](ids: [ '0' ])
                        [PM2] [mm](0) ✓
                        [PM2] Process successfully started
                        ┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                        │ id  │ name  │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
                        ├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                        │ 0   │ mm    │ default     │ N/A     │ fork    │ 29137    │ 0s     │ 0    │ online    │ 0%       │ 2.4mb    │ pi       │ disabled │
                        └─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                        pi@raspberrypi:~ $ pm2 stop all
                        [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                        [PM2] [mm](0) ✓
                        ┌─────┬───────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                        │ id  │ name  │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
                        ├─────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                        │ 0   │ mm    │ default     │ N/A     │ fork    │ 0        │ 0      │ 0    │ stopped   │ 0%       │ 0b       │ pi       │ disabled │
                        └─────┴───────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                        pi@raspberrypi:~ $ npm init -y
                        Wrote to /home/pi/package.json:
                        
                        {
                          "name": "pi",
                          "version": "1.0.0",
                          "description": "",
                          "main": "index.js",
                          "scripts": {
                            "test": "echo \"Error: no test specified\" && exit 1"
                          },
                          "keywords": [],
                          "author": "",
                          "license": "ISC"
                        }
                        
                        
                        pi@raspberrypi:~ $ npm install ???
                        npm ERR! code EINVALIDTAGNAME
                        npm ERR! Invalid tag name "???": Tags may not have any characters that encodeURIComponent encodes.
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/pi/.npm/_logs/2022-01-13T15_57_40_124Z-debug.log
                        pi@raspberrypi:~ $ 
                        
                        

                        2022-01-13-165939_1080x1920_scrot.png

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