PM2 startup Autostart didn't work



  • Hey there,
    I almost finish with my Magic Mirror but there is a little problem with the autostart. I did this with these manual:
    https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror
    But i still don’t work. I read a lot in the Internet but I didnt’ get the rigth information.
    I recognized by trying sudo pm2 startup
    There is an error "[PM2][ERROR] No processes saved; DUMP file doesn’t exist"
    But i saved the state with the command pm2 save.
    I’ve no idea were my misstace is.
    I hope you can held me :)
    Thank you all :)



  • I think the issue is that the command you need to run isn’t “sudo pm2 startup”.
    If you run “pm2 startup”, the real command you’ll need to run appear

    pi@raspberrypi:~ $ pm2 startup
    [PM2] Init System found: systemd
    [PM2] You have to run this command as root. Execute the following command:
    sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
    


  • @romain
    Good to know :-)


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.