-
Notifications
You must be signed in to change notification settings - Fork 128
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
OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://172.17.0.1:4444/wd/hub/session/1e5f379f0532f667f3bf7505a142a91b/url timed out after 60 seconds. #48
Comments
@Benny86 your commands seem to be correct. However if you already have a
Otherwise you may have inconsistency between |
@Benny86 Timeout in |
@vania-pooh 1st error not prompts on after add "--force", Thanks. But the for timeout issue is still here, you can see the timeout url are weird: "http://172.17.0.1:4444/wd/hub/session/1dab75ab205e3b463e10aeaf5a882c36/url", right? As you said, to see the details by Selenoid UI, VNC feature or video recording, how to do it? |
@vania-pooh from its logs, we can see the Selenoid video has been setup and enabled $ docker logs fc44 , but we cannot find anything under the /opt folder, it's expected to have selenoid/video here, right? on page: https://aerokube.com/selenoid/latest/#_video_recording_enablevideo_videoname_videoscreensize_videoframerate, which saide to add "enableVideo:true" and "videoName: "my-cool-video.mp4"..., how to do it? BTW, is there another way to locate current url timeout issues? |
@Benny86 1) You can add
very frequently means - that our server or virtual machine is overloaded. |
@vania-pooh What's kind of data would be filled for "version", 'app", "appPackage" and "appActivity"? BTW, I use chrome here, and host is azure/ubuntu final DesiredCapabilities device = new DesiredCapabilities(); 37 driver = new RemoteWebDriver(new URL( |
@vania-pooh you said :"very frequently means - that our server or virtual machine is overloaded.", any suggestions to fix it? Thanks. |
@Benny86 just take a look at system metrics as CPU consumption, memory consumption, load average, disk consumption and increase number of CPUs / any other stuff accordingly if needed. |
@vania-pooh Issues have been resolved. Actually, this is caused by the DNS changed of target testing environment, after switch to another environment, case passed. Thanks. |
@vania-pooh We will do much more investigation to use Selenoid from a push pipeline, that means no manual steps to install selenoid container on host. If possible, I will ping you for any questions or issues here. Thanks for your supports. |
@Benny86 sure. I have seen a set of similar issues created during this investigation. Feel free to close any issues that are already resolved. |
Not sure this is a bug, please double check. If not, please specify the correct/supported way. Thanks
1.Setup Selenoid container on host automatically:
curl -s https://aerokube.com/cm/bash | bash && ./cm selenoid start --browser "chrome"
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4faae28f028e aerokube/selenoid:1.6.2 "/usr/bin/selenoid -…" 19 minutes ago Up 19 minutes 0.0.0.0:4444->4444/tcp selenoid
and it's container logs:
2018/07/06 05:23:19 [-] [INIT] [Loading configuration files...]
2018/07/06 05:23:19 [-] [INIT] [Loaded configuration from /etc/selenoid/browsers.json]
2018/07/06 05:23:19 [-] [INIT] [Using default containers log configuration because of: read error: open config/container-logs.json: no such file or directory]
2018/07/06 05:23:19 [-] [INIT] [Using Docker API version: 1.37]
2018/07/06 05:23:19 [-] [INIT] [Timezone: Local]
2018/07/06 05:23:19 [-] [INIT] [Video Dir: /opt/selenoid/video]
2018/07/06 05:23:19 [-] [INIT] [Listening on :4444]
curl http://localhost:4444/status
{"total":5,"used":0,"queued":0,"pending":0,"browsers":{"chrome":{"66.0":{},"67.0":{}},"firefox":{"59.0":{},"60.0":{}},"opera":{"52.0":{},"53.0":{}}}}
curl http://localhost:4444/wd/hub
Moved Permanently.
var url = "http://172.17.0.1:4444/wd/hub";
driver = new RemoteWebDriver(new Uri(url), DesiredCapabilities.Chrome());
Notes: 172.17.0.1 is docker0 ip
2018/07/06 05:14:05 [0] [CREATING_CONTAINER] [selenoid/vnc_chrome:67.0]
2018/07/06 05:14:05 [0] [SERVICE_STARTUP_FAILED] [create container: Error: No such image: selenoid/vnc_chrome:67.0]
Notes: It should be installed during step 1 automatically, right?
docker pull selenoid/vnv_chrome:67.0
Notes: docker pull selenoid/vnc_chrome doesn't work for us, normally it should auto go the latest one, right?
Error Message:
OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://172.17.0.1:4444/wd/hub/session/1e5f379f0532f667f3bf7505a142a91b/url timed out after 60 seconds.
---- System.Net.WebException : The operation has timed out.
Stack Trace:
at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.set_Url(String value)
at SM_Regression.TestScripts.IncidentManagement.INC_create_001.step_001_OpenNewIncident() in /tmp/jenkins/data/docker/workspace/Selenoid-job/SM_Regression/TestScripts/IncidentManagement/INC_create_001.cs:line 40
----- Inner Stack Trace -----
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
The text was updated successfully, but these errors were encountered: