• 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 does not start the Magic Mirror

Scheduled Pinned Locked Moved Solved Troubleshooting
pm2errorenoent
15 Posts 5 Posters 15.9k Views 4 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.
  • K Offline
    Klinge
    last edited by Feb 15, 2019, 1:25 PM

    I have the same problem.

    I installed a fresh MM with pm2. The MM started. But after a reboot the MM does not start automatically.

    Unfortunately I have no idea.

    It would be grateful, if someone could help me.

    Thank you in advance

    1 Reply Last reply Reply Quote 0
    • L Offline
      lavolp3 Module Developer
      last edited by Feb 15, 2019, 2:30 PM

      I would suggest to both of you to follow the complete guide setting up pm2 and the autostart again. It doesn’t take long.

      Besides that, what does

      pm2 status
      

      give you after reboot?

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      1 Reply Last reply Reply Quote 0
      • K Offline
        Klinge
        last edited by Feb 15, 2019, 2:39 PM

        pm2 status is

        pi@raspberrypi:~ $ pm2 status
        
        │ Name        │ id │ mode  │ status │ ↺      │ cpu │ memory 
        │ MagicMirror │ 0  │ 2.6.0 │ fork   │ online │ 799 │ 0%     │ 16.8 MB   │
        
         Use `pm2 show <id|name>` to get more details about an app
        

        and in pm2 log I get this every two seconds

        pi@raspberrypi:~/.pm2 $ tail -f pm2.log
        2019-02-15T15:36:47: PM2 log: App [MagicMirror:0] online
        2019-02-15T15:36:48: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT]
        

        I tried the complete guide with creating an .sh-File and so on. But unfortenately with the same effect.

        L 1 Reply Last reply Feb 15, 2019, 8:20 PM Reply Quote 1
        • L Offline
          lavolp3 Module Developer @Klinge
          last edited by lavolp3 Feb 15, 2019, 8:21 PM Feb 15, 2019, 8:20 PM

          @klinge can you first do

          pm2 stop all
          

          and then

          cd ~/MagicMirror
          npm start dev
          

          Maybe you can see what happens there.
          It seems that pm2 is running the magicmirror start script but MagicMirror won’t start

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          D 1 Reply Last reply Feb 16, 2019, 11:08 AM Reply Quote 0
          • D Offline
            DarioCas @lavolp3
            last edited by Feb 16, 2019, 11:08 AM

            @lavolp3 starting it manually does work. but with PM2 not.

            1 Reply Last reply Reply Quote 0
            • K Offline
              Klinge
              last edited by Feb 16, 2019, 4:32 PM

              Thank you for your help.

              But suddenly a miracle happened.

              Tomorrow morning I switched on my monitor and the MM runs. And I did not do anything. And I really haven´t a intelligent reason.

              Now, when I reboot the Raspberry, the MM starts automatically.

              Thank you for your time.

              M L 2 Replies Last reply Feb 16, 2019, 6:21 PM Reply Quote 2
              • M Offline
                Mykle1 Project Sponsor Module Developer @Klinge
                last edited by Feb 16, 2019, 6:21 PM

                @klinge said in PM2 does not start the Magic Mirror:

                Tomorrow morning I switched on my monitor and the MM runs

                MMM-TimeMachine? ;-)

                I’m glad you got it working correctly. :thumbsup:

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • L Offline
                  lavolp3 Module Developer @Klinge
                  last edited by lavolp3 Feb 16, 2019, 6:39 PM Feb 16, 2019, 6:38 PM

                  @klinge Yeah I hacked into your RasPi from here and fixed it … I will have done it next Thursday when I will have had some time.
                  Better change your password from standard “raspberry”.
                  yaaaawwwn

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DarioCas
                    last edited by Feb 18, 2019, 10:12 AM

                    Hey Guys!

                    it works now!
                    i did it as described with the mm script here: https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

                    thank you for all your replies!

                    Regards

                    Dario

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