-
Notifications
You must be signed in to change notification settings - Fork 231
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
Unable to migrate data from AWS S3 bucket to Azure Blob storage #1596
Comments
@siminsavani-msft do we have any update on this? kindly assist me on the reported issue |
Hi @shaikjahangir04 ! When I use AzCopy to upload files locally to Azure with the same name, it is successful. Could you please attach the logs for this issue? |
Azcopy logs.zip |
Hey @shaikjahangir04 , I was looking at the logs and I found following :-
It seems the transfer was indeed successful. Can you please check the container once to verify the files? |
As for the other log,
|
I can transfer the same file if I initiate it from my local desktop path, it is failing only if i do it from AWS S3. also I have added the switch --s2s-handle-invalid-metadata=RenameIfInvalid so it should rename the file. |
I see. So, can you send me log of your local->Azure transfer of the same file ( |
|
Thanks for your inputs. |
azure-storage-azcopy/cmd/zc_traverser_s3.go Lines 66 to 75 in 058bd5b
|
@mohsha-msft I think @nakulkar-msft had a reason to not allow the prefixed periods. Remember the service API to upload and copy are different and may behave differently too. My memory is failing me here, but I think if you specified prefixed periods in the source URL of the copy API, they get chopped off by the Storage service. Could you please try a copy request using PostMan? |
Hey @shaikjahangir04, I've added a fix for your problem. Can you please try this drop and let me know your feedback? |
7da9ac97-44b2-ae40-689a-4053d9c0b3af.log I can transfer the files with ._.* from S3 to azure blob using the package which you have provided. attached the logs for your reference. |
Hey @shaikjahangir04 , I'm really happy to hear that. Please keep trying and verify the changes on the destination as well. If you face any issue, reach out to us on this channel itself. |
Fix released in AzCopy |
Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
10.12.2
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
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 copy "https://aispl-testing.s3.ap-south-1.amazonaws.com/testing/" "https://datamigrationstracct.blob.core.windows.net/data-migration-container?" --recursive=true --s2s-handle-invalid-metadata=RenameIfInvalid
What problem was encountered?
Skipping S3 object testing/._.TESTT$1112122_____8u.tyYYY20.txt, as it is not a valid Blob name. Rename the object and retry the transfer
How can we reproduce the problem in the simplest way?
Have you found a mitigation/solution?
The text was updated successfully, but these errors were encountered: