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.

    I’m getting two instances of MM running

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 2 Posters 1.6k Views 2 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.
    • D Offline
      dazza120
      last edited by dazza120

      On my Pi I’m getting a window that’s says magic mirror and when you go into it the modules are running then I’m getting another window that says electron if I go into that it’s a black screen but it keeps running every time I close the window it starts itself running again this is only since installing 2.7.1. is there a way that i can stop the second MagicMirror running as it just displays a black screen pm2 start mm is the only one that displays MagicMirror Help lol

      pi@raspberrypi:~ $ pm2 stop MagicMirror
      [PM2] Applying action stopProcessId on app [MagicMirror](ids: 1)
      [PM2] [MagicMirror](1) ✓
      ┌─────────────┬────┬──────┬─────────┬───┬─────┬────────┐
      │ Name        │ id │ mode │ status  │ ↺ │ cpu │ memory │
      ├─────────────┼────┼──────┼─────────┼───┼─────┼────────┤
      │ MagicMirror │ 1  │ fork │ stopped │ 0 │ 0%  │ 0 B    │
      │ mm          │ 0  │ fork │ stopped │ 1 │ 0%  │ 0 B    │
      └─────────────┴────┴──────┴─────────┴───┴─────┴────────┘
       Use `pm2 show <id|name>` to get more details about an app
      pi@raspberrypi:~ $ pm2 start mm
      [PM2] Applying action restartProcessId on app [mm](ids: 0)
      [PM2] [mm](0) ✓
      [PM2] Process successfully started
      ┌─────────────┬────┬──────┬─────────┬───┬─────┬──────────┐
      │ Name        │ id │ mode │ status  │ ↺ │ cpu │ memory   │
      ├─────────────┼────┼──────┼─────────┼───┼─────┼──────────┤
      │ MagicMirror │ 1  │ fork │ stopped │ 0 │ 0%  │ 0 B      │
      │ mm          │ 0  │ fork │ online  │ 1 │ 0%  │ 2.5 MB   │
      └─────────────┴────┴──────┴─────────┴───┴─────┴──────────┘
       Use `pm2 show <id|name>` to get more details about an app
      pi@raspberrypi:~ $ 
      
      

      Not sure what it was doing but stopped PM2 from starting MagicMirror the second one that i had on the screen by using the below

      pi@raspberrypi:~ $ pm2 list
      ┌─────────────┬────┬──────┬─────────┬───┬─────┬──────────┐
      │ Name        │ id │ mode │ status  │ ↺ │ cpu │ memory   │
      ├─────────────┼────┼──────┼─────────┼───┼─────┼──────────┤
      │ MagicMirror │ 1  │ fork │ stopped │ 0 │ 0%  │ 0 B      │
      │ mm          │ 0  │ fork │ online  │ 1 │ 0%  │ 2.5 MB   │
      └─────────────┴────┴──────┴─────────┴───┴─────┴──────────┘
       Use `pm2 show <id|name>` to get more details about an app
      pi@raspberrypi:~ $ pm2 delete MagicMirror
      [PM2] Applying action deleteProcessId on app [MagicMirror](ids: 1)
      [PM2] [MagicMirror](1) ✓
      ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
      │ Name │ id │ mode │ status │ ↺ │ cpu │ memory   │
      ├──────┼────┼──────┼────────┼───┼─────┼──────────┤
      │ mm   │ 0  │ fork │ online │ 1 │ 0%  │ 2.5 MB   │
      └──────┴────┴──────┴────────┴───┴─────┴──────────┘
       Use `pm2 show <id|name>` to get more details about an app
      pi@raspberrypi:~ $ 
      
      
      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @dazza120
        last edited by A Former User

        @dazza120
        I think you’d installed 2.7.1 by installer script. In that script, registering MM into pm2 exists. It makes duplicated instance beside your existing.
        I think to remove contents of installers/mm.sh is one solution, but not tested.
        PS
        Ignore above suggestion. I’d misunderstood your question.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dazza120 @Guest
          last edited by

          @Sean Hi Sean mm is working but i have know idea what version is running as you say it creats two, MagicMirror one isnt working how do i clear that up, I can’t even find installers/mm.sh on the pi lol but as said only the MagicMirror version is not working not mm. What would you suggest? Thanks for the assist

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @dazza120
            last edited by

            @dazza120
            After pm2 delete, try pm2 save. It will take a snapshot for current status and keep it on next start.

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              dazza120 @Guest
              last edited by

              @Sean is there a way of me knowing what version of MM is running? Only one version is running now according to pm2 list, so thank you, but I want to make sure I’m running the correct version to stop the cron jobs running as the old elctron killed it after a few hours.

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @dazza120
                last edited by A Former User

                @dazza120
                I think it doesn’t matter unless there are two different installation really. (with different folder name). Is that case?
                If you have only one NEW version of MM on your RPI, both apps (MagicMirror or mm) will point same MM. Your case seems just two app(but same instance) registered.

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  dazza120 @Guest
                  last edited by

                  @Sean Thanks Sean no only one folder, so think we are sorted thank you.

                  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