Hi, I am following this tutorial here to set up testing with Jitsi Meet Torture. This post is in reference to my other one here which I still haven’t resolved, so I am trying to use a Firefox driver instead.
From the main error I am getting it seems that somewhere is still defaulting to trying to use a chromedriver. My firefox version is 100 and geckodriver 0.31.0 on both machines.
Command:
./scripts/malleus.sh --conferences=1 --participants=1 --senders=1 --audio-senders=1 --duration=120 --room-name-prefix=hamertesting --hub-url=http://10.10.6.2:4444/wd/hub --instance-url=https://10.10.6.2
Full error stack:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< org.jitsi:jitsi-meet-torture >--------------------
[INFO] Building jitsi-meet-torture 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jitsi-meet-torture ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /users/jsl286/jitsi-meet-torture/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ jitsi-meet-torture ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jitsi-meet-torture ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ jitsi-meet-torture ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ jitsi-meet-torture ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
[15] testsToRun=[MalleusJitsificus]
[15] testsToExclude=[]
[15] testsToInclude=[]
[15] ---=== Testing MalleusJitsificus ===---
will run with:
conferences=1
participants=1
senders=1
audio senders=1
duration=120000ms
join delay=0ms
room_name_prefix=hamertesting
enable_p2p=true
max_disrupted_bridges_pct=0.0
regions=null
stage view=false
extra sender params=
extra receiver params=
[16] Start testMain.
[17] No participant type specified for prefix: web.participant1, will use Chrome...
[pool-1-thread-1] INFO io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 101.0.4951.41 (resolved driver for Chrome 101)
[pool-1-thread-1] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as /users/jsl286/.cache/selenium/chromedriver/linux64/101.0.4951.41/chromedriver
[16] TestFailure:
java.lang.Exception: Failed with multiple errors. Throws the primary.
at org.jitsi.meet.test.MalleusJitsificus.testMain(MalleusJitsificus.java:306)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:571)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)
at org.testng.internal.TestMethodWithDataProviderMethodWorker.call(TestMethodWithDataProviderMethodWorker.java:71)
at org.testng.internal.TestMethodWithDataProviderMethodWorker.call(TestMethodWithDataProviderMethodWorker.java:14)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities {acceptInsecureCerts: false, browserName: chrome, goog:chromeOptions: {args: [allow-insecure-localhost, use-fake-ui-for-media-stream, use-fake-device-for-media-s..., disable-plugins, mute-audio, disable-infobars, autoplay-policy=no-user-ges..., auto-select-desktop-capture..., disable-gpu, use-file-for-fake-audio-cap..., use-file-for-fake-video-cap..., enable-logging, vmodule=*=3], extensions: [], prefs: {intl.accept_languages: en-US}}, loggingPrefs: org.openqa.selenium.logging...}
Command duration or timeout: 106 milliseconds
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$errorHandler$0(JsonWireProtocolResponse.java:54)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
at org.jitsi.meet.test.web.WebParticipantFactory.startWebDriver(WebParticipantFactory.java:318)
at org.jitsi.meet.test.web.WebParticipantFactory.doCreateParticipant(WebParticipantFactory.java:100)
at org.jitsi.meet.test.web.WebParticipantFactory.doCreateParticipant(WebParticipantFactory.java:38)
at org.jitsi.meet.test.base.ParticipantFactory.createParticipant(ParticipantFactory.java:35)
at org.jitsi.meet.test.base.ParticipantHelper.createParticipant(ParticipantHelper.java:162)
at org.jitsi.meet.test.base.ParticipantHelper.createParticipant(ParticipantHelper.java:113)
at org.jitsi.meet.test.MalleusJitsificus$MalleusTask.join(MalleusJitsificus.java:401)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
... 3 more
Caused by: org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities {acceptInsecureCerts: false, browserName: chrome, goog:chromeOptions: {args: [allow-insecure-localhost, use-fake-ui-for-media-stream, use-fake-device-for-media-s..., disable-plugins, mute-audio, disable-infobars, autoplay-policy=no-user-ges..., auto-select-desktop-capture..., disable-gpu, use-file-for-fake-audio-cap..., use-file-for-fake-video-cap..., enable-logging, vmodule=*=3], extensions: [], prefs: {intl.accept_languages: en-US}}, loggingPrefs: org.openqa.selenium.logging...}
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'server-0.jsl286-125068.novel-scheduler.emulab.net', ip: '155.98.38.80', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-100-generic', java.version: '11.0.15'
Driver info: driver.version: unknown
at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:118)
at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:85)
at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:865)
at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.seleniumhq.jetty9.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1242)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.seleniumhq.jetty9.server.Server.handle(Server.java:503)
at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:364)
at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:260)
at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:103)
at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:132)
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
at java.lang.Thread.run(Thread.java:829)
[16] End testMain.
[ERROR] Tests run: 451, Failures: 1, Errors: 0, Skipped: 450, Time elapsed: 2.633 s <<< FAILURE! - in TestSuite
[ERROR] testMain(org.jitsi.meet.test.MalleusJitsificus) Time elapsed: 0.999 s <<< FAILURE!
java.lang.Exception: Failed with multiple errors. Throws the primary.
at org.jitsi.meet.test.MalleusJitsificus.testMain(MalleusJitsificus.java:306)
Caused by: org.openqa.selenium.WebDriverException:
Error forwarding the new session cannot find : Capabilities {acceptInsecureCerts: false, browserName: chrome, goog:chromeOptions: {args: [allow-insecure-localhost, use-fake-ui-for-media-stream, use-fake-device-for-media-s..., disable-plugins, mute-audio, disable-infobars, autoplay-policy=no-user-ges..., auto-select-desktop-capture..., disable-gpu, use-file-for-fake-audio-cap..., use-file-for-fake-video-cap..., enable-logging, vmodule=*=3], extensions: [], prefs: {intl.accept_languages: en-US}}, loggingPrefs: org.openqa.selenium.logging...}
Command duration or timeout: 106 milliseconds
Caused by: org.openqa.selenium.WebDriverException:
Error forwarding the new session cannot find : Capabilities {acceptInsecureCerts: false, browserName: chrome, goog:chromeOptions: {args: [allow-insecure-localhost, use-fake-ui-for-media-stream, use-fake-device-for-media-s..., disable-plugins, mute-audio, disable-infobars, autoplay-policy=no-user-ges..., auto-select-desktop-capture..., disable-gpu, use-file-for-fake-audio-cap..., use-file-for-fake-video-cap..., enable-logging, vmodule=*=3], extensions: [], prefs: {intl.accept_languages: en-US}}, loggingPrefs: org.openqa.selenium.logging...}
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'server-0.jsl286-125068.novel-scheduler.emulab.net', ip: '155.98.38.80', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-100-generic', java.version: '11.0.15'
Driver info: driver.version: unknown
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] MalleusJitsificus.testMain:306 Failed with multiple errors. Throws the primar...
[INFO]
[ERROR] Tests run: 447, Failures: 1, Errors: 0, Skipped: 446
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.381 s
[INFO] Finished at: 2022-05-16T14:18:49-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project jitsi-meet-torture: There are test failures.
[ERROR]
[ERROR] Please refer to /users/jsl286/jitsi-meet-torture/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
How can I stop it from trying to use chrome and make it use firefox? My hub is up and running and a node on a separate VM is also connected to it. All of my machines are Linux Ubuntu 20.04. 9 Is there anything I can do to resolve this issue?
In case this helps, this is what I ran on my node to connect it to the hub:
java -Dwebdriver.gecko.driver=/usr/local/bin/geckodriver -jar selenium-server-standalone-3.141.59.jar -role node -maxSession 1 -hub http://10.10.6.2:4444/grid/register/ -browser browserName=firefox,version=100,platform=Linux,maxInstances=1
Output:
13:50:16.301 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
13:50:16.453 INFO [GridLauncherV3.lambda$buildLaunchers$7] - Launching a Selenium Grid node on port 9237
2022-05-16 13:50:16.626:INFO::main: Logging initialized @793ms to org.seleniumhq.jetty9.util.log.StdErrLog
13:50:17.084 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet
13:50:17.195 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 9237
13:50:17.196 INFO [GridLauncherV3.lambda$buildLaunchers$7] - Selenium Grid node is up and ready to register to the hub
13:50:17.236 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 5000 ms.
13:50:17.740 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://10.10.6.2:4444/grid/register
13:50:17.799 INFO [SelfRegisteringRemote.registerToHub] - The node is registered to the hub and ready to use