Read the statement by Michael Teeuw here.
MM on Pi Zero fails after being off for a few days
-
Describing process with id 0 - name mmstart ┌───────────────────┬──────────────────────────────────────┐ │ status │ stopped │ │ name │ mmstart │ │ version │ N/A │ │ restarts │ 1780 │ │ uptime │ 0 │ │ script path │ /home/pi/mmstart.sh │ │ script args │ N/A │ │ error log path │ /home/pi/.pm2/logs/mmstart-error.log │ │ out log path │ /home/pi/.pm2/logs/mmstart-out.log │ │ pid path │ /home/pi/.pm2/pids/mmstart-0.pid │ │ interpreter │ bash │ │ interpreter args │ N/A │ │ script id │ 0 │ │ exec cwd │ /home/pi │ │ exec mode │ fork_mode │ │ node.js version │ N/A │ │ node env │ N/A │ │ watch & reload │ ✘ │ │ unstable restarts │ 0 │ │ created at │ 2020-03-28T19:51:14.338Z │ └───────────────────┴──────────────────────────────────────┘ Divergent env variables from local env ┌────────────────┬──────────────────────────────────────┐ │ SSH_CONNECTION │ 192.168.1.148 54823 192.168.1.166 22 │ │ XDG_SESSION_ID │ c2 │ │ SSH_CLIENT │ 192.168.1.148 54823 22 │ │ SSH_TTY │ /dev/pts/1 │ └────────────────┴──────────────────────────────────────┘ Add your own code metrics: http://bit.ly/code-metrics Use `pm2 logs mmstart [--lines 1000]` to display logs Use `pm2 env 0` to display environment variables Use `pm2 monit` to monitor CPU and Memory usage mmstart
-
@kellogg76 said in MM on Pi Zero fails after being off for a few days:
/home/pi/mmstart.sh
can u show that file
-
#!/bin/bash cd ~/MagicMirror node serveronly & sleep 30 xinit /home/pi/chromium_start.sh
-
@kellogg76 said in MM on Pi Zero fails after being off for a few days:
xinit /home/pi/chromium_start.sh
and that one?
-
#!/bin/sh unclutter & xset -dpms # disable DPMS (Energy Star) features. xset s off # disable screen saver xset s noblank # don’t blank the video device matchbox-window-manager & chromium-browser -–incognito --start-fullscreen -–kiosk http://localhost:8080/
-
@kellogg76 weird…
and if you do pm2 start 0 it works ok?
-
@sdetweil it works in as much as I can see the magic mirror on another computer when I point to the correct IP, but the pi itself does not display anything at all, it sits at a terminal prompt or if I reboot and let it try to start on its own it’ll switch from prompt to black screen with mouse pointer as if it’s trying to start, then it loops back to a prompt and cycles between the two states.
-
weird… seems like chrome is having trouble.
if you type
chromium-browser --app=https://cnn.com
does it come up?
in 2.10, i created a similar script for
pi0w(armv6l) as electron doesn’t exist anymoretry this script
curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh >~/MagicMirror/run-start.sh chmod +x ~/MagicMirror/run-start.sh
then
cd ~/MagicMirror ./run-start.sh
-
@sdetweil said in MM on Pi Zero fails after being off for a few days:
./run-start.sh
When I run
chromium-browser --app=https://cnn.com
I get command not found, so I tried
chromium --app=https://cnn.com
and I get Illegal Instruction.
i tried your script, and I get the text on screen about no helper found etc, then it gets stuck when trying to fetch the calendar data. I can access it from another computer but the pi is still blank on screen
Edit: It does seem to go through the calendar step but just very slowly, still progressing to each successive calendar now. I’ll leave it running and see if it eventually successfully starts.
-
@kellogg76 no… its stuck with the chromium-browser not loading…
I think u need to reinstall the chromium browser…
this means there was an update , or there is an sd card problem…