We're updating the issue view to help you get more done. 

Thumbnail generation from Admin UI can fail on longer videos

Steps to reproduce

Steps to reproduce:
1. Ingest a long video (for example 8 hours)
2. Edit the video in the Admin UI
3. In the Thumbnail tab, click on "Extract from left video"

Actual Results:

On the admin node, thumbnail generation fails because the remote worker node takes longer than 60s to return a new element with the thumbnail.

2019-02-06 07:10:15,544 | ERROR | qtp1578637385-71978 | (RemoteBase:234) - Exception while trying to dispatch job to http://srvubuopc402.uct.ac.za:8080/composer/ffmpeg/imagesync: {}
org.opencastproject.security.api.TrustedHttpClientException: java.net.SocketTimeoutException: Read timed out
at org.opencastproject.kernel.security.TrustedHttpClientImpl.execute(TrustedHttpClientImpl.java:416)
at org.opencastproject.kernel.security.TrustedHttpClientImpl.execute(TrustedHttpClientImpl.java:346)
at org.opencastproject.serviceregistry.api.RemoteBase.getResponse(RemoteBase.java:214)
at org.opencastproject.serviceregistry.api.RemoteBase.getResponse(RemoteBase.java:142)
at org.opencastproject.composer.remote.ComposerServiceRemoteImpl.imageSync(ComposerServiceRemoteImpl.java:282)
at org.opencastproject.adminui.impl.ThumbnailImpl.chooseThumbnail(ThumbnailImpl.java:433)
at org.opencastproject.adminui.impl.ThumbnailImpl.chooseDefaultThumbnail(ThumbnailImpl.java:467)
at org.opencastproject.adminui.endpoint.ToolsEndpoint.editVideo(ToolsEndpoint.java:660)

On the worker node, the thumbnail is generated successfully, but takes longer than 60s to do so (89s in one observed case).

The admin node starts to mark multiple composer services as WARN or ERROR state.

Expected Results:

Thumbnail generated and returned successfully (if somewhat slowly).

Workaround (if any):

Don't extract thumbnails from longer videos.

Code fix is that RemoteBase should call TrustedHttpClient's execute() with timeout parameters (although this is still a somewhat undesirable user experience, waiting > 1min for the thumbnail to be generated).

Status

Assignee

Maximiliano Lira Del Canto

Reporter

Stephen Marquard

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Affects versions

6.1

Priority

Major