我在Jfrog中有一个工件,供应商保留更新的二进制文件。我应该使用Azure管道中的构建任务(即Artifactory通用下载)下载二进制文件。从该工件远程仓库下载二进制文件时,某些大型文件(即大小超过800 MB)没有下载,并抛出错误“意外EoF”
我认为问题出在互联网速度较慢,所以我试图以可用的最快互联网连接下载这些工件,但这没有帮助。
我得到的输出是这个
##[debug]fileSpec={
"files": [
{
"pattern": "Dependencies/SQLEXPRADV_x64_ENU.exe",
"target": "D:\Abhijit\VSTS_Agent\_work\2\s\\"
}
]
}
Using file spec:
{
"files": [
{
"pattern": "Dependencies/SQLEXPRADV_x64_ENU.exe",
"target": "D:\\Abhijit\\VSTS_Agent\\_work\\2\\s\\"
}
]
}
##[debug]0a364c9c-b6a0-43eb-8b47-d6a58c68b016 auth param username = ***
##[debug]0a364c9c-b6a0-43eb-8b47-d6a58c68b016 auth param password = ***
##[debug]failNoOp=true
##[debug]buildName=Test_Project_KT-CI (1)
##[debug]buildNumber=309
[Info] Searching items to download...
[Info] [Thread 2] Downloading Dependencies/SQLEXPRADV_x64_ENU.exe
[Info] [Thread 2] [0]: 206 Partial content...
[Info] [Thread 2] [1]: 206 Partial Content...
[Info] [Thread 2] [2]: 206 Partial Content...
[Warn] [Thread 2] [1]: Attempt 0 - Failure occurred while downloading part 1 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
[Warn] [Thread 2] [2]: Attempt 0 - Failure occurred while downloading part 2 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
[Info] [Thread 2] [1]: 206 Partial Content...
[Warn] [Thread 2] [1]: Attempt 1 - Failure occurred while downloading part 1 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
[Info] [Thread 2] [1]: 206 Partial Content...
[Info] [Thread 2] [2]: 206 Partial Content...
[Warn] [Thread 2] [2]: Attempt 1 - Failure occurred while downloading part 2 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
[Warn] [Thread 2] [1]: Attempt 2 - Failure occurred while downloading part 1 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
[Info] [Thread 2] [1]: 206 Partial Content...
[Info] [Thread 2] [2]: 206 Partial Content...
[Warn] [Thread 2] [2]: Attempt 2 - Failure occurred while downloading part 2 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
[Warn] [Thread 2] [1]: Attempt 3 - Failure occurred while downloading part 1 of https://artifacts.test.com/artifactory/Dependencies/SQLEXPRADV_x64_ENU.exe - unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x799657]
预期产量
##[debug]fileSpec={
"files": [
{
"pattern": "Dependencies/SQLEXPRADV_x64_ENU.exe",
"target": "D:\Abhijit\VSTS_Agent\_work\2\s\\"
}
]
}
Using file spec:
{
"files": [
{
"pattern": "Dependencies/SQLEXPRADV_x64_ENU.exe",
"target": "D:\\Abhijit\\VSTS_Agent\\_work\\2\\s\\"
}
]
}
##[debug]0a364c9c-b6a0-43eb-8b47-d6a58c68b016 auth param username = ***
##[debug]0a364c9c-b6a0-43eb-8b47-d6a58c68b016 auth param password = ***
##[debug]failNoOp=true
##[debug]buildName=Test_Project_KT-CI (1)
##[debug]buildNumber=309
[Info] Searching items to download...
[Info] [Thread 2] Downloading Dependencies/SQLEXPRADV_x64_ENU.exe
[Info] [Thread 2] [0]: 206 Partial content...
[Info] [Thread 2] [1]: 206 Partial Content...
[Info] [Thread 2] [2]: 206 Partial Content...
[Info] download done...
```
答案 0 :(得分:1)
根据您的输出文件,不仅unexpected EOF
,您还会收到另一条错误消息:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x799657]
这是关于Go
的错误,并且the task you used是用这种Go语言编写的。根据他们的github仓库,您可以检查任务代码是什么。因此,此错误消息应由他们的任务代码而不是您自己引起。
此外,他们的github问题报告下也有类似的错误。您可以检查it。他们的团队正在更新以更改导致此错误的代码,而他们的最新版本将包含此更改。