VMware Cloud Community
AF2012
Contributor
Contributor

Can't upload media file to vCloud director (Internal Server Error)

Hi I am following the vCloude director evaluation guide 5.1 to setup my private cloud. I am having a problem when I am trying to upload an ISO image to vcloud director. The upload progress bar shows that the transfer is complete and successful , however when i look in the catalogs tab i see error (Internal Server Error). The following is the log of the failing transaction:


2013-04-01 21:46:21,589 | DEBUG    | eadedActivitySupervisor@510e6505-pool-supervisor-5 | ReceivingSocketImpl            | Resource file not fully transferred yet (46,137,344/4,289,386,496) |
2013-04-01 21:46:21,590 | DEBUG    | eadedActivitySupervisor@510e6505-pool-supervisor-5 | ReceivingSocketImpl            | Resource file not fully transferred yet (10,485,760/4,289,386,496) |
2013-04-01 21:46:22,263 | DEBUG    | VsmEventListener-10.134.45.237 | EventListener                  | Event -1 received with event code : 210,001 |
2013-04-01 21:46:22,263 | DEBUG    | VsmEventListener-10.134.45.237 | EventListener                  | Event code 210,001 will be handled by class com.vmware.vcloud.fabric.nsm.event.handlers.KeepAliveEventHandler  |
2013-04-01 21:46:22,320 | ERROR    | sf-activity-pool-36       | CreateFromImportActivity       | CreateFromImport: copyContents failed |
com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Internal Server Error
    at com.vmware.vcloud.fabric.storage.media.impl.MediaUtils.copyContents(MediaUtils.java:139)
    at com.vmware.vcloud.fabric.storage.media.impl.CreateFromImportActivity$CopyPhase.invoke(CreateFromImportActivity.java:155)
    at com.vmware.vcloud.fabric.foundation.activity.executors.ActivityRunner.run(ActivityRunner.java:123)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: java.net.SocketException: Broken pipe
    at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$Transfer.run(NfcClientFacadeImpl.java:166)
    at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl.putFile(NfcClientFacadeImpl.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
    at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
    at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy232.putFile(Unknown Source)
    at com.vmware.vcloud.fabric.storage.copy.impl.UploadDatastoreFilesActivity$CopyFilesPhase.invoke(UploadDatastoreFilesActivity.java:91)
    ... 7 more
Caused by: java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(Unknown Source)
    at com.sun.net.ssl.internal.ssl.OutputRecord.write(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecordInternal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.write(Unknown Source)
    at org.apache.commons.httpclient.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:121)
    at org.apache.commons.httpclient.ChunkedOutputStream.write(ChunkedOutputStream.java:179)
    at com.vmware.vcloud.common.http.ProgressReportingRequestEntity.writeRequest(ProgressReportingRequestEntity.java:183)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
    at com.vmware.vcloud.val.nfc.client.impl.HttpNfcClientSession.executeMethod(HttpNfcClientSession.java:331)
    at com.vmware.vcloud.val.nfc.client.impl.HttpNfcClientSession.putFile(HttpNfcClientSession.java:309)
    at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$1.execute(NfcClientFacadeImpl.java:213)
    at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$1.execute(NfcClientFacadeImpl.java:209)
    at com.vmware.vcloud.val.nfc.client.impl.NfcClientFacadeImpl$Transfer.run(NfcClientFacadeImpl.java:139)
    ... 30 more

Can you please assist with this issue?

Regards

AF

0 Kudos
1 Reply
slackowski
Contributor
Contributor

AF,

Make sure your profile driven storage is configured correctly.

What i am trying to say by that is make sure that after you have your profile created it is enabled on the correct cluster or a host.

In vSphere 5.1 go to :

Home -> VM storage profiles

select your profile and click on the Enable VM storage profiles per Compute Resource

That should help you with the issues. I ran into the same problem.

thanks

SL

0 Kudos