Teamcity / Github LFS源代码管理导入失败

时间:2019-05-24 02:49:39

标签: github teamcity

我正在将LFS文件检入GitHub(实际文件存储在GitHub的Artifactory,Pointer中)。在teamcity中运行nuget包步骤时,在源代码管理导入阶段,出现以下错误。如果我在同一台计算机(在Team City主机和代理运行的位置)上从命令行进行克隆,则效果很好

git-lfs/2.7.1 (GitHub; windows amd64; go 1.11.5; git 6b7fb6e3)
git version 2.21.0.windows.1

$ git-lfs.exe filter-process
Error downloading object: MY_File.bak (559994b): Smudge error: Error downloading MY_File.bak (559994bd8fc379c750e50e26968c293a7456e7986525ca54c503ed5981c7200f): batch request: exit status 1

exit status 1
batch request
github.com/git-lfs/git-lfs/errors.newWrappedError
    C:/Users/brian m. carlson/checkouts/git-lfs/errors/types.go:198
github.com/git-lfs/git-lfs/errors.Wrap
    C:/Users/brian m. carlson/checkouts/git-lfs/errors/errors.go:74
github.com/git-lfs/git-lfs/tq.(*tqClient).Batch
    C:/Users/brian m. carlson/checkouts/git-lfs/tq/api.go:63
github.com/git-lfs/git-lfs/tq.Batch
    C:/Users/brian m. carlson/checkouts/git-lfs/tq/api.go:40
github.com/git-lfs/git-lfs/tq.(*TransferQueue).enqueueAndCollectRetriesFor
    C:/Users/brian m. carlson/checkouts/git-lfs/tq/transfer_queue.go:470
github.com/git-lfs/git-lfs/tq.(*TransferQueue).collectBatches.func1
    C:/Users/brian m. carlson/checkouts/git-lfs/tq/transfer_queue.go:391
runtime.goexit
    C:/Go/src/runtime/asm_amd64.s:1333
Error downloading QRM_Master.bak (559994bd8fc379c750e50e26968c293a7456e7986525ca54c503ed5981c7200f)
github.com/git-lfs/git-lfs/errors.newWrappedError
    C:/Users/brian m. carlson/checkouts/git-lfs/errors/types.go:198
github.com/git-lfs/git-lfs/errors.Wrapf
    C:/Users/brian m. carlson/checkouts/git-lfs/errors/errors.go:85
github.com/git-lfs/git-lfs/lfs.(*GitFilter).downloadFile
    C:/Users/brian m. carlson/checkouts/git-lfs/lfs/gitfilter_smudge.go:110
github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge
    C:/Users/brian m. carlson/checkouts/git-lfs/lfs/gitfilter_smudge.go:71
github.com/git-lfs/git-lfs/commands.smudge
    C:/Users/brian m. carlson/checkouts/git-lfs/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/commands.filterCommand
    C:/Users/brian m. carlson/checkouts/git-lfs/commands/command_filter_process.go:118
github.com/spf13/cobra.(*Command).execute
    C:/Users/brian m. carlson/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
    C:/Users/brian m. carlson/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
github.com/spf13/cobra.(*Command).Execute
    C:/Users/brian m. carlson/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/git-lfs/git-lfs/commands.Run
    C:/Users/brian m. carlson/checkouts/git-lfs/commands/run.go:97
main.main
    C:/Users/brian m. carlson/checkouts/git-lfs/git-lfs.go:33
runtime.main
    C:/Go/src/runtime/proc.go:201
runtime.goexit
    C:/Go/src/runtime/asm_amd64.s:1333
Smudge error
github.com/git-lfs/git-lfs/errors.newWrappedError
    C:/Users/brian m. carlson/checkouts/git-lfs/errors/types.go:198
github.com/git-lfs/git-lfs/errors.NewSmudgeError
    C:/Users/brian m. carlson/checkouts/git-lfs/errors/types.go:284
github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge
    C:/Users/brian m. carlson/checkouts/git-lfs/lfs/gitfilter_smudge.go:80
github.com/git-lfs/git-lfs/commands.smudge
    C:/Users/brian m. carlson/checkouts/git-lfs/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/commands.filterCommand
    C:/Users/brian m. carlson/checkouts/git-lfs/commands/command_filter_process.go:118
github.com/spf13/cobra.(*Command).execute
    C:/Users/brian m. carlson/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
    C:/Users/brian m. carlson/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
github.com/spf13/cobra.(*Command).Execute
    C:/Users/brian m. carlson/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/git-lfs/git-lfs/commands.Run
    C:/Users/brian m. carlson/checkouts/git-lfs/commands/run.go:97
main.main
    C:/Users/brian m. carlson/checkouts/git-lfs/git-lfs.go:33
runtime.main
    C:/Go/src/runtime/proc.go:201
runtime.goexit
    C:/Go/src/runtime/asm_amd64.s:1333

下面是Teamcity的日志

Failed to perform checkout on agent: 'git.exe -c credential.helper= reset --hard 229efa6768fdf4a11e3f0f6f4470f138e62f0bba' command failed. exit code: 128 stderr: Downloading MY_File.bak (696 MB) Error downloading object: MY_File.bak (559994b): Smudge error: Error downloading QRM_Master.bak (559994bd8fc379c750e50e26968c293a7456e7986525ca54c503ed5981c7200f): batch request: exit status 1

Errors logged to E:\softwareBuildAgent\system\git\git-46878931.git\lfs\logs\20190524T140027.0261076.log Use `git lfs logs last` to view the log. error: external filter 'git-lfs filter-process' failed fatal: QRM_Master.bak: smudge filter lfs failed

0 个答案:

没有答案