Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Magic Mirror Does Not Close

    Troubleshooting
    4
    9
    1761
    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
      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.

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

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

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

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

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

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

                Mykle1 1 Reply Last reply Reply Quote 0
                • Mykle1
                  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."

                  1 Reply Last reply Reply Quote 0
                  • bhepler
                    bhepler Project Sponsor last edited by

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

                    1 Reply Last reply Reply Quote 1
                    • O
                      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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy