SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.63k stars 8.18k forks source link

[🐛 Bug]: After a Timeout exception : Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Host info: host: 'fv-az395-540', ip: '10.1.0.38' #14356

Closed HrishikeshRangdale-gep closed 1 month ago

HrishikeshRangdale-gep commented 2 months ago

What happened?

System info: os.name: 'Windows Server 2022', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.12' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 127.0.6533.73, chrome: {chromedriverVersion: 127.0.6533.72 (9755e24ca85a..., userDataDir: C:\Windows\SystemTemp\scope...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:49178}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:49178/devtoo..., se:cdpVersion: 127.0.6533.73, 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} Session ID: db87a3f3bcb1d88a7ed9da8db9e8f8e3 at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:84) ~[selenium-support-4.23.0.jar:?] at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:228) ~[selenium-support-4.23.0.jar:?] at com.gep.utils.selenium.RenderPageObjectView.waitForPresenceOf(RenderPageObjectView.java:214) ~[smarttest-seleniumcore-QC_LEO-SNAPSHOT.jar:QC_LEO-SNAPSHOT] ... 31 more Element with By.xpath: //span[@id='nexx-btn-Accept']/a|//button[@id='buttonText']|//dm-button//span[@id='nexx-btn-Approve']|//div[@role='listbox']/descendant::a[normalize-space(text())='Accept']|//span[@id='nexx-btn-btnAccept']/a|//span[@id='nexx-btn-reviewaccept']|//span[@id='nexx-btn-fixedassetaccept']|//li[normalize-space(text())='Accept']|//div[normalize-space(text())='Accept'] was not loaded in specified timeout of 120 seconds kindly refer attached screenshot for more clearification Running test 9 : P2P\InvoiceCM\TC_E2ECreateCreditMemo.smarttest.xml Aug 08, 2024 8:14:55 AM org.openqa.selenium.concurrent.ExecutorServices shutdownGracefully WARNING: Failed to shutdown Driver Service Executor java.lang.InterruptedException

How can we reproduce the issue?

after a script fails due to timeoutexception, the new sessions are not getting started and job gets stuck for long time

Aug 08, 2024 8:14:55 AM org.openqa.selenium.concurrent.ExecutorServices shutdownGracefully
WARNING: Failed to shutdown Driver Service Executor
java.lang.InterruptedException

Relevant log output

System info: os.name: 'Windows Server 2022', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.12'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 127.0.6533.73, chrome: {chromedriverVersion: 127.0.6533.72 (9755e24ca85a..., userDataDir: C:\Windows\SystemTemp\scope...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:49178}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: windows, proxy: Proxy(), se:cdp: ws://localhost:49178/devtoo..., se:cdpVersion: 127.0.6533.73, 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}
Session ID: db87a3f3bcb1d88a7ed9da8db9e8f8e3
    at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:84) ~[selenium-support-4.23.0.jar:?]
    at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:228) ~[selenium-support-4.23.0.jar:?]
    at com.gep.utils.selenium.RenderPageObjectView.waitForPresenceOf(RenderPageObjectView.java:214) ~[smarttest-seleniumcore-QC_LEO-SNAPSHOT.jar:QC_LEO-SNAPSHOT]
    ... 31 more
Element  with By.xpath: //span[@id='nexx-btn-Accept']/a|//button[@id='buttonText']|//dm-button//span[@id='nexx-btn-Approve']|//div[@role='listbox']/descendant::a[normalize-space(text())='Accept']|//span[@id='nexx-btn-btnAccept']/a|//span[@id='nexx-btn-reviewaccept']|//span[@id='nexx-btn-fixedassetaccept']|//li[normalize-space(text())='Accept']|//div[normalize-space(text())='Accept'] was not loaded in specified timeout of 120 seconds kindly refer attached screenshot for more clearification
Running test 9 : P2P\InvoiceCM\TC_E2ECreateCreditMemo.smarttest.xml
Aug 08, 2024 8:14:55 AM org.openqa.selenium.concurrent.ExecutorServices shutdownGracefully
WARNING: Failed to shutdown Driver Service Executor
java.lang.InterruptedException

Operating System

Windows Server 2022 (20240729) Image Update

Selenium version

4.23 and 4.22

What are the browser(s) and version(s) where you see this issue?

chrome 127.0.6533.73

What are the browser driver(s) and version(s) where you see this issue?

127.0.6533.72 and 127.0.6533.99

Are you using Selenium Grid?

no

github-actions[bot] commented 2 months ago

@HrishikeshRangdale-gep, 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!

HrishikeshRangdale-gep commented 2 months ago

java.lang.InterruptedException at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1662) at java.base/java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1464) at org.openqa.selenium.concurrent.ExecutorServices.shutdownGracefully(ExecutorServices.java:33) at org.openqa.selenium.remote.service.DriverCommandExecutor.close(DriverCommandExecutor.java:221) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:169) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604) at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:435) at org.openqa.selenium.chromium.ChromiumDriver.quit(ChromiumDriver.java:435) at com.gep.lifecycle.commands.selenium.DriverUtils$1.run(DriverUtils.java:148)

HrishikeshRangdale-gep commented 2 months ago

Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960) ~[?:?] at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095) ~[?:?] at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1662) at java.base/java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1464) at org.openqa.selenium.concurrent.ExecutorServices.shutdownGracefully(ExecutorServices.java:33) at org.openqa.selenium.remote.service.DriverCommandExecutor.close(DriverCommandExecutor.java:221) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:169) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604) at org.openqa.selenium.chromium.ChromiumDriver.quit(ChromiumDriver.java:435) at com.gep.lifecycle.commands.selenium.DriverUtils$1.run(DriverUtils.java:148)

github-actions[bot] commented 2 months ago

Hi, @HrishikeshRangdale-gep. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

HrishikeshRangdale-gep commented 2 months ago

Already added

Get Outlook for iOShttps://aka.ms/o0ukef


From: github-actions[bot] @.> Sent: Thursday, August 8, 2024 5:45:52 PM To: SeleniumHQ/selenium @.> Cc: Hrishikesh Rangdale @.>; Mention @.> Subject: Re: [SeleniumHQ/selenium] [🐛 Bug]: After a Timeout exception : Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Host info: host: 'fv-az395-540', ip: '10.1.0.38' (Issue #14356)

Hi, @HrishikeshRangdale-gephttps://github.com/HrishikeshRangdale-gep. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

— Reply to this email directly, view it on GitHubhttps://github.com/SeleniumHQ/selenium/issues/14356#issuecomment-2275675926, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSZSCDWMJRHQI6O2LKZQELZQNOPRAVCNFSM6AAAAABMGBU33WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZVGY3TKOJSGY. You are receiving this because you were mentioned.Message ID: @.***>

pujagani commented 2 months ago

I am sorry I don't see a reproducible test script. We require it so we can reproduce the issue, triage it and then fix it. It is difficult for us to help without a complete reproducible test script. I don't see it as part the issue reported. Please add one.

diemol commented 1 month ago

We are closing this issue as we didn't get a reply from the original poster.

If someone is facing this issue, feel free to comment and provide a concise reproducible test case that includes the page required to execute the scenario (a sample page or a public site).

If you have any questions or need help, join us in the IRC/Slack channel, where the community can also assist you.

github-actions[bot] commented 1 week ago

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.