Comments (14)
@nairdinesh04, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
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!
from selenium.
Can you share the complete Grid logs? Hub and Node.
from selenium.
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.
from selenium.
Are you sure that the following code-snipped points to the right URL of the Grid?
new URI("hub:")
So like: new URL("http://localhost:4444") if i run it localy?
Because if you have a connection-timeout and you don't see anything in the log of grid or node, it looks like there is absolutely no connection from your application to the grid.
Can you please share the Capabilities witch are in the option on time you create the Remote-Webdriver?
And if its possible a little bit more code on top of this code snipped?
from selenium.
As I cannot share the IP in the code snippet I have mentioned hub in the snip.
"So like: new URL("http://localhost:4444/") if I run it locally?" - this is correct. Just to be clear I am not running hub locally though, so I point to the IP of the hub VM.
The capability in the option is already shared nothing else apart from that.
from selenium.
What happend if you call this? ( Please change IP)
public static void main(String[] args) throws MalformedURLException { String ip = "localhost"; String port = "4444"; String gridUrl = "http://".concat(ip).concat(":").concat(port); WebDriver driver = new RemoteWebDriver(new URL(gridUrl), new ChromeOptions()); driver.quit(); }
from selenium.
I think, that your Application does not have access to the Grid or to the port 4444.
Are you sure the port is exposed from the Server, the Hub is running on?
And is the Server callable without a proxy or something?
from selenium.
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.
from selenium.
I tried executing code from the same machine where grid is running, but I am seeing the same error.
public static void main(String[] args) throws MalformedURLException { String ip = "localhost"; String port = "4444"; String gridUrl = "http://".concat(ip).concat(":").concat(port); WebDriver driver = new RemoteWebDriver(new URL(gridUrl), new ChromeOptions()); driver.quit(); }
For this if I am not wrong "URL" is deprecated and we will have to use URI.ToUrl() instead.
from selenium.
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.
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?
from selenium.
-----------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
00:17:27.565 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
00:17:28.312 INFO [BoundZmqEventBus.] - XPUB binding to [binding to tcp://:4442, advertising as tcp://10.133.48.159:4442], XSUB binding to [binding to tcp://:4443, advertising as tcp://xxxxxx:xxxxxx]
00:17:28.484 INFO [UnboundZmqEventBus.] - Connecting to tcp://xxxxxx:xxxxxxand tcp://xxxxxx:xxxxx
00:17:28.703 INFO [UnboundZmqEventBus.] - Sockets created
00:17:30.015 INFO [UnboundZmqEventBus.] - Event bus ready
00:17:31.531 INFO [Hub.execute] - Started Selenium Hub 4.21.0 (revision 79ed462): http://xxxxxxxxx:xxxxx
00:19:30.979 INFO [Node.] - Binding additional locator mechanisms: relative
00:19:41.910 INFO [Node.] - Binding additional locator mechanisms: relative
00:20:02.112 INFO [Node.] - Binding additional locator mechanisms: relative
00:20:17.758 INFO [Node.] - Binding additional locator mechanisms: relative
00:20:27.879 INFO [Node.] - Binding additional locator mechanisms: relative
00:20:37.935 INFO [Node.] - Binding additional locator mechanisms: relative
00:20:47.974 INFO [Node.] - Binding additional locator mechanisms: relative
00:20:58.012 INFO [Node.] - Binding additional locator mechanisms: relative
00:21:20.903 INFO [Node.] - Binding additional locator mechanisms: relative
00:21:31.523 INFO [Node.] - Binding additional locator mechanisms: relative
00:21:41.537 INFO [Node.] - Binding additional locator mechanisms: relative
00:22:05.061 INFO [Node.] - Binding additional locator mechanisms: relative
00:22:06.255 INFO [GridModel.setAvailability] - Switching Node 55e1baec-0956-4d2f-b2a9-8fcc8c3753ac (uri: http://10.133.48.190:5556) from DOWN to UP
00:22:06.255 INFO [LocalDistributor.add] - Added node 55e1baec-0956-4d2f-b2a9-8fcc8c3753ac at http://xxxxxxx:xxxx. Health check every 120s
00:22:36.955 INFO [Node.] - Binding additional locator mechanisms: relative
00:22:46.990 INFO [Node.] - Binding additional locator mechanisms: relative
00:22:57.716 INFO [Node.] - Binding additional locator mechanisms: relative
00:23:07.756 INFO [Node.] - Binding additional locator mechanisms: relative
00:23:21.117 INFO [Node.] - Binding additional locator mechanisms: relative
01:34:51.970 INFO [Node.] - Binding additional locator mechanisms: relative
01:34:52.458 INFO [GridModel.setAvailability] - Switching Node 8e6f8c61-d1a0-41cb-809e-b4c7b8d3dd7b (uri: http://xxxxxxxxxxxx:xxxx) from DOWN to UP
01:34:52.458 INFO [LocalDistributor.add] - Added node 8e6f8c61-d1a0-41cb-809e-b4c7b8d3dd7b at htto://xxxxxxx:xxxx. Health check every 120s
05:08:54.071 INFO [LocalDistributor.newSession] - Session request received by the Distributor:
[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], excludeSwitches: [enable-automation], extensions: []}}]
05:13:54.197 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "ce4880119a96041011b32a8c2f244d67","eventTime": 1719569634190037000,"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: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:
[Capabilities {browserName: chrome, goog:chromeOptions: {args: [], excludeSwitches: [enable-automation], extensions: []}}]
05:35:50.314 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 9d2f7e2e04675918db5b3c1706d9dc1e
Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 126.0.6478.127, chrome: {chromedriverVersion: 126.0.6478.126 (d36ace6122e..., userDataDir: C:\Users\SVC_CM1\AppData\L...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:54546}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: Windows 10, proxy: {}, se:bidiEnabled: false, se:cdp: ws://10.133.48.159:4444/gri..., se:cdpVersion: 126.0.6478.127, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}1\AppData\L...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:54545}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: Windows 10, proxy: {}, se:bidiEnabled: false, se:cdp: ws://hub:/gri..., se:cdpVersion: 126.0.6478.127, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
05:35:50.598 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 5edde53b5205cdb2e0d0bc5273be5271
Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 126.0.6478.127, chrome: {chromedriverVersion: 126.0.6478.126 (d36ace6122e..., userDataDir: C:\Users\SVC_CM
05:35:58.572 INFO [LocalSessionMap.lambda$new$0] - Deleted session from local Session Map, Id: 5edde53b5205cdb2e0d0bc5273be5271
05:35:58.584 INFO [GridModel.release] - Releasing slot for session id 5edde53b5205cdb2e0d0bc5273be5271
05:36:00.641 INFO [LocalSessionMap.lambda$new$0] - Deleted session from local Session Map, Id: 9d2f7e2e04675918db5b3c1706d9dc1e
05:36:00.645 INFO [GridModel.release] - Releasing slot for session id 9d2f7e2e04675918db5b3c1706d9dc1e
from selenium.
Not sure why logs are getting stroked out.
from selenium.
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.
I will need sometime to debug. We can close this ticket and if needed I will create a separate one. Thank you very much all of you!!
from selenium.
you are very welcome
from selenium.
Related Issues (20)
- [🚀 Feature]: BiDi: Add low-level helper method to subscribe/unsubscribe from events HOT 5
- [🐛 Bug]: selenium-server-standalone-2.53.0.jar fails to extract on Windows using Java 21 jar.exe HOT 2
- [🐛 Bug]: Setting timeouts in Python
- Not able initiate browser in remote system whereas it's working fine in local system[🐛 Bug]: HOT 6
- [🐛 Bug]: The problem of [java.lang.IllegalArgumentException: Unknown HttpClient factory jdk-http-client] has appeared again. HOT 4
- [🐛 Bug]: selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location HOT 5
- [🐛 Bug]: Getting timeout exception in selenium grid (WebDriver could not start a new session. Response Code 500 HOT 4
- [🚀 Feature]: Implement high level BiDi navigation commands
- [🐛 Bug]: Timeout error when trying to capture screenshot using DevTools HOT 1
- [🐛 Bug]: Exception in thread "main" java.lang.NoClassDefFoundError: io/netty/util/Timer HOT 2
- [🐛 Bug]: HOT 3
- [🐛 Bug]: raise WebDriverException( selenium.common.exceptions.WebDriverException) HOT 7
- [🐛 Bug]: Unable to close the browser driver and unable to do parallel run in ADO pipeline HOT 3
- [🐛 Bug]: Cannot start mobile application with appium when slot also specifies a 'browserName' capability HOT 4
- [🐛 Bug]: selenium wont start with none message shown. HOT 38
- [🐛 Bug]: Selenium Grid - WebDriver was unable to create a new instance of type org.openqa.selenium.chrome.ChromeDriver HOT 5
- [🚀 Feature]: wait for networkidle HOT 3
- [🚀 Feature]: Expose Selenium Version in Node.js npm Package HOT 3
- Java selenium threads are not getting destroyed on driver.quit HOT 14
- [🐛 Bug]: RemoteConnection.set_certificate_bundle_path set as None does NOT work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.