Read the statement by Michael Teeuw here.
strange boot issuse
-
So, I’ve got magic mirror installed. Once I updated a weird thing started to happen. In the middle of the Magic Mirror boot sequence. A command line shows up on top of the halfway booted Magic Mirror program. I’ve tried a fresh reboot Magic Mirror but no dice. Any suggestions? (I’m trying to upload a photo but that doesn’t seem to be be working)
-
@jhwwhite - I have a lot of questions, so bear with me.
- Did you ever get the MagicMirror to work the way you expected?
- Do you ever see the Raspberry Pi’s desktop during the boot sequence?
- Are you using the latest version of Raspbian full edition (not Lite)?
- Once you see that command line, can you SSH into the Pi?
- If 4 is true, can you run the
pm2 log 0
command and let us know what the logs say?
-
This post is deleted! -
That is incredibly hard to read. Please consider this:
https://forum.magicmirror.builders/topic/4247/how-to-post-code-on-the-forum-for-absolute-beginners
-
Sorry for the delay. I was out of town and forgot my laptop charging cable.
@bhepler said in strange boot issuse:
@jhwwhite - I have a lot of questions, so bear with me.
- Did you ever get the MagicMirror to work the way you expected?
Yes I did - Do you ever see the Raspberry Pi’s desktop during the boot sequence?
No. It goes strait to the Magic Mirror boot page - Are you using the latest version of Raspbian full edition (not Lite)?
It’s the full version I believe - Once you see that command line, can you SSH into the Pi?
Yes - If 4 is true, can you run the
pm2 log 0
command and let us know what the logs say?
Sure
0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | 0|mm | 0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | 0|mm | 0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | 0|mm | 0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR! /home/pi/.npm/_logs/2019-01-13T19_30_43_236Z-debug.log 0|mm | 0|mm | (electron:3869): Gtk-WARNING **: cannot open display: :0 0|mm | npm ERR! code ELIFECYCLE 0|mm | npm ERR! errno 1 0|mm | npm ERR! magicmirror@2.6.0 start: `sh run-start.sh` 0|mm | npm ERR! Exit status 1 0|mm | npm ERR! 0|mm | npm ERR! Failed at the magicmirror@2.6.0 start script. 0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|mm | 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR! /home/pi/.npm/_logs/2019-01-13T19_30_48_977Z-debug.log 0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | (electron:3938): Gtk-WARNING **: cannot open display: :0 0|mm | npm 0|mm | ERR! code ELIFECYCLE 0|mm | npm ERR! errno 1 0|mm | npm 0|mm | ERR! magicmirror@2.6.0 start: `sh run-start.sh` 0|mm | npm ERR! Exit status 1 0|mm | npm 0|mm | ERR! 0|mm | npm ERR! Failed at the magicmirror@2.6.0 start script. 0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR! /home/pi/.npm/_logs/2019-01-13T19_30_54_950Z-debug.log 0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | (electron:4002): Gtk-WARNING **: cannot open display: :0 0|mm | npm 0|mm | ERR! code ELIFECYCLE 0|mm | npm ERR! errno 1 0|mm | npm 0|mm | ERR! magicmirror@2.6.0 start: `sh run-start.sh` 0|mm | npm ERR! Exit status 1 0|mm | npm 0|mm | ERR! 0|mm | npm ERR! Failed at the magicmirror@2.6.0 start script. 0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR! /home/pi/.npm/_logs/2019-01-13T19_31_00_675Z-debug.log 0|mm | > magicmirror@2.6.0 start /home/pi/MagicMirror 0|mm | > sh run-start.sh 0|mm | (electron:4066): Gtk-WARNING **: cannot open display: :0 0|mm | npm 0|mm | ERR! 0|mm | code ELIFECYCLE 0|mm | npm 0|mm | ERR! errno 1 0|mm | npm 0|mm | ERR! magicmirror@2.6.0 start: `sh run-start.sh` 0|mm | npm ERR! Exit status 1 0|mm | npm 0|mm | ERR! 0|mm | npm ERR! Failed at the magicmirror@2.6.0 start script. 0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR!
It just keeps going on like that
- Did you ever get the MagicMirror to work the way you expected?
-
Are you able to bypass the automatic boot sequence, boot normally, and start MagicMirror manually?
-
@phreakinuts yeah. It’s the same issue
pi@raspberrypi:~ $ pm2 stop mm [PM2] Applying action stopProcessId on app [mm](ids: 0) [PM2] [mm](0) ✓ ┌─────────────┬────┬───────┬────────┬─────────┬──────┬────────┬──────────┐ │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │ ├─────────────┼────┼───────┼────────┼─────────┼──────┼────────┼──────────┤ │ MagicMirror │ 1 │ 2.6.0 │ fork │ online │ 2961 │ 0% │ 2.5 MB │ │ mm │ 0 │ N/A │ fork │ stopped │ 2961 │ 0% │ 0 B │ └─────────────┴────┴───────┴────────┴─────────┴──────┴────────┴──────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~ $ pm2 delete mm [PM2] Applying action deleteProcessId on app [mm](ids: 0) [PM2] [mm](0) ✓ ┌─────────────┬────┬───────┬────────┬────────┬──────┬────────┬──────────┐ │ Name │ id │ mode │ status │ ↺ │ cpu │ memory │ ├─────────────┼────┼───────┼────────┼────────┼──────┼────────┼──────────┤ │ MagicMirror │ 1 │ 2.6.0 │ fork │ online │ 2961 │ 0% │ 2.5 MB │ └─────────────┴────┴───────┴────────┴────────┴──────┴────────┴──────────┘ Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~ $ rm mm.sh
Did I not do it right?
-
What does it show when you simply try to run it in the MagicMirror directory.
DISPLAY=:0 npm start
How did you perform the update? Sounds like an odd issue to have, but attributed to the update. Did you verify that nothing broke with pm2 when you performed the update?
-
Yeah, that looks right. If you restart your process, do you see the mirror?
pm2 restart 0