azure-storage-azcopy: AzCopy 10.1.2 TLS Handshake Timeout on VM with Low Memory

Which version of the AzCopy was used?

Note: The version is visible when running AzCopy without any argument

AzCopy 10.1.2

Which platform are you using? (ex: Windows, Mac, Linux)

Azure VM size DS1_v2: Windows Server 2019 Datacenter version 1809 build 17763.437

What command did you run?

Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.

.\azcopy.exe copy "*.json" "https://REDACTED.blob.core.windows.net/memory?st=2019-05-22T00%3A17%3A13Z&se=2019-05-23T00%3A17%3A13Z&sp=racwl&sv=2018-03-28&sr=c&sig=REDACTED" --overwrite=false --from-to=LocalBlob --blob-type=BlockBlob --put-md5;

What problem was encountered?

On an Azure size DS1_v2 VM running the latest stock Server 2019 image provided by Microsoft the command above does not run. Here’s some relevant output from the logs:

2019/05/22 01:08:23 ==> REQUEST/RESPONSE (Try=1/3m59.8699959s[SLOW >3s], OpTime=3m59.8699959s) -- REQUEST ERROR
   PUT https://REDACTED.blob.core.windows.net/memory/memdumptest-20190522-003248.json?se=2019-05-23t00%3A17%3A13z&sig=REDACTED&sp=racwl&sr=c&st=2019-05-22t00%3A17%3A13z&sv=2018-03-28&timeout=901
   Content-Length: [1504]
   User-Agent: [AzCopy/10.1.2 Azure-Storage/0.6 (go1.10.8; Windows_NT)]
   X-Ms-Blob-Cache-Control: []
   X-Ms-Blob-Content-Disposition: []
   X-Ms-Blob-Content-Encoding: []
   X-Ms-Blob-Content-Language: []
   X-Ms-Blob-Content-Md5: []
   X-Ms-Blob-Content-Type: [application/json]
   X-Ms-Blob-Type: [BlockBlob]
   X-Ms-Client-Request-Id: [01297009-16c5-46af-5bdb-fcecc71b69f0]
   X-Ms-Version: [2018-03-28]
   --------------------------------------------------------------------------------
   ERROR:
-> github.com/Azure/azure-storage-azcopy/vendor/github.com/Azure/azure-pipeline-go/pipeline.NewError, /go/src/github.com/Azure/azure-storage-azcopy/vendor/github.com/Azure/azure-pipeline-go/pipeline/error.go:154
HTTP request failed

Put https://REDACTED.blob.core.windows.net/memory/memdumptest-20190522-003248.json?se=2019-05-23T00%3A17%3A13Z&sig=REDACTED%3D&sp=racwl&sr=c&st=2019-05-22T00%3A17%3A13Z&sv=2018-03-28&timeout=901: net/http: TLS handshake timeout

How can we reproduce the problem in the simplest way?

Deploy an Azure DS1_v2 VM and run the command on it. It’ll fail. I’ve reproduced this on two DS1_v2 VMs.

Have you found a mitigation/solution?

If I run this same command on a VM with 8GB memory llike the B2ms AzCopy executes successfully. It looks like running the latest version of AzCopy on a system with low memory causes TLS handshakes to fail. It’s possible that other operations are failing on a system with low memory, too, I just can’t get past the handshake failures to see what else may be broken.

It looks like AzCopy has undocumented minimum system hardware requirements.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 31 (16 by maintainers)

Most upvoted comments

Thanks for letting us know @koder101. It’s on our list to be looked at, but we don’t have a public ETA yet. By the way, the related issue, where after this failure it mistakenly saves your SAS token into the log file, is being treated at a higher priority than this issue - because the SAS one relates to security. In the meantime, don’t send us (or anyone) your AzCopy log files after TLS failure.

I am also facing the same issue. I just resized the same machine with 14GB of RAM and the login worked.

That worked. Thank you John 😃

I think try the AUTO thing, and then let that run to completion, and then let us know what happens.

Ah ok 😃 I am using v10.4.3 and I think I am hitting the same issue. In brief, I am trying to copy several files with in a PowerShell session from local to Azure. It works for all the files except for a .dmp file which is <15GB. I tried zipping it as well but seems failing all the time with below error.

2020/06/15 01:26:56 AzcopyVersion 10.4.3 2020/06/15 01:26:56 OS-Environment windows 2020/06/15 01:26:56 OS-Architecture amd64 2020/06/15 01:26:56 Log times are in UTC. Local time is 14 Jun 2020 18:26:56 2020/06/15 01:26:56 Job-Command copy G:\06-14-2020\06-19\MEMORY_DMP.Zip https://blahblahblah.dfs.core.windows.net/automation/06-14-2020/blahblahblah/06-19/MEMORY_DMP.Zip 2020/06/15 01:26:56 Number of CPUs: 12 2020/06/15 01:26:56 Max file buffer RAM 6.000 GB 2020/06/15 01:26:56 Max concurrent network operations: 192 (Based on number of CPUs. Set AZCOPY_CONCURRENCY_VALUE environment variable to override) 2020/06/15 01:26:56 Check CPU usage when dynamically tuning concurrency: true (Based on hard-coded default. Set AZCOPY_TUNE_TO_CPU environment variable to true or false override) 2020/06/15 01:26:56 Max concurrent transfer initiation routines: 64 (Based on hard-coded default. Set AZCOPY_CONCURRENT_FILES environment variable to override) 2020/06/15 01:26:56 Max enumeration routines: 64 (Based on hard-coded default. Set AZCOPY_CONCURRENT_SCAN environment variable to override) 2020/06/15 01:26:56 Max open files when downloading: 2147482995 (auto-computed) 2020/06/15 01:26:56 Authenticating to destination using Azure AD

2020/06/15 01:27:32 ==> REQUEST/RESPONSE (Try=1/20.9416ms, OpTime=32.832603s) – REQUEST ERROR PUT https://blahblahblah.dfs.core.windows.net/automation/06-14-2020/blahblahblah/06-19/MEMORY_DMP.Zip?action=append&position=343932928&timeout=901 Authorization: REDACTED Content-Length: [8388608] User-Agent: [AzCopy/10.4.3 Azure-Storage/0.1 (go1.13; Windows_NT)] X-Http-Method-Override: [PATCH] X-Ms-Client-Request-Id: [9cedaccb-da4e-449d-68bc-82d57af4680f] X-Ms-Version: [2018-11-09]

ERROR: -> github.com/Azure/azure-pipeline-go/pipeline.NewError, /home/vsts/go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.2.1/pipeline/error.go:154 HTTP request failed

Put https://blahblahblah.dfs.core.windows.net/automation/06-14-2020/blahblahblah/06-19/MEMORY_DMP.Zip?action=append&position=343932928&timeout=901: write tcp IPblahblahblah:443: wsasend: An existing connection was forcibly closed by the remote host.

I believe this issue is resolved with the latest version, 10.2.1 Please download here and try: https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10