Comments (12)
@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.
@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.
@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.
@Benny86 see https://aerokube.com/selenoid/latest/#_video_recording_enablevideo_videoname_videoscreensize_videoframerate
from images.
@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.
@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.
@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.
@vania-pooh you said :"very frequently means - that our server or virtual machine is overloaded.", any suggestions to fix it? Thanks.
from images.
@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.
@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.
@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.
@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)
- Feature request: Safari 12
- automate_android.sh script isn't working for chrome-mobile testing HOT 2
- Make please new image: chrome-mobile:112.0.5615.136 HOT 3
- Chrome images older than 75.0 do not work with selenium-java 4.9.0 and above HOT 2
- Support custom browser profile dir for Chrome via environment variable HOT 1
- Fail to build chrome 116 beta HOT 4
- Bug: Unable to locate package upx-ucl HOT 2
- Error: image android 13 failed to launch, "adb: no devices/emulators found". HOT 7
- browser/edge 115 and higher HOT 6
- HELP: How to build arm64 supported OS image for selenoid/firefox and selenoid/chrome HOT 6
- I'm trying to build chrome image but encountered error HOT 9
- Bug: Selenoid/chrome 119.0/120.0 failing on init a new session HOT 2
- How quickly can you build & push lastest stable Chrome version Image that supports the new version to DockerHub HOT 1
- Using the documentation on the site to build new images fails.
- Build new images fails HOT 1
- Chromedriver download URL had been changed since from chrome 115 version led to build image fails HOT 2
- image build fails
- Video file has 0 Bytes when screen resolution has odd numbers HOT 4
- Add safari latest versions to images
- VNC no longer connecting in Selenoid UI after vnc_firefox:104.0 HOT 3
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 images.