UNSOLVED MagicMirror won't run after restart
MagicMirror was running great, but after restarting the Pi, now it gets hung up here:
Any thoughts or suggestions? Thanks in advance!
@SymmetriC where is that image from?
ssh, a terminal window on the pi?
when u boot do u see the pi desktop?
@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.
@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
@sdetweil Thanks for your quick reply!
Ran what you said and got this:
Not sure what it means (researching now), but at least I have an error finally! haha
@SymmetriC typo, should be --no-audit
@sdetweil thanks for catching the typo.
Ran it again correctly this time; here’s what I have:
Still hung up trying to launch MM. I’m lost
@SymmetriC well then…
instead of npm start, try server only
npm run server
which takes electron out of the mix
@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
but the other messages should come out before electron is started
@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 servermode, but MMM-EveryNews still wouldn’t load. Great idea though on starting in server to bypass ‘electron’ 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.
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!