question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unsupported flag --disable-setuid-sandbox

See original GitHub issue

I suggest removing this code, the flag is no longer used in chrome.

if (process.platform === 'linux') {
           flags.push('--disable-setuid-sandbox');
        }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
patrickhulcecommented, Aug 19, 2019

This flag is still in use in the Chromium codebase AFAICT, so we would like to continue supporting it, but we’ve added ignoreDefaultFlags as a way to disable other default flags in chrome-launcher that doesn’t yet affect this one.

If anyone would like to submit a PR that adds a check for ignoreDefaultFlags to https://github.com/GoogleChrome/chrome-launcher/blob/e67a10dffccd1d7509d671145b0b4ee368e34528/src/chrome-launcher.ts#L150-L152

I think that sounds good! 👍

0reactions
JavaScriptDudecommented, Oct 26, 2021

I have found a workaround for this on Linux.

You can use the ignoreDefaultFlags setting as follows:

const ChromeLauncher = require('chrome-launcher');

var flags = ChromeLauncher.Launcher.defaultFlags();

// optional: filter out flags
// Eg. Enabling extensions and Audio
// flags = flags.filter(flag => flag !== '--disable-extensions' && flag !== '--mute-audio')

// optional: Add you own flags
// flags.push('--proxy-server=192.168.101.200:8213')

ChromeLauncher.launch({
   startingUrl: ''
  ,userDataDir: '/dpool/vcmain/sys/chrome/profiles/CORP_DEV_LOCAL'
  ,ignoreDefaultFlags: true
  ,chromeFlags: flags
}).then(chrome => {
  console.log(`Chrome debugging port running on ${chrome.port}`);
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

506962 - Chrome still complains about --disable-setuid-sandbox
Chrome still prints and error to the terminal and warns the user about unsupported command-line flag. Did this work before? N/A Chrome version:...
Read more >
disable the warning 'You are using an unsupported command ...
This displays the warning message 'You are using an unsupported command-line flag: —disable-web-security. Stability and security will suffer'. The security is ...
Read more >
Chromium Docs - Linux Sandboxing
To disable it, use --disable-setuid-sandbox . (Do not remove the binary or unset CHROME_DEVEL_SANDBOX , it is not supported). Main page: LinuxSUIDSandbox ......
Read more >
Your Are Using An Unsupported Command line.Flag - No ...
#Error #GoogleChrome #Fix. Google Chrome - Your Are Using An Unsupported Command line. Flag - No Sandbox. Stability And Security.
Read more >
You are using an unsupported command-line flag: --ignore ...
You can add this to the shortcut of the chrome browser, in the Target portion: –test-type. This would disable any warning messages. Not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found