Closed jjqi92 closed 10 months ago
@jjqi92, 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!
@jjqi92 - The latest released version of selenium server is 4.16.1
Can you please retry again with that?
I tried the below example on an ubuntu machine and it worked fine.
java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true -jar selenium-server-4.16.1.jar standalone
And oh btw, I think now the JDK client is the default http client and you don't need to be specifying that jar explicitly via the --ext
argument.
If you noticed any errors, please help share the complete output and not just the stacktrace. That way it would be easy to debug
I think I may have used the wrong command. i want to register hub, so i use new cmd:
java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true -jar selenium-server-4.16.1.jar hub
15:41:15.152 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
15:41:15.173 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
15:41:15.320 INFO [BoundZmqEventBus.
it seems started, but it still prompts error when i create a driver via code.
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setCapability("browserVersion", "100");
chromeOptions.setCapability("platformName", "Windows");
driver = new RemoteWebDriver(new URL("http://xxx:4444"), chromeOptions);
it prompts exception: org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException Build info: version: '4.15.0', revision: '1d14b5521b' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.14.1' Driver info: driver.version: RemoteWebDriver
can you help me take a look this problem?
Can you share the complete logs of Hub and the Node? It will help us understand if the node registered properly with the hub. Also, please try the latest version, 4.16.1.
hub log:
[deploy@r100021942-71071997-s44rq bin]$ java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true -jar selenium-server-4.16.1.jar hub
15:41:15.152 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
15:41:15.173 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
15:41:15.320 INFO [BoundZmqEventBus.
15:52:44.120 INFO [Node.
15:55:44.106 INFO [Node.
node log:
15:46:41.250 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
15:46:41.257 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
15:46:41.391 INFO [UnboundZmqEventBus.
@pujagani The complete log has been added.
@jjqi92 - It looks like the node is resolving to an internal IP address which is what it is using to register itself to the hub.
During registration, when the node sends a registration request to the hub, the hub uses the IP address sent by the node, to periodically poll the node to determine if its reachable and if its not reachable, it gets rid of it and the node continues to try and register itself.
That explains why you keep seeing so many "Sending Registration event" messages.
You would need to find out what is the publicly reachable IP address of the machine where your node runs and use that through the command line arg --host
when spawning the node.
You can perhaps refer to this post to find out how to determine your private and public ip addresses (usually happens when there are more than 1 network interface i believe) https://askubuntu.com/q/1153964
Thanks @krmahadevan and @pujagani for troubleshooting.
Yes, you need to follow what @krmahadevan is suggesting. I will mark this as a question and it will get closed, but feel free to continue the conversation if you wish.
💬 Please ask questions at:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
What happened?
when i execute : java -Dwebdriver.http.factory=jdk-http-client --add-opens java.base/jdk.internal.misc=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true -jar selenium-server-4.15.0.jar --ext selenium-http-jdk-client-4.13.0.jar standalone it appends exception: java.lang.reflect.InvocationTargetException 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.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:166) at org.openqa.selenium.grid.commands.Standalone.createHandlers(Standalone.java:217) at org.openqa.selenium.grid.TemplateGridServerCommand.asServer(TemplateGridServerCommand.java:47) at org.openqa.selenium.grid.commands.Standalone.execute(Standalone.java:262) 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) ... 6 more Caused by: java.lang.reflect.InvocationTargetException 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.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:1737) at org.openqa.selenium.grid.config.MemoizedConfig.getClass(MemoizedConfig.java:99) ... 14 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:513) at org.openqa.selenium.grid.node.config.NodeOptions.getSessionFactories(NodeOptions.java:232) at org.openqa.selenium.grid.node.local.LocalNodeFactory.create(LocalNodeFactory.java:79) ... 22 more
How can we reproduce the issue?
Relevant log output
Operating System
linux
Selenium version
java11 selenium4.15.0
What are the browser(s) and version(s) where you see this issue?
no
What are the browser driver(s) and version(s) where you see this issue?
no
Are you using Selenium Grid?
4.15.0