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

Invalid URL while running azcopy sync (HTTP 404) in v10.22.0 #2485

Closed
ljelonek opened this issue Dec 7, 2023 · 4 comments · Fixed by #2495
Closed

Invalid URL while running azcopy sync (HTTP 404) in v10.22.0 #2485

ljelonek opened this issue Dec 7, 2023 · 4 comments · Fixed by #2495
Assignees

Comments

@ljelonek
Copy link

ljelonek commented Dec 7, 2023

Which version of the AzCopy was used?

10.22.0

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

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

Windows

What command did you run?

$path = "http://127.0.0.1:10000/devstoreaccount1/emulated/folder/$sasToken"
Invoke-Expression "$InstallPath\azcopy sync .\localfolder '$path' --from-to LocalBlob --delete-destination=true"
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.

What problem was encountered?

Cannot perform sync due to error: cannot list files due to reason GET http://127.0.0.1:10000/emulated
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified resource does not exist.
ERROR CODE: ResourceNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Error>
  <Code>ResourceNotFound</Code>
  <Message>The specified resource does not exist.
RequestId:c9b4d898-347e-42a2-9ec9-4aaf8025308c
Time:2023-12-07T11:04:21.095Z</Message>
</Error>
--------------------------------------------------------------------------------

How can we reproduce the problem in the simplest way?

Download 10.22.0 to $InstallPath and run the command above.

Have you found a mitigation/solution?

No, looks like internal problem with building URL.

@vibhansa-msft
Copy link
Member

Was this working in older versions? What kind of emulator you are running here?

@ljelonek
Copy link
Author

ljelonek commented Dec 8, 2023

I can confirm that 10.17.0 version was working perfectly fine.
Emulator that I am using is https://hub.docker.com/_/microsoft-azure-storage-azurite version 3.28.0.

I highly doubt that emulator is the problem here, as changing the url to http://127.0.0.1:10000/devstoreaccount1/devstoreaccount1/emulated/ returns error Cannot perform sync due to error: cannot list files due to reason GET http://127.0.0.1:10000/devstoreaccount1.

This is the second time I need to freeze azcopy version. Previously, I needed to do the same thing to mitigate #2140 . Is it possible to bring more attention to sync to avoid similar situations in the future?

@gapra-msft
Copy link
Member

This should be resolved by this PR #2495

@gapra-msft
Copy link
Member

Hi! This has been fixed in our latest release. Please feel free to open a new issue in case you hit any other issues with AzCopy!

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

Successfully merging a pull request may close this issue.

3 participants