Giter Site home page Giter Site logo

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. about images HOT 12 CLOSED

aerokube avatar aerokube commented on August 26, 2024
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.

from images.

Comments (12)

vania-pooh avatar vania-pooh commented on August 26, 2024

@Benny86 your commands seem to be correct. However if you already have a ~/.aerokube/selenoid/browsers.json on the host where you start cm then you need to add --force flag to overwrite this file. E.g. command could be:

curl -s https://aerokube.com/cm/bash | bash && ./cm selenoid start --browser "chrome" --vnc --force

Otherwise you may have inconsistency between browsers.json file and already pulled images.

from images.

vania-pooh avatar vania-pooh commented on August 26, 2024

@Benny86 Timeout in /url operation can be caused by corporate firewall rules blocking access to static resources. You can use Selenoid UI and VNC feature or video recording to see why it's happening

from images.

Benny86 avatar Benny86 commented on August 26, 2024

@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?

from images.

vania-pooh avatar vania-pooh commented on August 26, 2024

@Benny86 see https://aerokube.com/selenoid/latest/#_video_recording_enablevideo_videoname_videoscreensize_videoframerate

from images.

Benny86 avatar Benny86 commented on August 26, 2024

@vania-pooh
When setup Selenoid container on host by below:
curl -s https://aerokube.com/cm/bash | bash && ./cm selenoid start --browser "chrome" --force

from its logs, we can see the Selenoid video has been setup and enabled

$ docker logs fc44
2018/07/06 06:57:16 [-] [INIT] [Loading configuration files...]
2018/07/06 06:57:16 [-] [INIT] [Loaded configuration from /etc/selenoid/browsers.json]
2018/07/06 06:57:16 [-] [INIT] [Using default containers log configuration because of: read error: open config/container-logs.json: no such file or directory]
2018/07/06 06:57:16 [-] [INIT] [Using Docker API version: 1.37]
2018/07/06 06:57:16 [-] [INIT] [Timezone: Local]
2018/07/06 06:57:16 [-] [INIT] [Video Dir: /opt/selenoid/video]
2018/07/06 06:57:16 [-] [INIT] [Listening on :4444]
2018/07/06 07:02:11 [-] [NEW_REQUEST] [unknown] [172.17.0.1]
2018/07/06 07:02:11 [-] [NEW_REQUEST_ACCEPTED] [unknown] [172.17.0.1]
2018/07/06 07:02:11 [0] [LOCATING_SERVICE] [chrome] []
2018/07/06 07:02:11 [-] [DEFAULT_VERSION] [Using default version: 67.0]
2018/07/06 07:02:11 [0] [USING_DOCKER] [chrome] [67.0]
2018/07/06 07:02:11 [0] [CREATING_CONTAINER] [selenoid/vnc_chrome:67.0]
2018/07/06 07:02:11 [0] [STARTING_CONTAINER] [selenoid/vnc_chrome:67.0] [7b148f32c2bafa3b2b9455d57eafc643ca96a386808c244448e918bf9110213f]
2018/07/06 07:02:13 [0] [CONTAINER_STARTED] [selenoid/vnc_chrome:67.0] [7b148f32c2bafa3b2b9455d57eafc643ca96a386808c244448e918bf9110213f] [1.88s]
2018/07/06 07:02:14 [0] [SERVICE_STARTED] [selenoid/vnc_chrome:67.0] [7b148f32c2bafa3b2b9455d57eafc643ca96a386808c244448e918bf9110213f] [1.03s]
2018/07/06 07:02:14 [0] [PROXY_TO] [7b148f32c2bafa3b2b9455d57eafc643ca96a386808c244448e918bf9110213f] [http://172.17.0.6:4444/]
2018/07/06 07:02:14 [0] [SESSION_ATTEMPTED] [http://172.17.0.6:4444/] [1]
2018/07/06 07:02:28 [0] [SESSION_CREATED] [1dab75ab205e3b463e10aeaf5a882c36] [1] [17.82s]
2018/07/06 07:03:29 [4] [SESSION_TIMED_OUT] [1dab75ab205e3b463e10aeaf5a882c36]
2018/07/06 07:03:29 http: proxy error: context canceled
2018/07/06 07:03:29 [5] [SESSION_DELETED] [1dab75ab205e3b463e10aeaf5a882c36]
2018/07/06 07:03:59 [4] [DELETE_FAILED] [1dab75ab205e3b463e10aeaf5a882c36] [Delete http://127.0.0.1:4444/wd/hub/session/1dab75ab205e3b463e10aeaf5a882c36: context deadline exceeded]
2018/07/06 07:03:59 http: proxy error: context canceled
2018/07/06 07:03:59 [0] [REMOVING_CONTAINER] [7b148f32c2bafa3b2b9455d57eafc643ca96a386808c244448e918bf9110213f]
2018/07/06 07:04:00 [0] [CONTAINER_REMOVED] [7b148f32c2bafa3b2b9455d57eafc643ca96a386808c244448e918bf9110213f]

, but we cannot find anything under the /opt folder, it's expected to have selenoid/video here, right?
$ ls
bin boot config dev distelli etc home initrd.img initrd.img.old lib lib64 lost+found media mnt opt proc root run sbin snap srv sys tmp usr var vmlinuz vmlinuz.old writetrace.scap.gz
$ cd opt
/opt$ ls

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?

from images.

vania-pooh avatar vania-pooh commented on August 26, 2024

@Benny86 1) You can add enableVideo like this: https://github.com/vania-pooh/demo-test/blob/master/src/test/java/com/aerokube/selenoid/AndroidDemoTest.java#L35
2) You can also start an empty container with Ubuntu and try to curl your urls. An error like this:

2018/07/06 07:03:59 [4] [DELETE_FAILED] [1dab75ab205e3b463e10aeaf5a882c36] [Delete http://127.0.0.1:4444/wd/hub/session/1dab75ab205e3b463e10aeaf5a882c36: context deadline exceeded]

very frequently means - that our server or virtual machine is overloaded.

from images.

Benny86 avatar Benny86 commented on August 26, 2024

@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();
29 device.setCapability("browserName", "android");
30 device.setCapability("version", "6.0");
31 // device.setCapability("app", "http://download.example.com/test.apk"); // Uncomment this to download your own APK

32 device.setCapability("appPackage", "com.android.calculator2"); // Set this to your APK package
33 device.setCapability("appActivity", "com.android.calculator2.Calculator"); // Set this to your APK main activity

34 device.setCapability("enableVNC", true); // Uncomment this to record
35 // device.setCapability("enableVideo", true); // Uncomment this to record video
36

37 driver = new RemoteWebDriver(new URL(
38 "http://selenoid.example.com:4444/wd/hub" //Replace with correct host and port
39 ), device);

from images.

Benny86 avatar Benny86 commented on August 26, 2024

@vania-pooh you said :"very frequently means - that our server or virtual machine is overloaded.", any suggestions to fix it? Thanks.

from images.

vania-pooh avatar vania-pooh commented on August 26, 2024

@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.

from images.

Benny86 avatar Benny86 commented on August 26, 2024

@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.

from images.

Benny86 avatar Benny86 commented on August 26, 2024

@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.

from images.

vania-pooh avatar vania-pooh commented on August 26, 2024

@Benny86 sure. I have seen a set of similar issues created during this investigation. Feel free to close any issues that are already resolved.

from images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.