Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non blocking errors when filename contains [1] #31

Open
OskarKlintrot opened this issue Oct 10, 2017 · 12 comments
Open

Non blocking errors when filename contains [1] #31

OskarKlintrot opened this issue Oct 10, 2017 · 12 comments

Comments

@OskarKlintrot
Copy link

Command

> ./azurecopy.exe -i https://mybucket.s3.amazonaws.com/myblob -o https://myaccount.blob.core.windows.net/mycontainer -blobcopy

gives

StartCopyFromBlob error msg Fjärrservern returnerade ett fel: (403) Förbjuden.
StartCopyFromBlob error stack    vid Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
   vid azurecopy.AzureBlobCopyHandler.StartCopy(BasicBlobContainer origBlob, String DestinationUrl, DestinationBlobType destBlobType, Boolean skipIfExists)
Unable to start copying pexels-photo-303024[1].jpeg
Fjärrservern returnerade ett fel: (403) Förbjuden.

would probably translate to

Remote server returned an error: (403) Forbidden.

This is the only file that we couldn't copy and the only file containing [1] (both in the filename and path, which is technically the same).

ps. Thanks for an awesome program, we owe you a beer! ds.

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 11, 2017 via email

@OskarKlintrot
Copy link
Author

Thank God for the history in Powershell! No, in the example I had just copy/pasted the example from the readme. This is the "actual" command from my Powershell history:

> ./azurecopy.exe -i https://mybucket.s3.amazonaws.com -o https://myaccount.blob.core.windows.net/mycontainer -blobcopy

So it tried to copy everything from S3 to Blob Storage but failed on that file with a [1] in it. I haven't looked in the source but I guess it assumed it was an array and tried to iterate over it or something like that.

Sorry for the confusion!

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 12, 2017 via email

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 12, 2017 via email

@OskarKlintrot
Copy link
Author

The name should be:

images/pexels-photo-303024[1]/original/pexels-photo-303024[1].jpeg

There where also a few that hade namings like this:

images/pexels-photo-303024[1]/w_500-h_300/pexels-photo-303024[1].jpeg

I just got a bunch of the error message inserted in my first post so unfortunately I have no clue which one caused the issue.

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 12, 2017 via email

@OskarKlintrot
Copy link
Author

Great, thanks!

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 12, 2017 via email

@OskarKlintrot
Copy link
Author

Sorry, I don't have more than that. The blob storage container is now in production so I don't really want to re-run the command...

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 12, 2017 via email

@kpfaulkner
Copy link
Owner

kpfaulkner commented Oct 12, 2017 via email

@kpfaulkner
Copy link
Owner

Have checked if its the S3 or Azure side. It's definitely Azure, but unsure if there is anything I can do about it. The shared URL that S3 makes is definitely valid (ie I can copy it to a browser and can download manually). I'm still investigating if there is anything I can do on the Azure side. I don't believe its the Azure name containing [1]... but it's more the fact when we tell Azure to copy the file, it dies.

Honestly unsure if there is anything I can do about it, but will keep investigating.

Cheers

Ken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants