jitsi-meet-torture
jitsi-meet-torture copied to clipboard
Tests fail on Ubuntu 18.04 with Chromium
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.
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
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.
-Dchrome.enable.headless=true
fixes it here
-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