Ok so I’m following the guide to install the mirror. I’m now at the auto start part. I did the command “sudo npm install -g pm2” as pi user. Next I did “pm2 startup”, I do the command I ask and I get and error.
Preve last edited by
KnottyCord is right.
pm2 startupis not used to start the mm2 process but to start and initialize pm2 itself.
Just to be sure … you ran
pm2 startupand that told you to run the command your screenshot shows? There are other users with similar problems: https://github.com/Unitech/pm2/issues/2574
Yes that’s what i did. Run the command pm2 startup. It gave me a command to enter. When I pressed enter it was not working I keep giving me an error!
KnottyCord last edited by yawns
Changing the command form this:
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"to this:
sudo su -c "env PATH=$PATH:/usr/bin pm2 startup systemd -u pi --hp /home/pi"
seem to work!
amanzimdwini last edited by
@KnottyCord You are correct - you are running systemd (not plain old linux). PM2 does not seem to “realize” that.
Note that there is ANOTHER problem with PM2 that is now reported as a bug - read all about it here:
Best of luck - and don’t hesitate to ask for help!