Azure-storage-azcopy: azcopy exits without any output if there is no space between source and destination

Created on 8 Nov 2019  路  5Comments  路  Source: Azure/azure-storage-azcopy

Which version of the AzCopy was used?

10.3.1

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?

..\azcopy.exe copy "https://adlsg2ashish.blob.core.windows.net/testcontainer/storage?AccountSAS""f:\aad2" --overwrite=prompt --follow-symlinks --recursive --put-md5

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?

there was no space between source and destination and azcopy just quit without any output

How can we reproduce the problem in the simplest way?

Have you found a mitigation/solution?

add a space

bug

Most helpful comment

Makes sense. Ignore my earlier comment

All 5 comments

This might be a symptom of a more generic problem: report more clearly if our parameters don't make sense. (Not sure if we should attempt to solve the more generic problem tho. It may only be realistic to solve specific cases, such as the one logged here)

@JohnRusk i am not sure what you mean by this. The thing I want fixed here is that azcopy should not exit without an error/message or some indication to the user about why we exit. This feels like azcopy crashed.

Makes sense. Ignore my earlier comment

The command got treated as a piping scenario, and there was an error with the URL. So an error message should be written to Stderr, since the Stdout is used for content output.

I'd like is to actually introduce a parameter, that must be specified, to invoke pipe mode. It would avoid these kinds of confusing situations, because we could give an error message on input like that described above, if the pipe-mode parameter wasn't set.

(But this would be at the expense of being a breaking change).

Was this page helpful?
0 / 5 - 0 ratings