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.

    Magic Mirror Does Not Close

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 4 Posters 2.8k 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.
    • O Offline
      okg21
      last edited by

      I was trying to make my magic mirror start from the beginning so I followed this manuals steps: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

      It is working fine but there is also another magic mirror boots up in the background and if I close it, it launches back in seconds.
      It was a long time since I edited the code so I do not really remember what I have done before pm2 to auto-start my magic mirror. Any help appreciated.

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @okg21
        last edited by

        @okg21 said in Magic Mirror Does Not Close:

        if I close it, it launches back in seconds.

        How do you close it?

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @lavolp3
          last edited by

          @lavolp3

          Sounds like you have PM2 auto-starting.

          Minimize the MM window instead of quitting and run pm2 stop mm or pm2 stop magicmirror in your terminal. This will stop MM from auto launching until a reboot.

          Create a working config
          How to add modules

          O 1 Reply Last reply Reply Quote 0
          • O Offline
            okg21 @Mykle1
            last edited by

            @lavolp3 @Mykle1 I close it with pm2 stop mm but there is still one remaining.

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @okg21
              last edited by Mykle1

              @okg21

              Stop that one too.

              If you have 2 instances of pm2 you can delete one.

              pm2 stop mm
              pm2 delete mm
              pm2 save
              rm ~/mm.sh

              Then check your instances again

              Create a working config
              How to add modules

              lavolp3L 1 Reply Last reply Reply Quote 0
              • lavolp3L Offline
                lavolp3 Module Developer @Mykle1
                last edited by

                @Mykle1 I wouldn’t delete the mm.sh. Why?

                I’d say it’s best to first check if two instances are running with

                pm2 list
                

                Then stop one of these or both and you’re good.

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @lavolp3
                  last edited by Mykle1

                  @lavolp3 said in Magic Mirror Does Not Close:

                  I’d say it’s best to first check if two instances are running with

                  3 posts above

                  Quote from @okg21 : “@lavolp3 @Mykle1 I close it with pm2 stop mm but there is still one remaining.”

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • bheplerB Offline
                    bhepler Module Developer
                    last edited by

                    You can stop them all at once by entering pm2 stop all

                    1 Reply Last reply Reply Quote 1
                    • O Offline
                      okg21
                      last edited by

                      Sory guys it’s been a long time. İ deleted pm2 but it is something different mm starts back up whenever I close it.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • 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