Read the statement by Michael Teeuw here.
Installation issues - pm2
-
Hello,
I’m trying to get my pi3 a+ setup to run the Magic Mirror software.
I am new to raspberry pi in general, so I’m not very flexible when I run into problems.In following this tutorial: https://www.raspberrypi.com/tutorials/how-to-build-a-super-slim-smart-mirror/
Everything is going well until I need to typepm2 start mm.sh
The tutorial says Magic Mirror software should start running, but all I see is this:
I have no idea what to do next. I search the forum for similar issues, but the solutions were given back in 2017 and don’t seem to apply now.Any help is appreciated, and you’ll have to give me the dummy version.
Thank you!
-Joe -
-
@sdetweil Hey thanks for the reply. I tried that and the Magic Mirror software does load.
-
@joebowers ok, can u show the mm.sh you created?
and compare to the one we ship in
~/MagicMirror/installers, that I use when setting up pm2 in my install script…
https://github.com/sdetweil/MagicMirror_scripts -
@sdetweil This was mine:
cd ./MagicMirror
DISPLAY=:0 npm startAnd this was the one on git hub:
cd ~/MagicMirror
DISPLAY=:0 npm startI was using a . instead of ~
I switched it to ~ and tried again. Now I see this, the mirror software doesn’t load though.
-
@joebowers ok, now lets look at the pm2 log…
pm2 logs --lines=50
50 may need to be bigger… defaults to 15
there are two different outputs… the normal messages (stdout) and the error (stderr)
the files for the saved logs are in the .pm2/logs folder (note the . in front of pm2)
did you install MM under root?? the permissions thing is concerning…
-
@sdetweil I tried to follow the tutorial step by step. I’m not sure if that has be installing as root.
This is what I see when I look at the log.
This was the most I could screen shot, this log was very long.
-
@joebowers /home/joe/MagicMirror/mm.sh no such file
is that where the file is?
does it have permission to execute?
ls -laF mm.sh
so,
chmod +x mm.sh
-
@sdetweil I was fooling around before coming to this forum for help. I believe I copied the mm.sh file into that folder, then later removed it. I put it back and saw this in the log:
Then I realized I have a space after DISPLAY =, and there is no space between the two in the tutorials.
So I fix that and tried running again, I see this:
But no mirror software on the screen…
-