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 won't run after restart

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    11 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.
    • S Offline
      SymmetriC
      last edited by

      MagicMirror was running great, but after restarting the Pi, now it gets hung up here:

      10def497-252a-4bf4-af59-b49944a8ccfd-image.png

      Any thoughts or suggestions? Thanks in advance!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @SymmetriC
        last edited by

        @SymmetriC where is that image from?

        ssh, a terminal window on the pi?

        when u boot do u see the pi desktop?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          SymmetriC @sdetweil
          last edited by

          @sdetweil image is from the orangePi cmd terminal. When I restarted, everything came up as normal, but when I try to start MagicMirror in the terminal it just hangs up and never starts. Wish it would at least give me some kind of error or something.

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @SymmetriC
            last edited by

            @SymmetriC ok, try this

            ctrl-c to stop that
            cd ~/MagicMirror
            rm -rf node_modules
            rm package-lock.json
            npm install --omit=dev --no-audit --no-fund 
            npm start
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              SymmetriC @sdetweil
              last edited by

              @sdetweil Thanks for your quick reply!
              Ran what you said and got this:
              7fd49d47-1c60-46b2-96dc-f3839c171a94-image.png

              Not sure what it means (researching now), but at least I have an error finally! haha

              S 1 Reply Last reply Reply Quote 1
              • S Offline
                sdetweil @SymmetriC
                last edited by

                @SymmetriC typo, should be --no-audit

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  SymmetriC @sdetweil
                  last edited by

                  @sdetweil thanks for catching the typo.
                  Ran it again correctly this time; here’s what I have:
                  dd3f3eab-fc63-47d4-b866-9f36e8a7071e-image.png
                  Still hung up trying to launch MM. I’m lost

                  S 1 Reply Last reply Reply Quote 1
                  • S Offline
                    sdetweil @SymmetriC
                    last edited by

                    @SymmetriC well then…

                    instead of npm start, try server only

                    npm run server
                    which takes electron out of the mix

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @sdetweil
                      last edited by

                      @SymmetriC did u try server only?

                      I really have no idea what could be wrong.

                      code reinstall leads to the same problem

                      unless the DISPLAY env variable is wrong

                      in the terminal window do

                      echo $DISPLAY

                      but the other messages should come out before electron is started

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        SymmetriC @sdetweil
                        last edited by

                        @sdetweil Appreciate the follow-up. Sorry for my radio silence; replied to the post shortly after your response on Sunday, but guess I wasn’t logged in so it got rejected. Here’s an update:
                        Started MM in npm run server mode, but MMM-EveryNews still wouldn’t load. Great idea though on starting in server to bypass ‘electron’ :thumbs_up: Still dumbfounded why ‘electron’ was having such a hard time.

                        Decided I was done messing with the OrangePi and loaded up a spare RaspberryPi 3 I had laying around. The Pi I was running the MM on was an OrangePi zero2, which is a pretty nice piece of hardware if you are having a hard time finding a good priced RaspberryPi, but I think there may be some driver or OS issues, since it tries to replicate the RaspberryPi OS. :man_shrugging:

                        Loaded up the RaspberryPi with Raspbian, then reloaded all the same MM modules and hit run. Ran like a champ after configuring everything, including https://github.com/mykle1/MMM-EveryNews/issues/5 from @sdetweil.

                        Moral of the story - think either a driver got messed up, an OS file got messed up, or I was messed up. Starting from scratch did the trick though, and it’s up and running.

                        Thanks @sdetweil! I appreciate your help and timely responses!

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