-
-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰 Bug]: Unable run scripts using remote webdriver on remote machines #14197
Comments
@nairdinesh04, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Can you share the complete Grid logs? Hub and Node. |
I dont see any logs on grid command prompt. The only logs that I have is what I see in my IDE and the same has been posted above. |
Are you sure that the following code-snipped points to the right URL of the Grid? So like: new URL("http://localhost:4444") if i run it localy? Can you please share the Capabilities witch are in the option on time you create the Remote-Webdriver? |
As I cannot share the IP in the code snippet I have mentioned hub in the snip. The capability in the option is already shared nothing else apart from that. |
What happend if you call this? ( Please change IP)
|
I think, that your Application does not have access to the Grid or to the port 4444. |
Yes I think Grid is fine because nodes(other remote VMs) are able to get registered on the node. Let me try running the script from the same machine as grid. I will update the result here. |
I tried executing code from the same machine where grid is running, but I am seeing the same error.
For this if I am not wrong "URL" is deprecated and we will have to use URI.ToUrl() instead. |
There must be logs, unless you specifically tell the Grid to not log anything. How are you starting the Grid? Can you please check on the Grid machine(s) for the logs when it starts and when the execution is attempted? |
-----------These are all the logs I see--------------------------------------- C:\Users\user\Downloads>java -jar selenium-server-4.21.0.jar hub (This is how I am starting grid) 00:17:27.550 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding 05:08:54.071 INFO [LocalDistributor.newSession] - Session request received by the Distributor: 05:13:54.173 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "bc0d8e3f69fb66d17a0c4c4e1dd5c02c","eventTime": 1719569634163193500,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "localhost:4444","http.method": "POST","http.request_content_length": "291","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "selenium\u002f4.20.0 (java windows)"}} 05:08:54.081 INFO [LocalDistributor.newSession] - Session request received by the Distributor: |
Not sure why logs are getting stroked out. |
Strangely I see execution happening in one node machine now. However the tests are running only in one node as of now. Trying to find what's wrong with the other node. Registration is successful though. |
you are very welcome |
What happened?
Hi There,
I have a selenium grid hub and two nodes registered to the same.
I can see the node sessions on selenium grid UI.
But I get error saying when executing my scripts and browsers are not getting launched:
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Selenium Version :
org.seleniumhq.selenium
selenium-java
4.20.0
Browser - Chrome
How can we reproduce the issue?
Operating System
Windows 10
Selenium version
Java 4.20.0
What are the browser(s) and version(s) where you see this issue?
Chrome - 126.0.6478.127
What are the browser driver(s) and version(s) where you see this issue?
NA
Are you using Selenium Grid?
4.21.0
The text was updated successfully, but these errors were encountered: