lamw / vmware-scripts

Various scripts for VMware based solutions
http://www.williamlam.com/
BSD 2-Clause "Simplified" License
859 stars 489 forks source link

make_vcsp_2022.py - vCloud not wanting to sync ISO's #129

Open Kennochas opened 5 months ago

Kennochas commented 5 months ago

Howdy, I have some ISO's in a folder in the S3 bucket, just called 'ISO' like the blog, and dump the ISO's into there.

When we did so, for some reason vCloud is not wanting to sync the ISO's in some case. Have you experienced this / any workaround?

All VCD is giving us is:

[ 6bd927ad-7c9b-438b-b662-76446fd3a2d3 ] Internal Server Error

com.vmware.ssdc.util.LMException: Internal Server Error at com.vmware.ssdc.util.LMException.wrap(LMException.java:128) at com.vmware.ssdc.library.ExceptionFactory.createFromMultiple(ExceptionFactory.java:32) at com.vmware.cl.activities.LibraryItemSyncActivity$FinalizeSyncPhase.invoke(LibraryItemSyncActivity.java:1154) at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175) at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Internal Server Error at com.vmware.vcloud.common.future.FutureUtil.convertExecutionException(FutureUtil.java:233) at com.vmware.vcloud.common.future.FutureUtil.checkCompletedFuture(FutureUtil.java:194) at com.vmware.cl.activities.LibraryItemSyncActivity$TransferOvfOrMediaFromPublisherPhase.invoke(LibraryItemSyncActivity.java:483) ... 7 more Caused by: com.vmware.cl.clsp.exception.ClspSyncException: The operation encountered an unspecified error. at com.vmware.cl.activities.LibraryItemSyncActivity$ProgressReportingFuture.isDone(LibraryItemSyncActivity.java:1340) at com.vmware.vcloud.activity.executors.SupervisedCompletion.run(SupervisedCompletion.java:331) at com.vmware.vcloud.activity.supervisors.CompletionMonitor.run(CompletionMonitor.java:51) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ... 5 more Caused by: java.io.IOException: Attempted read on closed stream. at org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:107) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:133) at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181) at java.base/java.io.Reader.read(Reader.java:229) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1282) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1261) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1108) at org.apache.commons.io.IOUtils.copy(IOUtils.java:922) at org.apache.commons.io.IOUtils.toString(IOUtils.java:2681) at org.apache.commons.io.IOUtils.toString(IOUtils.java:2661) at com.vmware.cl.clsp.sync.JsonResponse.from(JsonResponse.java:65) at com.vmware.cl.clsp.sync.JsonResponse.from(JsonResponse.java:36) at com.vmware.cl.clsp.sync.RemoteClspEndpoint.tasteFile(RemoteClspEndpoint.java:150) at com.vmware.cl.activities.LibraryItemSyncActivity$ProgressReportingFuture.isDone(LibraryItemSyncActivity.java:1295) ... 9 more