MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Fixsandbox script not working, unable to run as root

    Scheduled Pinned Locked Moved Troubleshooting
    electrongpiopm2root
    4 Posts 2 Posters 1.3k Views 2 Watching
    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.
    • sapblatt11S Offline
      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 Away
        sdetweil @sapblatt11
        last edited by

        @sapblatt11 dont do restart, do stop and start

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil also never use sudo on MagicMirror commands

          just
          npm start

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Away
            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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy