2013-03-13 73 views
1

我想将VHD文件上传到天蓝色。我正在使用命令行来设置连接并开始上传。当它正在进行上传时,它会计算HASH,然后开始上传文件,但是它会失败并显示非常长的消息。无法将VHD上传到天蓝色故障

C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-10>csupload Add-Pers 
istentVMImage -Destination "http://testrli.blob.core.windows.net/test3/EO Testin 
g.vhd" -Label "EO Testing.vhd" -LiteralPath "C:\VIRTUALMACHINES\PAT5DB\EO Traini 
ng.vhd" -OS Windows 
Windows(R) Azure(TM) Upload Tool version 1.8.0.0 
for Microsoft(R) .NET Framework 3.5 
Copyright (c) Microsoft Corporation. All rights reserved. 

Use of http is insecure, can leak data to untrusted viewers and make your contentvulnerable to data tampering by a malicious third party. 
Using the saved connection string... 
Using image name 'EOTraining.vhd' 
Found existing page blob. Resuming upload... 
MD5 hash is being calculated for the file 'C:\VIRTUALMACHINES\PAT5DB\EO Training 
.vhd'. 
MD5 hash calculation is completed.ning Time: 00:00:01; Throughput: 1344.2Mbps 
Elapsed time for the operation: 00:12:27 
Upload failed with exceptions: 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Microsoft.WindowsAzure.StorageClient.StorageServerException: The server encounte 
red an unknown failure: The underlying connection was closed: An unexpected erro 
r occurred on a receive. ---> System.Net.WebException: The underlying connection 
was closed: An unexpected error occurred on a receive. ---> System.IO.IOExcepti 
on: Unable to read data from the transport connection: An existing connection wa 
s forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: A 
n existing connection was forcibly closed by the remote host 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult) 
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult) 
--- End of inner exception stack trace --- 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebReq 
uest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender) 
--- End of inner exception stack trace --- 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() 
at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() 
at Microsoft.WindowsAzure.Sync.Upload.BlobSynchronizer.<>c__DisplayClass4.<Sy 
nchronize>b__1(DataWithRange dwr, CloudPageBlob b) 
at Microsoft.WindowsAzure.Sync.Threading.Parallel.<>c__DisplayClass7`2.<ForEa 
ch>b__1(Object) 
Elapsed time for upload: 00:02:17 

回答

1

这里有几件事要注意。

  1. 您正在使用HTTP端点,请使用HTTP来避免进一步的警告和并发症,即https://testrli.blob.core.windows.net/test3/EO
  2. 请更新您的连接字符串使用正确的证书

上传试图恢复以前上传在上传过程中,连接从服务器端关闭。有时恢复上传可能会出现这些错误,所以重新上传确实有帮助。

另外我会建议使用Powershell(下载最新版本0.6.11)并启用$ DebugPreference ='Continue'来查看控制台上的请求和响应,如果遇到任何问题,您将知道可能的原因。

这里是PS脚本到虚拟机上传到Windows Azure: http://michaelwasham.com/2013/01/04/migrate-a-virtual-machine-to-windows-azure-with-powershell/

而且报告您的问题Windows Azure VM Forums获得1:从各队1支,如果问题仍然存在。

+0

我改变了连接到https,它的工作。非常感谢。 – tironci 2013-03-16 17:42:40