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

Recycled Mediapackage Fails when Launched from Episode Service

Steps to reproduce

Steps to reproduce:
1. Upload a video with a workflow that just distributes and publishes
2. Retract it
3. Re-submit it with the exact same workflow

Actual Results:

The recycled job fails to complete and the mediapackage ends up in the trash bin

Expected Results:

Should have the exact same results as the original upload.

Workaround (if any): None

11:29:55 INFO (AbstractCmdlineEncoderEngine:257) - Video track 20110609_165128_003A_Matterhorn_In_60_Seconds.mp4 successfully encoded using profile 'ncast-search-cover.http'
11:29:55 INFO (ComposerServiceImpl:862) - Deleted local copy of image file at /opt/matterhorn/opencast/workspace/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/64e53299-ec08-4641-88d2-bb773b843999/20110609_165128_003A_Matterhorn_In_60_Seconds_1_c440f62a-d2f3-4fcf-a844-c5dc37cc3444-search.jpg
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'track-2' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'track-3' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'attachment-2' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'attachment-3' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'attachment-4' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'attachment-5' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'attachment-6' to the local repository
11:30:12 INFO (DistributeWorkflowOperationHandler:115) - Distributing 'attachment-7' to the local repository
11:30:17 INFO (DownloadDistributionService:175) - Distributing attachment-6 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-6/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg
11:30:17 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-6/20110609_165128_003a_matterhorn_in_60_seconds.jpg
11:30:17 INFO (DownloadDistributionService:175) - Distributing attachment-7 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-7/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-7/20110609_165128_003a_matterhorn_in_60_seconds.jpg
11:30:18 WARN (WorkspaceImpl:252) - Could not copy http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg to /opt/matterhorn/opencast/workspace/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg
11:30:18 WARN (DownloadDistributionService:196) - Error distributing http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2/20110609_165128_003a_matterhorn_in_60_seconds.jpg
org.opencastproject.distribution.api.DistributionException: Unable to find http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg in the workspace
at org.opencastproject.distribution.download.DownloadDistributionService.distribute(DownloadDistributionService.java:163)
at org.opencastproject.distribution.download.DownloadDistributionService.process(DownloadDistributionService.java:322)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:184)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:156)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.opencastproject.util.NotFoundException: org.opencastproject.util.NotFoundException: http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg does not exist
at org.opencastproject.workspace.impl.WorkspaceImpl.get(WorkspaceImpl.java:254)
at org.opencastproject.distribution.download.DownloadDistributionService.distribute(DownloadDistributionService.java:161)
... 8 more
Caused by: org.opencastproject.util.NotFoundException: http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg does not exist
at org.opencastproject.workspace.impl.WorkspaceImpl.get(WorkspaceImpl.java:231)
... 9 more
11:30:18 WARN (WorkspaceImpl:252) - Could not copy http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg to /opt/matterhorn/opencast/workspace/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg
11:30:18 WARN (DownloadDistributionService:196) - Error distributing http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3/20110609_165128_003a_matterhorn_in_60_seconds.jpg
org.opencastproject.distribution.api.DistributionException: Unable to find http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg in the workspace
at org.opencastproject.distribution.download.DownloadDistributionService.distribute(DownloadDistributionService.java:163)
at org.opencastproject.distribution.download.DownloadDistributionService.process(DownloadDistributionService.java:322)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:184)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:156)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.opencastproject.util.NotFoundException: org.opencastproject.util.NotFoundException: http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg does not exist
at org.opencastproject.workspace.impl.WorkspaceImpl.get(WorkspaceImpl.java:254)
at org.opencastproject.distribution.download.DownloadDistributionService.distribute(DownloadDistributionService.java:161)
... 8 more
Caused by: org.opencastproject.util.NotFoundException: http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg does not exist
at org.opencastproject.workspace.impl.WorkspaceImpl.get(WorkspaceImpl.java:231)
... 9 more
11:30:18 INFO (DownloadDistributionService:175) - Distributing attachment-4 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-4/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-4/20110609_165128_003a_matterhorn_in_60_seconds.jpg
11:30:18 INFO (DownloadDistributionService:175) - Distributing attachment-5 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-5/20110609_165128_003A_Matterhorn_In_60_Seconds.jpg
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-5/20110609_165128_003a_matterhorn_in_60_seconds.jpg
11:30:18 INFO (DownloadDistributionService:175) - Distributing eca582f3-584c-48ce-b321-76420b540788 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/eca582f3-584c-48ce-b321-76420b540788/dublincore.xml
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/eca582f3-584c-48ce-b321-76420b540788/dublincore.xml
11:30:18 INFO (DownloadDistributionService:175) - Distributing track-2 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/track-2/20110609_165128_003A_Matterhorn_In_60_Seconds.mp4
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/64e53299-ec08-4641-88d2-bb773b843999/20110609_165128_003a_matterhorn_in_60_seconds.mp4
11:30:18 INFO (DownloadDistributionService:175) - Distributing track-3 to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/track-3/20110609_165128_003A_Matterhorn_In_60_Seconds.mp4
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/64e53299-ec08-4641-88d2-bb773b843999/20110609_165128_003a_matterhorn_in_60_seconds.mp4
11:30:18 INFO (DownloadDistributionService:175) - Distributing 3defa887-ca94-4995-b8bb-7120381b1b0c to /opt/matterhorn/opencast/downloads/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/3defa887-ca94-4995-b8bb-7120381b1b0c/dublincore.xml
11:30:18 INFO (DownloadDistributionService:192) - Finished distribution of http://nway.ncast.com:8080/files/mediapackage/7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/3defa887-ca94-4995-b8bb-7120381b1b0c/dublincore.xml
11:30:23 ERROR (WorkflowOperationWorker:159) - Workflow operation 'distribute-download' failed
org.opencastproject.workflow.api.WorkflowOperationException: One of the distribution jobs did not complete successfully
at org.opencastproject.workflow.handler.DistributeWorkflowOperationHandler.start(DistributeWorkflowOperationHandler.java:151)
at org.opencastproject.workflow.impl.WorkflowOperationWorker.start(WorkflowOperationWorker.java:217)
at org.opencastproject.workflow.impl.WorkflowOperationWorker.execute(WorkflowOperationWorker.java:139)
at org.opencastproject.workflow.impl.WorkflowServiceImpl.runWorkflowOperation(WorkflowServiceImpl.java:710)
at org.opencastproject.workflow.impl.WorkflowServiceImpl.process(WorkflowServiceImpl.java:1528)
at org.opencastproject.workflow.impl.WorkflowServiceImpl$JobRunner.call(WorkflowServiceImpl.java:1833)
at org.opencastproject.workflow.impl.WorkflowServiceImpl$JobRunner.call(WorkflowServiceImpl.java:1806)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
11:30:24 INFO (WorkingFileRepositoryImpl:134) - Unable to delete non existing object 7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-3
11:30:24 INFO (WorkingFileRepositoryImpl:134) - Unable to delete non existing object 7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c/attachment-2
11:30:30 INFO (ZipWorkflowOperationHandler:158) - Archiving mediapackage 7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c in workflow Workflow {22478}
11:30:33 INFO (ZipWorkflowOperationHandler:176) - Adding zipped mediapackage 7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c to the failed.zips archive
11:30:34 INFO (ZipWorkflowOperationHandler:190) - Zipped mediapackage 7507cb44-4871-4b0f-ac0b-0b6b5fd4ed4c moved to the failed.zips archive

Status

Assignee

David Horwitz

Reporter

Hank Magnuski

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

Components

Affects versions

1.3

Priority

Critical