Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Fixsandbox script not working, unable to run as root

    Troubleshooting
    electron gpio pm2 root
    2
    4
    35
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sapblatt11
      sapblatt11 last edited by sapblatt11

      Hi,
      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

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @sapblatt11 last edited by

        @sapblatt11 dont do restart, do stop and start

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @sdetweil last edited by sdetweil

          @sdetweil also never use sudo on MagicMirror commands

          just
          npm start

          1 Reply Last reply Reply Quote 0
          • S
            sdetweil last edited by sdetweil

            my script turns off the need to run in sudo mode

            we should never run mm in sudo, or install w sudo

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy