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 15.2k 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.
    • A
      amanzimdwini @xbmcnut
      last edited by

      @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
      Reply Quote 0
      • X
        xbmcnut @amanzimdwini
        last edited by

        @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
        Reply Quote 0
        • A
          amanzimdwini @xbmcnut
          last edited by

          @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
            rmohsen @xbmcnut
            last edited by

            @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
            Reply Quote 0
            • X
              xbmcnut @rmohsen
              last edited by

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

              R 1 Reply Last reply
              Reply Quote 0
              • R
                rmohsen @xbmcnut
                last edited by

                @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
                Reply Quote 0
                • X
                  xbmcnut @rmohsen
                  last edited by

                  @rmohsen Apologies. My install has died over the weekend and MM will no longer run. Getting to Desktop login screen on reboot and that’s it even though I told it to auto login, the desktop will not start. Have popped in ‘too hard bin’ for the moment, sorry.

                  1 Reply Last reply
                  Reply Quote 0
                  • Sandy2503S
                    Sandy2503
                    last edited by

                    @xbmcnut :abcd:

                    where have you changed the Idle Time ???

                    Thats my pm2-root.service:

                    [Unit]
                    Description=PM2 process manager
                    Documentation=https://pm2.keymetrics.io/
                    After=network.target

                    [Service]
                    Type=forking
                    User=root
                    LimitNOFILE=infinity
                    LimitNPROC=infinity
                    LimitCORE=infinity
                    Environment=PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
                    Environment=PM2_HOME=/root/.pm2
                    PIDFile=/root/.pm2/pm2.pid

                    ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
                    ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
                    ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill

                    [Install]
                    WantedBy=multi-user.target

                    Greetz Sandy2503

                    X 1 Reply Last reply
                    Reply Quote 0
                    • X
                      xbmcnut @Sandy2503
                      last edited by

                      @Sandy2503 I believe in the latest version of PM2, this was removed.

                      1 Reply Last reply
                      Reply Quote 0
                      • Sandy2503S
                        Sandy2503
                        last edited by Sandy2503

                        today is install a fresh version of raspian pixel on my raspi 2 with the new version (2.1.1) of MagicMirror and the actual version of PM2 (2.4.5)

                        But the autostart function themes not to work and in the pm2-root.service is no part to set the idle time.

                        How can i fix the idle Problem ?

                        1 Reply Last reply
                        Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • 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