Read the statement by Michael Teeuw here.
Brand New Install works until I enable PM2 Autostart
-
@sdetweil Thank You for the suggestions.
It launches correctly with “pm2 start mm.sh”.
But when I then run “pm2 save” and stop mm and start it again it launches the black Electron screen.
So I then remove it (had to run “pm2 del 0”), and save (pm2 save --force).
Then I ran “pm2 start mm.sh” again.
I then ran “pm2 stop mm”.
Then I ran “pm2 save”.
I can successfully run “pm2 start mm.sh” after that providing I saved it in the stopped state.
But that means when the pi reboots it isn’t started automatically. -
-
pm2 start mm.sh
Magic Mirror launches successfullypm2 save
pm2 restart 0 (can confirm that is the correct id from pm2 status - only one entry which is mm)
Magic Mirror is closed down… and an black Electron window opens and does not change ever after several minutes.
If I right-click the Electron window and close it, after a few seconds the Magic Mirror launches successfully again on its own. -
-
-
@cowlam can u change the cd line to
cd ~/MagicMirror
the one u have is MagicMirror from here (.)
not MagicMirror from user home (~)also the pm2 status line has a column with a circled arrow header, that is restarts
and after 5 rapid it stopsI suspect the cd doesn’t work, mm doesn’t start,
but the saved info says u need electron started. -
@sdetweil Sam: Just to let you know, if PM2 is not running any tasks, it won’t save with a plain
pm2 save
- you have to usepm2 save --force
to clear the list after deleting everything.