• 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 27.8k 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.
  • E Offline
    eugekiller @sebzx10r
    last edited by Dec 4, 2016, 5:03 PM

    @sebzx10r Can you load MM with pm2 start mm.sh?

    1 Reply Last reply Reply Quote 0
    • S Offline
      sebzx10r
      last edited by Dec 4, 2016, 8:42 PM

      Hey,yes, I go to that same exact directory,but the file isn’t there. And yes I can load MM with pm2 start mm.sh. That’s what so weird about the whole thing. It’s as if the file doesn’t exist but yet the program is working somehow.

      1 Reply Last reply Reply Quote 0
      • S Offline
        sebzx10r
        last edited by Dec 4, 2016, 10:34 PM

        Hey,I kind of did a work around. I found this on another forum:
        I also searched for days without success but then, I got it to work quite simply.

        In Raspian click Menu,Preferences,Main Menu Editor
        Click Preferences and check Default applications for LXSession
        Click OK and close main menu editor
        Now click Menu and Under Preferences click on Default applications for LXSession
        LXSession configuration opens
        Click Autostart
        Under Manual autostarted applications paste in your java command line
        click add
        close the LXSession configuration application and reboot your pi
        your java app should run after reboot

        N 1 Reply Last reply Jan 14, 2017, 9:03 PM Reply Quote 0
        • N Offline
          nuckinfutz @sebzx10r
          last edited by Jan 14, 2017, 9:03 PM

          @sebzx10r What line did you put in the field? I can’t get it to work.

          D 1 Reply Last reply Jun 1, 2017, 3:53 PM Reply Quote 0
          • D Offline
            Desertswing @nuckinfutz
            last edited by Jun 1, 2017, 3:53 PM

            @nuckinfutz
            pm2 start mm.sh

            1 Reply Last reply Reply Quote 0
            • S Offline
              shbatm Module Developer
              last edited by Jun 1, 2017, 5:13 PM

              I solved the same issue by using the command:
              sudo pm2 startup systemd -u pi --hp /home/pi

              And then using pm2 save to save the state.

              D D 2 Replies Last reply Jun 1, 2017, 5:14 PM Reply Quote 2
              • D Offline
                Desertswing @shbatm
                last edited by Jun 1, 2017, 5:14 PM

                @shbatm
                will note that down thanks!

                R 1 Reply Last reply Jun 3, 2017, 2:15 PM Reply Quote 0
                • R Offline
                  raymate @Desertswing
                  last edited by Jun 3, 2017, 2:15 PM

                  @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 Offline
                    nuckinfutz
                    last edited by Jun 7, 2017, 8:23 PM

                    Try here as an alternative

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

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