MagicMirror² v2.7.0 is available! For more information about this release, check out this topic.

I’m getting two instances of MM running



  • 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 ` 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 ` 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 ` 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 ` to get more details about an app
    pi@raspberrypi:~ $ 
    
    

  • Module Developer

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



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


  • Module Developer

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



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


  • Module Developer

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



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