Put the correct steps in the server building notes.
For some reason, I had copied instructions from somewhere that specified running the pm2 commands with sudo which is what caused the problem.
After running pm2 startup as the normal non-root user, it gives the only command that must be run with sudo. If you run pm2 startup with sudo it configures things under the root user, but it needs to be configured under the non-root user.
Fixed.
Put the correct steps in the server building notes.
For some reason, I had copied instructions from somewhere that specified running the pm2 commands with
sudo
which is what caused the problem.After running
pm2 startup
as the normal non-root user, it gives the only command that must be run withsudo
. If you runpm2 startup
withsudo
it configures things under the root user, but it needs to be configured under the non-root user.Working as expected after reboots now.