Read the statement by Michael Teeuw here.
MM Restarts on Pi4
-
pi@raspberrypi:~ $ ls ~/.pm2
dump.pm2 dump.pm2.bak logs module_conf.json modules pids pm2.log pub.sock rpc.sock touchThe SD card is probably a couple of years old.
-
@thad weird…
looks like pm2 is messed up
let’s do this
pm2 delete 0
to get rid of the saved task
them
pm2 unstartup
it will give u a command to copy/paste on the command line. do that…
then reboot.
pm2 is gone, so nothing will start
then run the fixuppm2 script from my scripts repo
https://github.com/sdetweil/MagicMirror_scripts
see the last entry copy/paste
MagicMirror should start
then reboot to see if pm2 starts mm at boot time
-
@sdetweil
Good news, bad news…Everything worked great until the last reboot. Post reboot, the MM restarting every minute starts again.
Another observation, while running the fixuppm2 script I get those odd warnings:
Accessing non-existent property ‘pwd’ of module exports inside circular dependencySeveral months ago, January I think, you helped me with the gpu related restarting. Once we got that working I don’t think the Pi4 rebooted until last week. I have very stable power and it’s plugged into a UPS. I think this problem may have been laying dormant for a long time.
If you have other things you want me to try, let me know. For right now I have it working and I know the procedure to get it working again if I have to reboot for any reason.
-
@thad how about node -v
looks like u are on node 14.
-
pi@raspberrypi:~ $ node -v
v16.13.2