• 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 not starting up on boot

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 9.8k 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.
  • N Offline
    Nazfera2
    last edited by Nov 27, 2016, 4:31 PM

    Hey Guys,

    1st timer here, i got my mirror exactly how i want it.
    only one part missing and i am getting that Monday.

    Side from that, i am having trouble with PM2 starting up electron on boot.
    somehow i was able to do this but i damaged the config.js file, and decided to do a full reinstall of magic mirror.
    Any help on getting PM2 to auto start as soon as its on Jessie GUI Desktop ?

    1 Reply Last reply Reply Quote 0
    • R Offline
      roramirez Core Contributors
      last edited by Nov 27, 2016, 4:53 PM

      You need start the script of run the MagicMirror system. After that save the configuration of PM2 with pm2 save

      There a good documentation how to do in https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

      Easy module development with MagicMirror Module Template

      N 1 Reply Last reply Nov 27, 2016, 6:21 PM Reply Quote 0
      • N Offline
        Nazfera2 @roramirez
        last edited by Nov 27, 2016, 6:21 PM

        @roramirez That is exactly why i opened this up, i followed the instructions and still nothing.

        1 Reply Last reply Reply Quote 0
        • G Offline
          gshimself
          last edited by gshimself Nov 28, 2016, 6:32 AM Nov 28, 2016, 6:30 AM

          I have the same problem and have not yet tried to fixed it (Yea, Im lazy)… But I did another MM where it just works…
          I have a theory… I think (just think, absolute not sure) that you have to “npm install && npm start” in “/MagicMirror” folder that got mine working.

          As I said, not tried this theory yet…

          N 1 Reply Last reply Nov 28, 2016, 10:52 PM Reply Quote 0
          • R Offline
            roramirez Core Contributors
            last edited by Nov 28, 2016, 1:23 PM

            After a reboot… what is the output for
            pm2 list

            PS: Maybe your script (mm.sh) not have execution permission.

            Easy module development with MagicMirror Module Template

            N 1 Reply Last reply Nov 28, 2016, 10:39 PM Reply Quote 0
            • N Offline
              Nazfera2 @roramirez
              last edited by Nazfera2 Nov 28, 2016, 11:01 PM Nov 28, 2016, 10:39 PM

              @roramirez i did pm2 list, and there is nothing under App name

              • Image here

              how do i give (mm.sh) execution permission ?
              is it ?

              chmod +x mm.sh

              this command was already done.

              1 Reply Last reply Reply Quote 0
              • N Offline
                Nazfera2 @gshimself
                last edited by Nazfera2 Nov 28, 2016, 10:53 PM Nov 28, 2016, 10:52 PM

                @gshimself nothing, the best bet is to reinstall raspberian again and see.

                THIS I DON’T WANT TO DO.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  roramirez Core Contributors
                  last edited by Nov 29, 2016, 2:26 AM

                  @Nazfera2 not is the best, is the last resource ;)

                  Maybe the problem raise the pm2 install.

                  Check https://github.com/Unitech/pm2/issues/1654#issuecomment-145071292

                  Easy module development with MagicMirror Module Template

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