Fixsandbox script not working, unable to run as root
sapblatt11 last edited by sapblatt11
I’m attempting to run my mirror via pm2 which starts it using
sudo npm start. This presents
[27009:0220/162508.956825:FATAL:atom_main_delegate.cc(210)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.as an error, which makes sense.
I’ve followed the steps here (https://forum.magicmirror.builders/topic/12906/pm2-autostart-not-working/2) in an attempt to fix the sandbox issue. It prints “fixing sandbox permissions”, but nothing changes when I restart the mirror via pm2 restart.
Thanks in advance
@sapblatt11 dont do restart, do stop and start
@sdetweil also never use sudo on MagicMirror commands
my script turns off the need to run in sudo mode
we should never run mm in sudo, or install w sudo