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

Tests fail on Ubuntu 18.04 with Chromium #271

Open
red-hood opened this issue Apr 5, 2020 · 4 comments
Open

Tests fail on Ubuntu 18.04 with Chromium #271

red-hood opened this issue Apr 5, 2020 · 4 comments

Comments

@red-hood
Copy link

red-hood commented Apr 5, 2020

When trying to run the tests, I get the following error message:

org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

None of the tests requiring chromium can run successfully. chromium-browser and chrome-driver have been installed from the repository.

Tried with openjdk-11 and openjdk-8, no difference.

@red-hood
Copy link
Author

red-hood commented Apr 5, 2020

chromedriver actually seems to be started in the background, and not stopped after the tests have finished:

jitsi-torture@jitsi:~$ ps aux|grep -i chromedriver|wc -l
56

@claysauruswrecks
Copy link

I built a docker container from jitsi/jibri, and I've got the tests running.

I needed to install these:
apt-get install libnss3 libgconf-2-4

I also added to WebParticipantFactory.java:

ops.addArguments("--headless");
ops.setBinary("/usr/bin/google-chrome-stable");

Where /usr/bin/google-chrome-stable is the location of your chrome install.

@jbg
Copy link

jbg commented Nov 20, 2020

-Dchrome.enable.headless=true fixes it here

@mailbyms
Copy link

mailbyms commented Jan 7, 2021

-Dchrome.enable.headless=true fixes it here

This will do.

Make sure chrome is installed. I download chrome-stable.deb from official website, run installer.
Git clone this project, run
mvn test -Djitsi-meet.instance.url="https://meet.jits.si" -Dchrome.enable.headless=true

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

4 participants