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.

    MagicMirror fails to start after fresh install

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 4 Posters 5.6k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @Wippo
      last edited by

      @Wippo said in MagicMirror fails to start after fresh install:

      Hoping for help
      Starting using
      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

      Important: npm start does not work via SSH, use DISPLAY=:0 nohup npm start & instead. This starts the mirror on the remote display.

      Are you starting the mirror via SSH? If you are then the command is DISPLAY=:0 nohup npm start & in your MagicMirror directory.

      If you are directly connected to your Pi3 then the command is simply npm start in your MagicMirror directory.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • W Offline
        Wippo
        last edited by Wippo

        Thanks for your advice, but that’s not the reason. I checked it again and the results are the same, independent of starting via SSH or directly.

        Now solved. :-)
        “npm start” has to be executed after starting the graphic desktop

        Wippo

        W L 2 Replies Last reply Reply Quote 1
        • W Offline
          Wippo @Wippo
          last edited by Wippo

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • L Offline
            longod @Wippo
            last edited by

            @Wippo Hey! I’m having a similar error message to you. What did you do to solve it?

            W 1 Reply Last reply Reply Quote 0
            • W Offline
              Wippo @longod
              last edited by

              @longod Hi, you have to start the graphic desktop before execution of “npm start” (or similar) from a console. My error was to stop system start at console level.

              Wippo

              1 Reply Last reply Reply Quote 0
              • T Offline
                tritran
                last edited by

                @wippo Hi - can you be more detailed when you say “you have to start the graphic desktop before execution”? I am pretty new to this and have no idea what you mean. I have the exact same errors on the same set up you have. Thank you.

                1 Reply Last reply Reply Quote 0
                • W Offline
                  Wippo
                  last edited by Wippo

                  Hi,
                  after powering on the Raspi and waiting a while, you have either a “console” (white letters on a black screen) or graphic desktop (colors and symbols like “Windows”). What you need for the Magic Mirror is the desktop. You can change the boot behavior using “sudo raspi-config”.

                  Wippo

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tritran
                    last edited by

                    Thank you. I actually did a new complete install from scratch and got MM to work!

                    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