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.

    Trouble getting it to start

    Scheduled Pinned Locked Moved Troubleshooting
    23 Posts 5 Posters 15.2k 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.
    • P Offline
      PhilsterM9
      last edited by

      I am a fairly new to coding so stuff like this can get me confused a bit but this tutorial seems to be pretty straight forward. However, I cannot get it to start somewhere between “sudo npm install -g pm2” and “pm2 start mm.sh”. I am following each step correctly but it will not start up and instead give me this:0_1484620813517_Photo 17-1-17, 1 33 50 pm.jpg

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        johaness_00 @PhilsterM9
        last edited by

        @PhilsterM9 Have you tried pm2 start mm?

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          PhilsterM9 @johaness_00
          last edited by

          @johaness_00 I have but it keeps coming back with the table. The first time this happened, I reset the whole sd card and re-installed the image to the sd card but came back with the same result.

          in_a_daysI 1 Reply Last reply Reply Quote 0
          • in_a_daysI Offline
            in_a_days @PhilsterM9
            last edited by in_a_days

            @PhilsterM9

            Looks like your issues are occurring in the pm2 install/setup process. Are you able to get the Magic Mirror software up and running before moving on to this step? All this pm2 stuff is intended to restart your mirror in the event of a crash. Did you have the mirror software working first?

            What ship would bear me ever back across so wide a Sea?

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              PhilsterM9 @in_a_days
              last edited by

              @in_a_days I’m not sure how to test it as I said before that I am fairly new to this.

              in_a_daysI 1 Reply Last reply Reply Quote 0
              • in_a_daysI Offline
                in_a_days @PhilsterM9
                last edited by in_a_days

                @PhilsterM9

                No worries, I did the same thing on my first install!

                If you made it this far you should be able to put a fresh copy of Raspbian on your SD Card. Once done, go to the terminal and:

                curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash
                

                for a clean install of MM.

                Before it’s going to run, you need to rename/copy the config.js file. Hit the terminal and

                cd MagicMirror/config
                cp config.js.sample config.js
                

                That config.js file is going to be very important in customizing your mirror. Next:

                cd ..
                DISPLAY=:0 nohup npm start
                

                If your mirror software pops up without issue you’re in the clear and can proceed with the Configuration and Auto-Start stuff. But if you’ve got any issues at this point, it ought to be troubleshot before continuing with system changes.

                What ship would bear me ever back across so wide a Sea?

                P 3 Replies Last reply Reply Quote 0
                • P Offline
                  PhilsterM9 @in_a_days
                  last edited by

                  @in_a_days I’ll clear my sd card and restart the process using your instructions here. I will let you know what happens, thanks!

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    PhilsterM9 @in_a_days
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      PhilsterM9 @in_a_days
                      last edited by

                      @in_a_days Could you explain how to do the
                      “cd MagicMirror/config
                      cp config.js.sample config.js”
                      I can’t get it to work because I don’t know how to do it

                      in_a_daysI 1 Reply Last reply Reply Quote 0
                      • in_a_daysI Offline
                        in_a_days @PhilsterM9
                        last edited by in_a_days

                        @PhilsterM9

                        You need to launch the Terminal to get to the command prompt. Same place from which you launched the MM installer. If you type:

                        cd MagicMirror/config

                        you should see that you’ve changed directories. Then type:

                        cp config.js.sample config.js

                        That’s it. MM should be ready to launch.

                        What ship would bear me ever back across so wide a Sea?

                        P 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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