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.

    MM not starting automatically

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 2.3k Views 2 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.
    • B Offline
      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
      • CyruS1337C Offline
        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 Offline
          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
          • CyruS1337C Offline
            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy