• 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 do not start at bootup on my RPI 2? Works fine on my RPI 3.

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 4 Posters 8.9k Views 3 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.
  • T Offline
    tomyboy96 Project Sponsor
    last edited by Jul 19, 2017, 1:26 PM

    Did not work…

    only way to get PM2 to start is by using:

    pm2 start mm.sh

    B 1 Reply Last reply Jul 19, 2017, 1:34 PM Reply Quote 0
    • B Offline
      Baxer @tomyboy96
      last edited by Jul 19, 2017, 1:34 PM

      @tomyboy96 test with pm2 start mm.sh in crontab -e then and see if that works

      1 Reply Last reply Reply Quote 0
      • T Offline
        tomyboy96 Project Sponsor
        last edited by Jul 19, 2017, 1:46 PM

        When trying to save this error shows up:

        “/tmp/crontab.gpsLPh/crontab”:22: bad time specifier
        errors in crontab file, can’t install.
        Do you want to retry the same edit? (y/n)

        B 1 Reply Last reply Jul 19, 2017, 1:56 PM Reply Quote 0
        • B Offline
          Baxer @tomyboy96
          last edited by Jul 19, 2017, 1:56 PM

          @tomyboy96 said in PM2 do not start at bootup on my RPI 2? Works fine on my RPI 3.:

          errors in crontab file, can’t install.

          do you have the @reboot before pm2 start mm.sh if you dont try with that

          T 1 Reply Last reply Jul 19, 2017, 2:05 PM Reply Quote 1
          • T Offline
            tomyboy96 Project Sponsor @Baxer
            last edited by Jul 19, 2017, 2:05 PM

            @Baxer Worked! Thank you!

            1 Reply Last reply Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @tomyboy96
              last edited by Jul 19, 2017, 5:44 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • B Offline
                bhepler Module Developer
                last edited by Jul 20, 2017, 3:29 PM

                I know you have a solution and all, but PM2 should already be running on your Pi as part of the installation process.

                Did you save your PM2 state before reboot? If you’re willing to experiment, remove the PM2 commands from your crontab and reboot your mirror. Once it’s back up, start the mirror with pm2 start mm, wait for the interface to appear and then enter pm2 save.

                Once PM2 has saved the state, reboot your mirror and MM2 should start after a few seconds.

                T 1 Reply Last reply Jul 20, 2017, 5:47 PM Reply Quote 0
                • T Offline
                  tomyboy96 Project Sponsor @bhepler
                  last edited by Jul 20, 2017, 5:47 PM

                  @bhepler
                  I tried this but somehow the RPI 2 didn’t boot up with pm2. Worked just fine with my RPI 3.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    7/10
                    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