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.

    Problems with starting pm2 start mm.sh

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    27 Posts 7 Posters 12.8k Views 7 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.
    • S Offline
      sdetweil @madoXX
      last edited by

      @madoXX does it restart on boot?

      pm2 remove 0
      should have been
      pm2 delete 0

      and yep, needed a stop after the pm2 save

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        madoXX @sdetweil
        last edited by

        @sdetweil said in Problems with starting pm2 start mm.sh:

        @madoXX does it restart on boot?

        pm2 remove 0
        should have been
        pm2 delete 0

        and yep, needed a stop after the pm2 save

        no, the boot menu from the magic mirror appears (booting up), no error but it goes straight to the desktop.

        something strang here

        @sdetweil said in Problems with starting pm2 start mm.sh:

        then
        pm2 list

        nothing running

        In fact the themm.sh is running caus i startet it above

        @sdetweil said in Problems with starting pm2 start mm.sh:

        pm2 start /home/pi/mm.sh

        D 1 Reply Last reply Reply Quote 0
        • M Offline
          madoXX
          last edited by

          OK command back…

          after a few reboots now everything is starting fine.
          A big thanks to the community here!
          Very helpfull people here!

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gomalley
            last edited by

            I’m actually having thus EXACT problem and it is very frusterating. Im having a little trouble reading all of the instructions to fix it. Did you get yours fixed? If so exactly what did you do to fix it?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Gomalley
              last edited by

              @Gomalley pm2 runs a script,
              installers/mm.sh

              It should read

              cd /home/pi/MagicMirror
              ...etc
              

              Change it if not.

              Then

              pm2 restart 0
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gomalley
                last edited by

                I tried it but I do not think that it worked. My code before I touched it read

                cd ~/MagicMirror
                

                Now i tried two things both gave same output

                cd ~/home/pi/MagicMirror
                

                and

                cd /home/pi/MagicMirror
                

                It now says
                [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
                [PM2] PM2 Successfully daemonized
                Use --update-env to update environment variables
                [PM2] Applying action restartProcessId on app [0](ids: [ ‘0’ ])
                [PM2] [ERROR] Process 0 not found

                In my mm.sh the file currently reads this:
                cd /home/pi/MagicMirror
                DISPLAY=:0 npm start

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Gomalley
                  last edited by

                  And I tried restarting the pi and the “Booting up” MagicMirror2 showed but it never actually loaded.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Gomalley
                    last edited by

                    @Gomalley ok

                    pm2 list
                    

                    If nothing

                    pm2 start installers/mm.sh
                    pm2 save
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Detto65 @madoXX
                      last edited by

                      @madoXX
                      just did a fresh install of my magicmirror, because the sd card went corrupt.
                      during the install procedure it somehwere asked me if i want to autostart MagicMirror.
                      after that it started automatically after booting into the desktop first.
                      When trying to use pm2, it shows me the process is already running, but it’s name is MagicMirror , not mm.
                      MagicMirror version 2.8.0

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Detto65
                        last edited by

                        @Detto65 yes, the install script uses a json file to configure the pm2 process

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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