MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED MM not starting automatically

    Troubleshooting
    2
    4
    1767
    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.
    • B
      blebbens last edited by

      Hi there,

      I flashed a brand new SD card with Raspbian Stretch and installed MM 2.41 using “bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)””

      During this installation the script asked me, if I want to use pm2 for starting MM automatically at start up. I´ve chosen “yes”, but MM did not start at the end of the boot.

      So, I tried:
      sudo npm install -g pm2
      pm2 startup
      cd ~
      nano mm.sh

      and added the lines:
      “cd ~/MagicMirror
      DISPLAY=:0 npm start”

      Then:
      chmod +x mm.sh
      pm2 start mm.sh
      pm2 save

      But, MM is not starting after the end of the boot sequence.
      I have to type in “pm2 start mm.sh” every time, but it is not working automatically.

      Could someone help ?

      1 Reply Last reply Reply Quote 0
      • CyruS1337
        CyruS1337 Project Sponsor last edited by

        Maybe I can help you. After typing pm2 starup, you have to type the command what is on the console.


        Starting PM2 on Boot
        To make sure PM2 can do it’s job when (re)booting your operating system, it needs to be started on boot. Luckily, PM2 has a handy helper for this.

        pm2 startup
        PM2 will now show you a command you need to execute.


        https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

        1 Reply Last reply Reply Quote 0
        • B
          blebbens last edited by

          Thank you, done this several times… but this time I haven´t seen it…

          1 Reply Last reply Reply Quote 0
          • CyruS1337
            CyruS1337 Project Sponsor last edited by

            it works now?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy