jitsi / jitsi-meet-torture

Apache License 2.0
164 stars 149 forks source link

Tests fail on Ubuntu 18.04 with Chromium #271

Open red-hood opened 4 years ago

red-hood commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

-Dchrome.enable.headless=true fixes it here

mailbyms commented 3 years ago

-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