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

Cannot open recorded video from grid extras node page when running on docker #2

Open
lgermani opened this issue Jan 26, 2018 · 4 comments

Comments

@lgermani
Copy link

lgermani commented Jan 26, 2018

Hello,

I'm running some tests using docker-selenium-grid-extras, test execution run without a problem, but if you try to view or download the test recording video, nothing happens.

I recorded what happens to the attached gif:
sel-grid-extras-docker

@mariolameiras
Copy link

It looks like it timed out, can you try right clicking and saving the video to your desktop?

@lgermani
Copy link
Author

@mariolameiras, same behavior when trying to save the video by right clicking and saving.

sel-grid-extras-docker2

@mariolameiras
Copy link

I'm not able to replicate your problem. Have you tried smaller or older videos?

Also, change your logs to info and checkout the logs inside /opt/selenium/log

@lgermani
Copy link
Author

Same problem with small videos.

Changed to debug logs:

environment:
      - SE_OPTS=-debug true

After executing a small test, the video is generated inside video_output folder inside the container.
But I'm still unable to access it via Node Configuration page.

Here is the log:
logs.zip

Onlything i see different from normal at the hub grid_extras log is:

29 Jan 2018 18:34:00 [Forwarding ext. key eaf37de159c37f8a696d51e2dc60a8bb to http://172.18.0.3:5555/wd/hub at 6:34:00 PM] INFO  video.RemoteVideoRecordingControlCallable  - Creating new Video callable for proxy: http://172.18.0.3:5555, int key: 26841487-09a7-4e95-8ff8-3e650434998a, ex. key: eaf37de159c37f8a696d51e2dc60a8bb, action: heartbeat, lastAction: get: {"url":"https://staging06-financeiro.hostgator.com.br"}
29 Jan 2018 18:34:00 [pool-1-thread-2] ERROR videorecording.RemoteVideoRecorderHelper  - Error building URI for host: 172.18.0.3, port: 3000, session: eaf37de159c37f8a696d51e2dc60a8bb, action: heartbeat, params: {session=eaf37de159c37f8a696d51e2dc60a8bb, action=heartbeat, description=get: {"url":"https://staging06-financeiro.hostgator.com.br"}}
java.net.SocketException: Unexpected end of file from server
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:851)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:848)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at com.groupon.seleniumgridextras.utilities.HttpUtility.getRequest(HttpUtility.java:60)
	at com.groupon.seleniumgridextras.utilities.HttpUtility.getRequestAsString(HttpUtility.java:35)
	at com.groupon.seleniumgridextras.utilities.HttpUtility.getRequestAsString(HttpUtility.java:29)
	at com.groupon.seleniumgridextras.utilities.HttpUtility.getRequestAsString(HttpUtility.java:25)
	at com.groupon.seleniumgridextras.videorecording.RemoteVideoRecorderHelper.updateLastAction(RemoteVideoRecorderHelper.java:109)
	at com.groupon.seleniumgridextras.utilities.threads.video.RemoteVideoRecordingControlCallable.updateLastAction(RemoteVideoRecordingControlCallable.java:112)
	at com.groupon.seleniumgridextras.utilities.threads.video.RemoteVideoRecordingControlCallable.call(RemoteVideoRecordingControlCallable.java:65)
	at com.groupon.seleniumgridextras.utilities.threads.video.RemoteVideoRecordingControlCallable.call(RemoteVideoRecordingControlCallable.java:11)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants