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.

    MM will not start

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    32 Posts 3 Posters 8.0k 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 @bworch
      last edited by

      @bworch if you used my script then
      the instance is labeled MagicMirror

      the other instance , mm is not running and could be deleted

      pm2 delete xx
      pm2 save
      

      xx is name or number

      now

      let’s fix the mm start problem

      pm2 stop all
      pm2 flush
      pm2 start MagicMirror
      

      wait 15 seconds

      pm2 stop all
      

      show the results of

      pm2 logs --lines=50
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 2 Replies Last reply Reply Quote 0
      • B Offline
        bworch @sdetweil
        last edited by

        @sdetweil thanks for the info. I will try it and let you know. again thanks

        1 Reply Last reply Reply Quote 0
        • B Offline
          bworch @sdetweil
          last edited by

          @sdetweil once I delete the mm instance; can I rename the MagicMirror instance to mm. thanks

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

            @bworch i do not know

            but you could edit the installers/pm2_MagicMirror.json
            (this is how I give the pretty name, not the script name)
            file and change the name to mm (check the paths as well)

            {
              "apps" : [{
                "name"        : "MagicMirror",
                "script"      : "/home/pi/MagicMirror/installers/mm.sh",
                "watch"       : ["/home/pi/MagicMirror/config/config.js"]
              }]
            }
            

            and then do (delete old, add new)

            pm2 delete MagicMirror
            pm2 save
            pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json
            pm2 save
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 2 Replies Last reply Reply Quote 0
            • B Offline
              bworch @sdetweil
              last edited by

              @sdetweil thanks for all your help.

              1 Reply Last reply Reply Quote 0
              • B Offline
                bworch
                last edited by

                I followed your instructions, and it still will not start. I also restart the pi. this is what I have now.

                184cdffc-3c09-4d75-bbaf-e05dd57e5ff2-image.png

                thanks

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bworch
                  last edited by

                  I did a pm2 show and this is what I got.

                  b196b117-fe7e-434e-bce7-9fcc6f5d4739-image.png

                  f132a711-2e53-4b7f-b6ed-82e4e605d192-image.png

                  thanks

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bworch @sdetweil
                    last edited by

                    @sdetweil followed your instructions, still will not start. I have this now.

                    bd71d5f4-924a-4f3c-b47b-58e9c5c98d9a-image.png

                    did a pm2 show

                    95f006b2-e291-4c92-9d2a-2c3ea40614ac-image.png

                    Thanks

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

                      @bworch do

                      pm2 logs --lines=100
                      

                      may be better without pm2 for debug

                      pm2 stop all
                      cd ~/MagicMirror
                      npm start >somefile.txt 2>&1

                      wait 15 seconds
                      ctrl-c

                      edit the somefile.txt

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        bworch @sdetweil
                        last edited by

                        @sdetweil couldn’t get the txt file to show. how would I edit it.

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

                          @bworch nano somefile.txt

                          or whatever text editor you like

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          B 1 Reply Last reply Reply Quote 0
                          • B Offline
                            bworch @sdetweil
                            last edited by

                            @sdetweil
                            4de124d9-ea8c-4250-9c47-d202f22058b5-image.png

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

                              @bworch fun times…

                              cd ~/MagicMirror
                              npm install electron@19.0.15
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              B 1 Reply Last reply Reply Quote 0
                              • B Offline
                                bworch @sdetweil
                                last edited by

                                @sdetweil

                                c2506f1e-23e1-40f9-afbb-bc0b79c4dbe1-image.png

                                I thank you for sticking with me.

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

                                  @bworch ok, I suggest you run my upgrade script

                                  see https://github.com/sdetweil/MagicMirror_scripts

                                  the upgrade script second pass with

                                  force

                                  instead of apply

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  B 2 Replies Last reply Reply Quote 0
                                  • B Offline
                                    bworch @sdetweil
                                    last edited by

                                    @sdetweil which line

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      bworch @sdetweil
                                      last edited by

                                      @sdetweil I accidently ran it as is, I then couldn’t find where to make the change. Sorry

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

                                        @bworch

                                        bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                                        

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        B 1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          bworch @sdetweil
                                          last edited by

                                          @sdetweil My VNC terminal when Black, is that normal.

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

                                            @bworch when? whouldn’t go black

                                            i use SSH never VNC…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            B 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