• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

PM2 MM2 Not starting on start up

Scheduled Pinned Locked Moved Troubleshooting
37 Posts 12 Posters 28.1k Views 12 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
    daikaiju @shbatm
    last edited by Jul 14, 2018, 12:28 PM

    @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 Offline
      pum
      last edited by Feb 3, 2019, 1:48 PM

      @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 Feb 3, 2019, 11:28 PM Reply Quote 0
      • S Offline
        shbatm Module Developer @pum
        last edited by Feb 3, 2019, 11:28 PM

        @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 Sep 2, 2020, 10:31 AM Reply Quote 0
        • M Offline
          MarvellousMili @shbatm
          last edited by MarvellousMili Sep 2, 2020, 10:32 AM Sep 2, 2020, 10:31 AM

          @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 Sep 2, 2020, 12:12 PM Reply Quote 0
          • S Offline
            sdetweil @MarvellousMili
            last edited by Sep 2, 2020, 12:12 PM

            @MarvellousMili run the fixuppm2.sh script from here

            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Sep 8, 2020, 3:34 AM Reply Quote 0
            • M Offline
              MarvellousMili @sdetweil
              last edited by Sep 8, 2020, 3:34 AM

              @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 Sep 8, 2020, 1:06 PM Reply Quote 0
              • S Offline
                sdetweil @MarvellousMili
                last edited by Sep 8, 2020, 1:06 PM

                @MarvellousMili sorry. not sure what u said

                is working ok
                or
                is NOT working ok

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Apr 17, 2023, 8:09 PM Reply Quote 0
                • S Offline
                  Seregeth @sdetweil
                  last edited by Apr 17, 2023, 8:09 PM

                  Even this tread is old, but i have an issue with the starting of mm:

                  Everything worked well, then i installed MMM-CECControl.
                  I saved my config.js file bevor i entered the module line in there. But not as usual mm didn´t restart. Not even after a reboot of my raspberry.

                  Also when i start mm with
                  pm2 start mm
                  and
                  pm2 start MagicMirror
                  nothing happened.

                  i don´t know what i should do to start my mm as bevore…

                  S 2 Replies Last reply Apr 17, 2023, 8:18 PM Reply Quote 1
                  • S Offline
                    sdetweil @Seregeth
                    last edited by sdetweil Apr 17, 2023, 8:19 PM Apr 17, 2023, 8:18 PM

                    @Seregeth

                    ok let’s start at the beginning

                    pm2 status

                    will show you the names and numbers of the managed apps. you can use either the name or number

                    now, let’s see if it’s a MagicMirror problem

                    do

                    pm2 stop all
                    cd ~/MagicMirror
                    npm start
                    

                    if mm comes up but the screen is not correct, ctrl-m will minimize the mm screen

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Apr 17, 2023, 8:57 PM Reply Quote 0
                    • S Offline
                      sdetweil @Seregeth
                      last edited by Apr 17, 2023, 8:46 PM

                      @Seregeth sorry. I hit reject on your message accidentally, please resend it

                      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
                      • 4
                      • 3 / 4
                      • 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