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, unable to connect.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    22 Posts 3 Posters 7.6k 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
      Richard238 @sdetweil
      last edited by

      @sdetweil

      Option ‘a’ fixed it, thank you.

      With it working, do I need to update node?

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Richard238
        last edited by

        @Richard238 no, the script did that for you already

        on a command line do

        node -v

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          Richard238 @sdetweil
          last edited by

          @sdetweil

          pi@magicmirror:~/MagicMirror $ node -v
          v16.1.0
          
          
          R 1 Reply Last reply Reply Quote 1
          • R Offline
            Richard238 @Richard238
            last edited by Richard238

            Same issue today. Tried with force but still no MM.

            node -v = v22.14.0

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @Richard238
              last edited by

              @Richard238 can you show the startup messages

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                Richard238 @sdetweil
                last edited by

                @sdetweil

                pi@mmv2:~/MagicMirror $ node -v
                v22.14.0
                pi@mmv2:~/MagicMirror $ pm2 stop MagicMirror
                [PM2] Applying action stopProcessId on app [MagicMirror](ids: [ 0 ])
                [PM2] [MagicMirror](0) â
                ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ
                â id â name               â mode     â ⺠   â status    â cpu      â memory   â
                ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼âââââââââââ¤
                â 0  â MagicMirror        â fork     â 2120 â stopped   â 0%       â 0b       â
                ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ
                pi@mmv2:~/MagicMirror $ pm2 start MagicMirror
                [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
                [PM2] [MagicMirror](0) â
                [PM2] Process successfully started
                ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ
                â id â name               â mode     â ⺠   â status    â cpu      â memory   â
                ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼âââââââââââ¤
                â 0  â MagicMirror        â fork     â 2120 â online    â 0%       â 2.6mb    â
                ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ
                pi@mmv2:~/MagicMirror $
                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @Richard238
                  last edited by

                  @Richard238 pm2 logs --lines=20

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    Richard238 @sdetweil
                    last edited by

                    @sdetweil said in Update, unable to connect.:

                    pm2 logs --lines=20

                    Seems to loop through this:

                    0|MagicMirror  | > magicmirror@2.32.0 start
                    0|MagicMirror  | > node --run start:x11
                    0|MagicMirror  | [2025-08-16 19:11:31.316] [LOG]   Starting MagicMirror: v2.32.0 
                    0|MagicMirror  | [2025-08-16 19:11:31.359] [LOG]   Loading config ... 
                    0|MagicMirror  | [2025-08-16 19:11:31.363] [LOG]   config template file not exists, no envsubst 
                    0|MagicMirror  | [2025-08-16 19:11:31.976] [INFO]  Checking config file /home/pi/MagicMirror/config/config.js ... 
                    0|MagicMirror  | [2025-08-16 19:11:32.117] [ERROR] Your configuration file contains syntax errors :(
                    0|MagicMirror  | Line 99 column 21: 'Log' is not defined. 
                    PM2            | App [MagicMirror:0] exited with code [1] via signal [SIGINT]
                    PM2            | App [MagicMirror:0] starting in -fork mode-
                    PM2            | App [MagicMirror:0] online
                    0|MagicMirror  | bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
                    
                    
                    mumblebajM S 2 Replies Last reply Reply Quote 0
                    • mumblebajM Offline
                      mumblebaj Module Developer @Richard238
                      last edited by

                      @Richard238 said in Update, unable to connect.:

                      0|MagicMirror | [2025-08-16 19:11:32.117] [ERROR] Your configuration file contains syntax errors :(
                      0|MagicMirror | Line 99 column 21: ‘Log’ is not defined.

                      This seems to indicate that there is an error in config/config.js. Run the following on the command line in the ~/MagicMirror/ directory: npm run config:check

                      Check out my modules at: https://github.com/mumblebaj?tab=repositories
                      Check my blog-post: https://mumblebaj.xyz/
                      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        Richard238 @mumblebaj
                        last edited by

                        @mumblebaj said in Update, unable to connect.:

                        npm run config:check

                        pi@mmv2:~/MagicMirror $ npm run config:check
                        
                        > magicmirror@2.32.0 config:check
                        > node js/check_config.js
                        
                        [2025-08-17 12:14:16.030] [INFO]  Checking config file /home/pi/MagicMirror/config/config.js ... 
                        [2025-08-17 12:14:16.285] [ERROR] Your configuration file contains syntax errors :(
                        Line 99 column 21: 'Log' is not defined. 
                        
                        

                        Lines 97/98/99:

                                        // Override start method.
                                        start: function () {
                                            Log.log("Starting module: " + this.name);
                        
                        1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @Richard238
                          last edited by

                          @Richard238 did the

                          npm install 
                          

                          complete?

                          do this

                          pm2 stop all
                          cd ~/MagicMirror 
                          rm -rf node_modules
                          npm install
                          

                          the start MagicMirror manually

                          npm start
                          

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            Richard238 @sdetweil
                            last edited by

                            @sdetweil

                            pi@mmv2:/ $ pm2 stop all
                            [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                            [PM2] [MagicMirror](0) â
                            ââââââ¬âââââââââââââââââââââ¬âââââââââââ¬âââââââ¬ââââââââââââ¬âââââââââââ¬âââââââââââ
                            â id â name               â mode     â ⺠   â status    â cpu      â memory   â
                            ââââââ¼âââââââââââââââââââââ¼âââââââââââ¼âââââââ¼ââââââââââââ¼âââââââââââ¼âââââââââââ¤
                            â 0  â MagicMirror        â fork     â 300  â stopped   â 0%       â 0b       â
                            ââââââ´âââââââââââââââââââââ´âââââââââââ´âââââââ´ââââââââââââ´âââââââââââ´âââââââââââ
                            pi@mmv2:/ $ cd ~/MagicMirror
                            pi@mmv2:~/MagicMirror $ rm -rf node_modules
                            pi@mmv2:~/MagicMirror $ npm install
                            npm error code EIO
                            npm error syscall read
                            npm error errno -5
                            npm error EIO: i/o error, read
                            npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-08-17T11_35_16_106Z-debug-0.log
                            pi@mmv2:~/MagicMirror $ npm start
                            
                            > magicmirror@2.32.0 start
                            > node --run start:x11
                            
                            /bin/sh: 1: ./node_modules/.bin/electron: not found
                            
                            
                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @Richard238
                              last edited by

                              @Richard238 of course you dont need to do npm start if the other stuff fsiled

                              cd ~/MagicMirror 
                              rm package-lock.json 
                              rm -rf node_modules 
                              npm cache clean --force
                              npm install
                              

                              let me know the results

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              R 1 Reply Last reply Reply Quote 0
                              • R Offline
                                Richard238 @sdetweil
                                last edited by Richard238

                                @sdetweil

                                Pi (Pi4 in metal heat-sink case) was running really warm. Powered it off and left it for a while.

                                Powered on, it has no networking and file manager does nothing.
                                If I can get networking enabled, I’ll make a config and CSS backup.

                                Looks like it’s going to need an OS reinstall which will have to wait until I have time to do so.
                                I’ll report back when that’s done.

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @Richard238
                                  last edited by

                                  @Richard238 my backup also gets the module source url for every add on module, so that they can be reinstalled again
                                  and gets files created (like access tokens etc) which may be needed to make each module work

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  R 1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    Richard238 @sdetweil
                                    last edited by

                                    @sdetweil

                                    I couldn’t use that as I the Pi had no network, no file manager. It was bricked :(

                                    New OS, new default vanilla MM all good.

                                    And then I remembered the orig MM was still on a SD Card before I swapped over to a USB drive.
                                    Copied all I needed, seems to be all good so far!

                                    Thanks for your help. :)

                                    S 2 Replies Last reply Reply Quote 1
                                    • S Do not disturb
                                      sdetweil @Richard238
                                      last edited by

                                      @Richard238 awesome… thanks for the feedback…

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @Richard238
                                        last edited by

                                        @Richard238 said in Update, unable to connect.:

                                        And then I remembered the orig MM was still on a SD Card before I swapped over to a USB drive

                                        backup , backup, backup…

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        R 1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          Richard238 @sdetweil
                                          last edited by

                                          @sdetweil

                                          Hahhahaaaa! Yes, well I do make regular backups of config and CSS, it was the modules folder I was missing. Lesson learned there.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @Richard238
                                            last edited by sdetweil

                                            @Richard238 use my script
                                            It will record incremental changes

                                            https://github.com/sdetweil/MagicMirror-backup-restore

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            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