Open fabiohecht opened 3 months ago
@fabiohecht, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
What is the output of java -jar selenium-server-4.23.0.jar standalone --selenium-manager true
?
What is the output of
java -jar selenium-server-4.23.0.jar standalone --selenium-manager true
?
you can find it in my report, search for "with selenium manager"
No, but you are not running that exact command, you are running it with 4.8.3, not with 4.23.0
it's there, in "Relevant log output", search for "with selenium manager":
$ java -jar selenium-server-4.23.0.jar standalone --log-level FINE --selenium-manager true
15:40:50.755 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
15:40:50.759 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
15:40:50.785 DEBUG [JavaVersionSpecific.<clinit>] - Using the APIs optimized for: Java 9+
15:40:51.234 INFO [NodeOptions.getSessionFactories] - Detected 16 available processors
15:40:51.252 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\tk3vf\.cache\selenium\manager\0.4.23\selenium-manager.exe
15:40:51.252 DEBUG [SeleniumManager.runCommand] - Executing Process: [--browser, chrome, --language-binding, java, --output, json, --debug]
15:40:51.262 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\tk3vf\.cache\selenium\manager\0.4.23\selenium-manager.exe
15:40:51.263 DEBUG [SeleniumManager.runCommand] - Executing Process: [--browser, MicrosoftEdge, --language-binding, java, --output, json, --debug]
15:40:51.269 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\tk3vf\.cache\selenium\manager\0.4.23\selenium-manager.exe
15:40:51.269 DEBUG [SeleniumManager.runCommand] - Executing Process: [--browser, firefox, --language-binding, java, --output, json, --debug]
15:40:51.275 DEBUG [SeleniumManager.getBinary] - Selenium Manager binary found at: C:\Users\tk3vf\.cache\selenium\manager\0.4.23\selenium-manager.exe
15:40:51.275 DEBUG [SeleniumManager.runCommand] - Executing Process: [--browser, internet explorer, --language-binding, java, --output, json, --debug]
15:40:51.287 WARN [NodeOptions.addDetectedDrivers] - No drivers have been configured or have been found on PATH
15:40:51.287 ERROR [Bootstrap.runMain] - Error during execution
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:77)
at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
Caused by: org.openqa.selenium.grid.config.ConfigException: java.lang.reflect.InvocationTargetException
at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:119)
at org.openqa.selenium.grid.node.config.NodeOptions.getNode(NodeOptions.java:181)
at org.openqa.selenium.grid.commands.Standalone.createNode(Standalone.java:253)
at org.openqa.selenium.grid.commands.Standalone.createHandlers(Standalone.java:219)
at org.openqa.selenium.grid.TemplateGridServerCommand.asServer(TemplateGridServerCommand.java:47)
at org.openqa.selenium.grid.commands.Standalone.execute(Standalone.java:239)
at org.openqa.selenium.grid.TemplateGridCommand.lambda$configure$4(TemplateGridCommand.java:122)
at org.openqa.selenium.grid.Main.launch(Main.java:83)
at org.openqa.selenium.grid.Main.go(Main.java:56)
at org.openqa.selenium.grid.Main.main(Main.java:41)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.openqa.selenium.grid.config.ClassCreation.callCreateMethod(ClassCreation.java:51)
at org.openqa.selenium.grid.config.MemoizedConfig.lambda$getClass$4(MemoizedConfig.java:104)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1740)
at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:99)
... 13 more
Caused by: org.openqa.selenium.grid.config.ConfigException: No drivers have been configured or have been found on PATH
at org.openqa.selenium.grid.node.config.NodeOptions.addDetectedDrivers(NodeOptions.java:531)
at org.openqa.selenium.grid.node.config.NodeOptions.getSessionFactories(NodeOptions.java:247)
at org.openqa.selenium.grid.node.local.LocalNodeFactory.create(LocalNodeFactory.java:79)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 18 more
15:40:51.288 DEBUG [Shutdown.logRuntimeExit] - Runtime.exit() called with status: 1
java.lang.Throwable: Runtime.exit(1)
at java.base/java.lang.Shutdown.logRuntimeExit(Shutdown.java:179)
at java.base/java.lang.Shutdown.exit(Shutdown.java:160)
at java.base/java.lang.Runtime.exit(Runtime.java:188)
at java.base/java.lang.System.exit(System.java:1920)
at org.openqa.selenium.grid.Bootstrap.runMain(Bootstrap.java:80)
at org.openqa.selenium.grid.Bootstrap.main(Bootstrap.java:70)
@fabiohecht I tried selenium server v4.23.0, but I didn't have any previous versions installed. Below is the output. What version of Java do you have installed?
Operating System: Windows 11 Java Version: 21 Browsers Installed: Edge 127.0.2651.98 (Official build) (arm64) (Chromium version: 127.0.6533.100) Selenium Server: 4.23.0
I found a workaround to make it work (only without Selenium Manager) when the chromedriver is in the same folder as the selenium-server jar. Setting the PATH env variable also did not work.
$ java -Dwebdriver.chrome.driver=. -jar selenium-server-4.23.1.jar standalone
10:58:35.212 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
10:58:35.217 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
10:58:35.716 INFO [NodeOptions.getSessionFactories] - Detected 16 available processors
10:58:35.717 INFO [NodeOptions.discoverDrivers] - Looking for existing drivers on the PATH.
10:58:35.717 INFO [NodeOptions.discoverDrivers] - Add '--selenium-manager true' to the startup command to setup drivers automatically.
10:58:35.862 INFO [NodeOptions.report] - Adding Chrome for {"browserName": "chrome","platformName": "Windows 10"} 16 times
10:58:35.885 INFO [Node.<init>] - Binding additional locator mechanisms: relative
10:58:35.898 INFO [GridModel.setAvailability] - Switching Node 71ac2d87-9a18-4623-8786-080f9eb2c0a7 (uri: http://192.168.1.110:4444) from DOWN to UP
10:58:35.899 INFO [LocalDistributor.add] - Added node 71ac2d87-9a18-4623-8786-080f9eb2c0a7 at http://192.168.1.110:4444. Health check every 120s
10:58:36.052 INFO [Standalone.execute] - Started Selenium Standalone 4.23.1 (revision 656257d8e9): http://192.168.1.110:4444
Here is my Java version:
$ java -version
openjdk version "21.0.3" 2024-04-16 LTS
OpenJDK Runtime Environment Zulu21.34+20-SA (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Zulu21.34+20-SA (build 21.0.3+9-LTS, mixed mode, sharing)
Not great, but at least it starts.
What happened?
I'm upgrading from 4.8.3 to 4.23.0 and when running the jar in standalone mode, I am getting the error "ConfigException: No drivers have been configured or have been found on PATH". But I have a chrome driver in the same directory as the jar.
I tried the following without avail:
Any hints appreciated. Thanks for your help!
Cheers,
Fabio
How can we reproduce the issue?
Relevant log output
Operating System
Win 10
Selenium version
4.23.0
What are the browser(s) and version(s) where you see this issue?
Chrome 127
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 125.0.6422.141
Are you using Selenium Grid?
No response