Read the statement by Michael Teeuw here.
PM2 do not start at bootup on my RPI 2? Works fine on my RPI 3.
-
Hi!
I’m having trouble to get my PM2 to work on my RPI 2.
I’ve installed PM2 through the MM installation:
“curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash”
Everything is installed without any errors.Here’s the problem.
When i do this on my RPI 3 it works just fine! MM starts at bootup and everything works as it should.
BUT! When i do the exact same thing on my RPI 2 it do not work?
When i restart the RPI 2 nothing happens… PM2 dosen’t boot.
I’ve tired to install PM2 afterwards but no difference.Do anybody have any ideas?
-
have you put pm2 start mm in crontab? if you havent you can do so with
crontab -e then type @reboot pm2 start mm at the end of the file then restart it to test -
-
@tomyboy96 test with pm2 start mm.sh in crontab -e then and see if that works
-
When trying to save this error shows up:
“/tmp/crontab.gpsLPh/crontab”:22: bad time specifier
errors in crontab file, can’t install.
Do you want to retry the same edit? (y/n) -
@tomyboy96 said in PM2 do not start at bootup on my RPI 2? Works fine on my RPI 3.:
errors in crontab file, can’t install.
do you have the @reboot before pm2 start mm.sh if you dont try with that
-
@Baxer Worked! Thank you!
-
This post is deleted! -
I know you have a solution and all, but PM2 should already be running on your Pi as part of the installation process.
Did you save your PM2 state before reboot? If you’re willing to experiment, remove the PM2 commands from your crontab and reboot your mirror. Once it’s back up, start the mirror with
pm2 start mm
, wait for the interface to appear and then enterpm2 save
.Once PM2 has saved the state, reboot your mirror and MM2 should start after a few seconds.
-
@bhepler
I tried this but somehow the RPI 2 didn’t boot up with pm2. Worked just fine with my RPI 3.