azurecopy icon indicating copy to clipboard operation
azurecopy copied to clipboard

Doesn't work if there is a period in bucket name

Open gmxu opened this issue 9 years ago • 6 comments

Hi, thanks for the tool!

If I have a period in my AWS bucket name, I am unable to grab the files from the bucket. I tested with two new buckets, one with and one without a period and I am unable to list or copy my files from the bucket with a period.

gmxu avatar Jul 04 '16 19:07 gmxu

Hi

Ahh honestly never tried that, will fix that in the next release. Thanks for the info!

Ken

kpfaulkner avatar Jul 04 '16 19:07 kpfaulkner

Hi,

Is this fixed? I have the latest release (1.4.0.7) and hitting the same issue.

OguzPastirmaci avatar Mar 13 '17 19:03 OguzPastirmaci

Please try version 1.4.1 ( https://github.com/kpfaulkner/azurecopy/releases/tag/1.4.1 ) and let me know how it goes.

Sorry for the delay.

kpfaulkner avatar Mar 24 '17 11:03 kpfaulkner

I could perform the list of contents from Azure now - what was wrong was the azureAccessKey and the container URL.

Now I'm actually trying to perform the copy and I get

C:>azurecopy -i https://se.amazonaws.com/ -o https://.blob.core.windows.net/<containerName> -azurekey %AzureAccountKey% -s3k %AWSAccessKeyID% -s3sk %AWSSecretAccessKeyID% -blobcopy -destblobtype block blobName -db GetHandler start GetHandler retrieved azurecopy.S3Handler GetHandler start GetHandler retrieved azurecopy.AzureHandler Copy blob Unable to start copying Exception System.ArgumentException: The argument must not be empty string. Parameter name: blobName at Microsoft.WindowsAzure.Storage.Core.Util.CommonUtility.AssertNotNullOrEmpty(String paramName, String value) at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.GetBlockBlobReference(String blobName, Nullable1 snapshotTime) at azurecopy.AzureBlobCopyHandler.StartCopy(BasicBlobContainer origBlob, String DestinationUrl, DestinationBlobType destBlobTyp e, Boolean skipIfExists) at azurecopy.AzureBlobCopyHandler.StartCopyList(IEnu merable1 origBlobList, String destinationUrl, DestinationBlobType destBlob Type, Boolean debugMode, Boolean skipIfExists) New Batch

Failed: Aborted: Pending: Copy complete

phnxfire avatar Jun 08 '17 17:06 phnxfire

How do I do to copay all files at once?

phnxfire avatar Jun 08 '17 17:06 phnxfire

Hi

Unless the URLs aren’t copying/pasting correctly into the email I suspect they’re one problem. Both the S3 and Azure URLs look wrong. Se.amazonaws.com isn’t valid (as far as I know) and .blob.core.windows.net isn’t valid either. They’d need to be something like.

S3: Mybucket.s3.amazonaws.com Azure: myaccount.blob.core.windows.net

In the error below, you’re listening “blobName” in the command, which doesn’t belong there.

Say, you have a S3 bucket called “mybucket” and an Azure account called “myaccount” with a container called “mycontainer” and wanted to copy all the content from S3 to Azure. The command to run would be:

azurecopy -i https://mybucket.s3.amazonaws.com/ -o https://myaccount.blob.core.windows.net/mycontainer/ -azurekey %AzureAccountKey% -s3k %AWSAccessKeyID% -s3sk %AWSSecretAccessKeyID% -blobcopy

Thanks

Ken

From: fabianoamorim Sent: Friday, 9 June 2017 3:17 AM To: kpfaulkner/azurecopy Cc: Ken Faulkner; Comment Subject: Re: [kpfaulkner/azurecopy] Doesn't work if there is a period inbucket name (#10)

I could perform the list of contents from Azure now - what was wrong was the azureAccessKey and the container URL. Now I'm actually trying to perform the copy and I get C:>azurecopy -i https://se.amazonaws.com/ -o https://.blob.core.windows.net/ -azurekey %AzureAccountKey% -s3k %AWSAccessKeyID% -s3sk %AWSSecretAccessKeyID% -blobcopy -destblobtype block blobName -db GetHandler start GetHandler retrieved azurecopy.S3Handler GetHandler start GetHandler retrieved azurecopy.AzureHandler Copy blob Unable to start copying Exception System.ArgumentException: The argument must not be empty string. Parameter name: blobName at Microsoft.WindowsAzure.Storage.Core.Util.CommonUtility.AssertNotNullOrEmpty(String paramName, String value) at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.GetBlockBlobReference(String blobName, Nullable1 snapshotTime) at azurecopy.AzureBlobCopyHandler.StartCopy(BasicBlobContainer origBlob, String DestinationUrl, DestinationBlobType destBlobTyp e, Boolean skipIfExists) at azurecopy.AzureBlobCopyHandler.StartCopyList(IEnu merable1 origBlobList, String destinationUrl, DestinationBlobType destBlob Type, Boolean debugMode, Boolean skipIfExists) New Batch Failed: Aborted: Pending: Copy complete — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

kpfaulkner avatar Jun 08 '17 19:06 kpfaulkner