• 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.

(Solved) PM2 does not start on reboot

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 4 Posters 12.5k Views 6 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.
  • X Offline
    xbmcnut
    last edited by Mar 15, 2017, 3:15 AM

    OK, I started again with a clean install of the full Jessie build now then leaned it out using this guide. As before, once I start going through with the PM2 stuff, everything seems to work OK until a reboot and MM does not start. Surely someone else has seen this? Am I making a simple NOOB mistake here or does it just not work?

    0_1489547666665_upload-72de88bb-d0f6-46ed-884c-38ce64503343

    A 1 Reply Last reply Mar 16, 2017, 4:05 AM Reply Quote 0
    • A Offline
      amanzimdwini @xbmcnut
      last edited by Mar 16, 2017, 4:05 AM

      @xbmcnut Hey - I’m not the only one any more… Same problem: used to work on an OLD installation, and now - nothing. I am just working on a brand new one tonight.
      BTW: does you screensaver stay off? I had to work quite a bit at getting that working in the new distro.

      A X 2 Replies Last reply Mar 16, 2017, 5:55 AM Reply Quote 0
      • A Offline
        amanzimdwini @amanzimdwini
        last edited by Mar 16, 2017, 5:55 AM

        @amanzimdwini @xbmcnut
        Clean installation onto a Pi3 works… (and I have NO idea why it works on this one: my last pi3 gave me the same problem you had). So you might want to look at a different Pi?
        Best of luck!

        1 Reply Last reply Reply Quote 0
        • X Offline
          xbmcnut @amanzimdwini
          last edited by Mar 16, 2017, 6:05 AM

          @amanzimdwini I have resolved it now as I posted a bug. Turns out it’s related to the timeout setting for the PM2 service. Developers are going to remove timeout in next release but for now it can be tweaked. And no, had no joy with screensaver either. Disabled it in GUI and it seems to be gone now.

          https://github.com/Unitech/pm2/issues/2765#issuecomment-286778941

          A 1 Reply Last reply Mar 16, 2017, 6:25 AM Reply Quote 0
          • A Offline
            amanzimdwini @xbmcnut
            last edited by Mar 16, 2017, 6:25 AM

            @xbmcnut Just read your post - now MY installation wont run PM2. Argh. Where do you change the timeout settings?

            ps - Re: screensaver: I had to resort to’

            sudo apt-get install xscreensaver
            

            and the disable it.

            X 1 Reply Last reply Mar 16, 2017, 6:40 AM Reply Quote 0
            • X Offline
              xbmcnut @amanzimdwini
              last edited by Mar 16, 2017, 6:40 AM

              @amanzimdwini said in (Solved) PM2 does not start on reboot:

              Where do you change the timeout settings?

              /etc/systemd/system/pm2-root.service
              

              I changed mine from 8 to 15s using WinSCP with the SCP/Shell set to sudo su -

              A R 2 Replies Last reply Mar 16, 2017, 3:38 PM Reply Quote 0
              • A Offline
                amanzimdwini @xbmcnut
                last edited by Mar 16, 2017, 3:38 PM

                @xbmcnut took me a good 10 seconds to find pm2-pi.service for the raspberry
                And another 5 to change it.

                YOU ARE A GENIUS!
                thanks

                1 Reply Last reply Reply Quote 0
                • R Offline
                  rmohsen @xbmcnut
                  last edited by Mar 20, 2017, 9:44 PM

                  @xbmcnut Hello

                  total noob here and i have the same problem , how do i do that ?

                  ps : i’m not a developer or anything , i’m just a regular user so i kinda need step by step

                  thanks

                  X 1 Reply Last reply Mar 20, 2017, 10:16 PM Reply Quote 0
                  • X Offline
                    xbmcnut @rmohsen
                    last edited by Mar 20, 2017, 10:16 PM

                    @rmohsen Do you know how to access your mirror with either PuTTy or WinSCP?

                    R 1 Reply Last reply Mar 20, 2017, 10:20 PM Reply Quote 0
                    • R Offline
                      rmohsen @xbmcnut
                      last edited by Mar 20, 2017, 10:20 PM

                      @xbmcnut yes. Tried winscp but couldn’t edit the file , no permission

                      I managed to change it from 8 to 15 with another command on terminal but still not working

                      X 1 Reply Last reply Mar 20, 2017, 11:02 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/15
                        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