Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes wrong error message when running as root in sandbox mode #406

Merged

Conversation

fcoury
Copy link
Contributor

@fcoury fcoury commented Aug 1, 2023

When running as root the error reported is misleading:

There are no available ports between 8000 and 9000 for debugging

This commit fixes this and reports the proper (new) error RunningAsRootWithoutNoSandbox:

You need to set the sandbox(false) option when running as root

When running as root the error reported is misleading:

There are no available ports between 8000 and 9000 for debugging

This commit fixes this and reports the proper (new) error 
RunningAsRootWithoutNoSandbox:

You need to set the sandbox(false) option when running as root
@Billy-Sheppard
Copy link
Collaborator

Looks good, can you please make sure it passes cargo check and then you're good to go! Thanks!

@fcoury
Copy link
Contributor Author

fcoury commented Oct 8, 2023

@Billy-Sheppard done even though the cargo check complaint was not caused by my changes and happens in main as well.

Thanks!

@Billy-Sheppard
Copy link
Collaborator

Ah! My mistake, thank you - I'm currently working on a fix for some of these issues. Thanks for your PR!

@Billy-Sheppard Billy-Sheppard merged commit 9cb3644 into rust-headless-chrome:main Oct 8, 2023
pull bot pushed a commit to mirsella/rust-headless-chrome that referenced this pull request Oct 9, 2023
…headless-chrome#406)

* Fixes wrong error message when running as root in sandbox mode

When running as root the error reported is misleading:

There are no available ports between 8000 and 9000 for debugging

This commit fixes this and reports the proper (new) error 
RunningAsRootWithoutNoSandbox:

You need to set the sandbox(false) option when running as root

* Fixes cargo check error for a mut where not needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants