• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.2k 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.
  • S Offline
    sapblatt11
    last edited by sapblatt11 Feb 20, 2021, 9:43 PM Feb 20, 2021, 9:42 PM

    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 Feb 20, 2021, 10:16 PM Reply Quote 0
    • S Away
      sdetweil @sapblatt11
      last edited by Feb 20, 2021, 10:16 PM

      @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 Feb 20, 2021, 10:18 PM Reply Quote 0
      • S Away
        sdetweil @sdetweil
        last edited by sdetweil Feb 20, 2021, 10:38 PM Feb 20, 2021, 10:18 PM

        @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 Feb 20, 2021, 10:58 PM Feb 20, 2021, 10:40 PM

          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
          1 / 1
          • First post
            1/4
            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