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.

    Problems with starting pm2 start mm.sh

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    27 Posts 7 Posters 12.8k Views 7 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.
    • mumblebajM Offline
      mumblebaj Module Developer @Raksasas
      last edited by

      @Raksasas My mm.sh resides in my /pi/ folder and not in the MagicMirror folder so should work. It might be that there was an error while you were setting up pm2 or setting up the autostart perhaps?

      Check out my modules at: https://github.com/mumblebaj?tab=repositories
      Check my blog-post: https://mumblebaj.xyz/

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Raksasas
        last edited by

        @Raksasas it was the

        pm2 start installers/mm.sh
        

        That needed to be done from the MagicMirror folder.

        Cause I ‘ASSUMED’ if u were working on mm, you would always be in that folder.

        installers folder is in mm, not in user home

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R Offline
          Raksasas
          last edited by

          Part 1:
          @sdetweil

          Just tried the

          pm2 start installers/mm.sh
          pm2 save
          

          From within the “MagicMirror” folder and no change. MagicMirror starts and at reboot it does not automaticly start

          See below for my fix

          Part 2:
          @mumblebaj
          This seems possible. So i re-ran

          sudo npm install -g pm2
          pm2 startup
          

          After running “pm2 startup” this time I noticed the following:

          To setup the Startup Script, copy/paste the following command:
          sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
          
          

          So I ran that and followed with the “pm2 start mm.sh” and “pm2 save”. Well now it is auto starting on reboot.

          S mumblebajM 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @Raksasas
            last edited by sdetweil

            @Raksasas great news!

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • mumblebajM Offline
              mumblebaj Module Developer @Raksasas
              last edited by

              @Raksasas Exellent. Great it is working now.

              Check out my modules at: https://github.com/mumblebaj?tab=repositories
              Check my blog-post: https://mumblebaj.xyz/

              1 Reply Last reply Reply Quote 0
              • T TDMPro2K referenced this topic on
              • 1
              • 2
              • 3
              • 3 / 3
              • 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