MagicMirror Forum

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

    PM2 MM2 Not starting on start up

    Troubleshooting
    12
    37
    18599
    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
      Desertswing @shbatm last edited by

      @shbatm
      will note that down thanks!

      R 1 Reply Last reply Reply Quote 0
      • R
        raymate @Desertswing last edited by

        @Desertswing No idea what that did but it worked, just need to make it show the weather as that seems to have gone away

        Pi zero W and Pi 3

        1 Reply Last reply Reply Quote 0
        • N
          nuckinfutz last edited by

          Try here as an alternative

          https://forum.magicmirror.builders/topic/2716/pm2-alternative

          1 Reply Last reply Reply Quote 0
          • D
            daikaiju @shbatm last edited by

            @shbatm said in PM2 MM2 Not starting on start up:

            sudo pm2 startup systemd -u pi --hp /home/pi

            Can also confirm this worked for me, too.

            Thank you @shbatm

            1 Reply Last reply Reply Quote 0
            • P
              pum last edited by

              @shbatm I’ve tried the following steps but it still doesn’t work, can you help me?

              • sudo pm2 startup systemd -u pi --hp /home/pi
              • nano mm.sh
              • cd ~/MagicMirror
                DISPLAY=:0 npm start
              • CTRL-O
              • Enter
              • CTRL-X
              • chmod +x mm.sh
              • pm2 start mm.sh
              • pm2 save
              • sudo reboot

              Thanks in advance.

              S 1 Reply Last reply Reply Quote 0
              • S
                shbatm Module Developer @pum last edited by

                @pum there is an existing script provided by MagicMirror now, please try deleting everything on your ~/.pm2 directory, then using:

                sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"
                    pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json
                    pm2 save
                

                You may have to use systemd instead of linux in the first line if you get an error.

                M 1 Reply Last reply Reply Quote 0
                • M
                  MarvellousMili @shbatm last edited by MarvellousMili

                  @shbatm I did all I should follow but it still doesn’t work for me, I’m using Rpi4b. It warning me:

                  PM2 is not managing any process, skipping save…

                  Plz help me my boyfriend’s birthday is under eyes!!

                  Thanks a lot!

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

                    @MarvellousMili run the fixuppm2.sh script from here

                    https://github.com/sdetweil/MagicMirror_scripts

                    Sam

                    Create a working config
                    How to add modules

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

                      @sdetweil sorry that reply late, I save the pm2 status after reboot again and again then work. I don’t know where’s the problem even now lol

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

                        @MarvellousMili sorry. not sure what u said

                        is working ok
                        or
                        is NOT working ok

                        Sam

                        Create a working config
                        How to add modules

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