• 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.

Updated OS. MM no longer starts

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 1.8k 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.
  • M Offline
    Myst
    last edited by Apr 14, 2019, 3:50 PM

    I recently ran yum update/upgrade on my Pi.

    It updated a bunch of things and now MM no longer starts.

    Any chance someone can explain how the install got hosed and what I need to do to make it work again? I had a small script that would run it from the home directory, but that doesn’t work any more (npm isn’t found) - I assume the update hosed some environment variables or PATH? What’s the best way to fix this and how can I avoid this happening again (other than not updating)

    S 1 Reply Last reply Apr 14, 2019, 5:51 PM Reply Quote 0
    • S Offline
      sdetweil @Myst
      last edited by sdetweil Apr 15, 2019, 12:53 AM Apr 14, 2019, 5:51 PM

      @Myst after the git pull, u need to run npm install in the mm folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • M Offline
        Myst
        last edited by Myst Apr 15, 2019, 3:31 AM Apr 15, 2019, 3:30 AM

        I did that and npm was not found. I also tried “whereis npm” and didn’t get any results.

        S 1 Reply Last reply Apr 15, 2019, 11:00 AM Reply Quote 0
        • S Offline
          sdetweil @Myst
          last edited by Apr 15, 2019, 11:00 AM

          @Myst

          sudo apt get install npm
          

          then

          npm install -g npm 
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • M Offline
            Myst
            last edited by Apr 15, 2019, 4:56 PM

            Is it possible that npm is installed on the server and just that it’s not in the path? Where is the file under the GUI that tells what program to automatically run when booting up? The update also appeared to hose that.

            B 1 Reply Last reply Apr 17, 2019, 3:39 AM Reply Quote 0
            • B Offline
              bhepler Module Developer @Myst
              last edited by Apr 17, 2019, 3:39 AM

              @Myst - There’s more than one. Part of the “fun” of unix-based systems. PM2 will start things automatically. So will systemd. So will rc.local. I’m probably missing one or two.

              1 Reply Last reply Reply Quote 0
              • M Offline
                Myst
                last edited by Apr 18, 2019, 2:02 AM

                How is MM normally started? Anybody know what is put in which file?

                B 1 Reply Last reply Apr 19, 2019, 1:33 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @Myst
                  last edited by Apr 19, 2019, 1:33 PM

                  @Myst - The installation script from the GitHub repository uses pm2 to start Magic Mirror. The pm2 application starts and monitors a script in the /home/pi/MagicMirror folder named run-start.sh. If the script crashes/exits for any reason, pm2 will detect it and restart that script.

                  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