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

Better error when chrome doesn't start #36

Open
AndreaCrotti opened this issue Oct 12, 2021 · 0 comments
Open

Better error when chrome doesn't start #36

AndreaCrotti opened this issue Oct 12, 2021 · 0 comments

Comments

@AndreaCrotti
Copy link

I banged my head against the wall for a while trying to understand what was wrong, and the error I had was related a timeout trying to connect to the remote debugging port.

It turned out that the problem was simply that I was running as root, and the no-sandbox option was not actually passed in.
And if I actually tried to run chrome with the same arguments as root it would have just failed straight away.
Instead, it was just waiting for the process to come back and eventually timing out, which made it very hard to debug.

So ideally it should maybe just terminate if the chrome process can't even be started, and potentially for extra validation it could check if the UID=0, which would always require the --no-sandbox flag.

@AndreaCrotti AndreaCrotti changed the title Better error Better error when chrome doesn't start Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant