gpt4 book ai didi

azure - AzCopy 同步命令失败

转载 作者:行者123 更新时间:2023-12-05 02:06:41 26 4
gpt4 key购买 nike

我发出这个命令:

azcopy sync "D:\Releases\Test\MyApp" "http://server3:10000/devstoreaccount1/myapp?sv=2019-02-02&st=2020-06-24T03%3A19%3A44Z&se=2020-06-25T03%3A19%3A44Z&sr=c&sp=racwdl&sig=REDACTED"

...我收到此错误:

error parsing the input given by the user. Failed with error Unable to infer the source 'D:\Releases\Test\MyApp' / destination 'http://server3:10000/devstoreaccount1/myapp?sv=2019-02-02&st=2020-06-24T03%3A19%3A44Z&se=2020-06-25T03%3A19%3A44Z&sr=c&sp=racwdl&sig=-REDACTED-

我本以为我的来源非常清楚。

有人能看出我的语法有什么问题吗?

最佳答案

我相信您遇到了 azcopy 的问题,它不支持本地模拟器(至少对于同步命令)。 Github 上有一个悬而未决的问题:https://github.com/Azure/azure-storage-azcopy/issues/554 .

基本上,问题来自以下行 code ,如果是存储模拟器 URL,则返回位置为 Unknown:

func inferArgumentLocation(arg string) common.Location {
if arg == pipeLocation {
return common.ELocation.Pipe()
}
if startsWith(arg, "http") {
// Let's try to parse the argument as a URL
u, err := url.Parse(arg)
// NOTE: sometimes, a local path can also be parsed as a url. To avoid thinking it's a URL, check Scheme, Host, and Path
if err == nil && u.Scheme != "" && u.Host != "" {
// Is the argument a URL to blob storage?
switch host := strings.ToLower(u.Host); true {
// Azure Stack does not have the core.windows.net
case strings.Contains(host, ".blob"):
return common.ELocation.Blob()
case strings.Contains(host, ".file"):
return common.ELocation.File()
case strings.Contains(host, ".dfs"):
return common.ELocation.BlobFS()
case strings.Contains(host, benchmarkSourceHost):
return common.ELocation.Benchmark()
// enable targeting an emulator/stack
case IPv4Regex.MatchString(host):
return common.ELocation.Unknown()//This is what gets returned in case of storage emulator URL.
}

if common.IsS3URL(*u) {
return common.ELocation.S3()
}
}
}

return common.ELocation.Local()
}

关于azure - AzCopy 同步命令失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62547525/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com