Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Download of chromedriver fails with socket exception 10054 #12788

Closed
olafrose opened this issue Sep 20, 2023 · 8 comments
Closed

Comments

@olafrose
Copy link

What happened?

After the latest chrome update selenium manager can't download the correct chrome webdriver anymore.
While trying to diagnose the problem I found the following:

Running
./selenium-manager.exe --browser chrome --debug
in a powershell on windows 11 i get the following output:
DEBUG chromedriver not found in PATH DEBUG chrome detected at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe DEBUG Running command: wmic datafile where name='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' get Version /value DEBUG Output: "\r\r\n\r\r\nVersion=117.0.5938.89\r\r\n\r\r\n\r\r\n\r" DEBUG Detected browser: chrome 117.0.5938.89 DEBUG Discovering versions from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json DEBUG Required driver: chromedriver 117.0.5938.88 DEBUG Downloading chromedriver 117.0.5938.88 from https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.88/win64/chromedriver-win64.z ip ERROR error sending request for url (https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.88/win64/chromedriver-win64.zip): error tr ying to connect: Eine vorhandene Verbindung wurde vom Remotehost geschlossen. (os error 10054)

As this looked like a proxy config issue to me at first glance i tried to wget the chromedriver zip and - targetting the exact same URI where selenium manager failed wget downloaded the file without issues.

How can we reproduce the issue?

`./selenium-manager.exe --browser chrome --debug`

Relevant log output

DEBUG	chromedriver not found in PATH
DEBUG	chrome detected at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
DEBUG	Running command: wmic datafile where name='C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' get Version /value
DEBUG	Output: "\r\r\n\r\r\nVersion=117.0.5938.89\r\r\n\r\r\n\r\r\n\r"
DEBUG	Detected browser: chrome 117.0.5938.89
DEBUG	Discovering versions from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json
DEBUG	Required driver: chromedriver 117.0.5938.88
DEBUG	Downloading chromedriver 117.0.5938.88 from https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.88/win64/chromedriver-win64.z
ip
ERROR	error sending request for url (https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5938.88/win64/chromedriver-win64.zip): error tr
ying to connect: Eine vorhandene Verbindung wurde vom Remotehost geschlossen. (os error 10054)

Operating System

Windows 11

Selenium version

.Net 4.12.4

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

Chrome 117.0.5938.89

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

ChromeDriver 117.0.5938.88

Are you using Selenium Grid?

No response

@github-actions
Copy link

@olafrose, 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!

@titusfortner
Copy link
Member

Is it a problem from the last Chrome update or from a Selenium update? Selenium Manager isn't downloading from a different location.

Is it always failing, or intermittent?
Are you using the same user/permissions for wget as for running the Selenium code?

@nvborisenko
Copy link
Member

It might be related to proxy settings: https://www.selenium.dev/documentation/selenium_manager/#configuration

@olafrose
Copy link
Author

The machine running the tests is behind an autoproxy, so if selenium manager doesn't automatically respect these settings i need a way to configure it to use the autoproxy. I don't see that option in the CLI parameters, so any hints there would be appreciated.

@olafrose
Copy link
Author

olafrose commented Sep 22, 2023

Is it a problem from the last Chrome update or from a Selenium update? Selenium Manager isn't downloading from a different location.

I haven't noticed the error before updating selenium, but then i haven't ran the tests in quite some time because our test manager was away...

Is it always failing, or intermittent? Are you using the same user/permissions for wget as for running the Selenium code?

Right now it is always failing and the same user that runs the wget also is used to execute the tests.

@titusfortner
Copy link
Member

Ah, I know selenium supports with setProxyAutoconfigUrl
We need to investigate for rust implementation.

@titusfortner
Copy link
Member

The fix for this has been merged. If 4.17 does not address it, please open a new ticket with updated information.

Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants