• 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.

Magic Mirror Does Not Close

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 4 Posters 2.9k 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 Apr 8, 2018, 2:04 PM

    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.

    L 1 Reply Last reply Apr 8, 2018, 2:28 PM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @okg21
      last edited by Apr 8, 2018, 2:28 PM

      @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

      M 1 Reply Last reply Apr 8, 2018, 2:31 PM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @lavolp3
        last edited by Apr 8, 2018, 2:31 PM

        @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 Apr 8, 2018, 2:56 PM Reply Quote 0
        • O Offline
          okg21 @Mykle1
          last edited by Apr 8, 2018, 2:56 PM

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

          M 1 Reply Last reply Apr 8, 2018, 3:03 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @okg21
            last edited by Mykle1 Apr 8, 2018, 3:10 PM Apr 8, 2018, 3:03 PM

            @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

            L 1 Reply Last reply Apr 8, 2018, 7:02 PM Reply Quote 0
            • L Offline
              lavolp3 Module Developer @Mykle1
              last edited by Apr 8, 2018, 7:02 PM

              @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

              M 1 Reply Last reply Apr 8, 2018, 10:28 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @lavolp3
                last edited by Mykle1 Apr 8, 2018, 10:33 PM Apr 8, 2018, 10:28 PM

                @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
                • B Offline
                  bhepler Module Developer
                  last edited by Apr 10, 2018, 6:11 PM

                  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 Apr 17, 2018, 2:41 PM

                    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
                    1 / 1
                    • First post
                      7/9
                      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