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

Run no-sandbox and headless mode #2325

Closed
nicholaswkc34 opened this issue Jun 7, 2023 · 6 comments
Closed

Run no-sandbox and headless mode #2325

nicholaswkc34 opened this issue Jun 7, 2023 · 6 comments

Comments

@nicholaswkc34
Copy link

The problem

How to run chrome in ubuntu server in no sandbox and headless mode since it is report this error when run in teamcity CI/CD tool:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist)

Details

If necessary, describe the problem you have been experiencing in more detail.

Tell us about your environment

  • Selenide Version: 6.12.2
  • Chrome\Firefox\IE Version: 111
  • Browser Driver Version:
  • Selenide-Appium Version: -
  • IOS\Android\WEB version: -
  • Selenium Version: 4.8.1
  • OS Version: Ubuntu Jammy

Code To Reproduce Issue [ Good To Have ]

@asolntsev
Copy link
Member

@asolntsev asolntsev self-assigned this Jun 7, 2023
@nicholaswkc34 nicholaswkc34 reopened this Jun 7, 2023
@nicholaswkc34
Copy link
Author

Can this be achieve in 6.12.1 version?

@asolntsev
Copy link
Member

@nicholaswkc34 What exactly do you want to achieve in 6.12.1?
Before version 6.14.0, Selenide added flag --no-sandbox by default. And always worked in headless mode.

@nicholaswkc34
Copy link
Author

nicholaswkc34 commented Jun 8, 2023

I tried to launch a browser in Ubutu server and get this error

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that chrome has crashed)

What is the solution here?

@asolntsev
Copy link
Member

@nicholaswkc34 Did you find some solution? Did you tried to upgrade to latest Selenide/Selenium/Chrome versions?

Anyway, I am pretty sure this problem is not related to Selenide.

@xaldoxxx
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants