Read the statement by Michael Teeuw here.
PM2 MM2 Not starting on start up
-
@nuckinfutz
pm2 start mm.sh -
I solved the same issue by using the command:
sudo pm2 startup systemd -u pi --hp /home/piAnd then using
pm2 saveto save the state. -
@shbatm
will note that down thanks! -
@Desertswing No idea what that did but it worked, just need to make it show the weather as that seems to have gone away
-
Try here as an alternative
https://forum.magicmirror.builders/topic/2716/pm2-alternative
-
@shbatm said in PM2 MM2 Not starting on start up:
sudo pm2 startup systemd -u pi --hp /home/pi
Can also confirm this worked for me, too.
Thank you @shbatm
-
-
@pum there is an existing script provided by MagicMirror now, please try deleting everything on your ~/.pm2 directory, then using:
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi" pm2 start ~/MagicMirror/installers/pm2_MagicMirror.json pm2 saveYou may have to use
systemdinstead oflinuxin the first line if you get an error. -
@shbatm I did all I should follow but it still doesn’t work for me, I’m using Rpi4b. It warning me:
PM2 is not managing any process, skipping save…
Plz help me my boyfriend’s birthday is under eyes!!
Thanks a lot!
-
@MarvellousMili run the fixuppm2.sh script from here
-
@sdetweil sorry that reply late, I save the pm2 status after reboot again and again then work. I don’t know where’s the problem even now lol
-
@MarvellousMili sorry. not sure what u said
is working ok
or
is NOT working ok -
Even this tread is old, but i have an issue with the starting of mm:
Everything worked well, then i installed MMM-CECControl.
I saved my config.js file bevor i entered the module line in there. But not as usual mm didn´t restart. Not even after a reboot of my raspberry.Also when i start mm with
pm2 start mm
and
pm2 start MagicMirror
nothing happened.i don´t know what i should do to start my mm as bevore…
-
ok let’s start at the beginning
pm2 status
will show you the names and numbers of the managed apps. you can use either the name or number
now, let’s see if it’s a MagicMirror problem
do
pm2 stop all cd ~/MagicMirror npm startif mm comes up but the screen is not correct, ctrl-m will minimize the mm screen
-
@Seregeth sorry. I hit reject on your message accidentally, please resend it
-
@sdetweil
$ pm2 status
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 1 │ MagicMirror │ fork │ 78 │ online │ 0% │ 2.6mb │
│ 0 │ mm │ fork │ 2 │ stopped │ 0% │ 0b │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
~ $ ^C
~ $ pm2 stop all
[PM2] Applying action stopProcessId on app [all](ids: [ 0, 1 ])
[PM2] mm ✓
[PM2] MagicMirror ✓
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 1 │ MagicMirror │ fork │ 117 │ stopped │ 0% │ 0b │
│ 0 │ mm │ fork │ 2 │ stopped │ 0% │ 0b │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
$ cd MagicMirror/
~/MagicMirror $ npm startmagicmirror@2.23.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.jssh: 1: ./node_modules/.bin/electron: not found
-
@Seregeth ok, try
cd ~/MagicMirror npm install electron@22.3.4 -
@sdetweil
that´s it, MM startet again after the installation -
@Seregeth cool… thx for the feedback
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login