Git LFS:使用新的LFS文件更改分支时,由于过滤器进程而导致的错误

6qqygrtg  于 2023-06-04  发布在  Git
关注(0)|答案(1)|浏览(509)

经过3个小时的尝试,我不能理解为什么我得到这个错误,当我试图去一个不同的分支,它是新添加的lfs文件。
错误记录到C:\Users\hp\cs-for-the-humanities-watermarks-18b.git\lfs\logs\20230602T224504.955467.log使用git lfs logs last查看日志。错误:外部过滤器'git-lfs filter-process'失败致命:数据库/db.pkl:污迹过滤器lfs失败
基本上这是错误的Thx!
我试着用别人说的话,但没用。git-lfs/3.0.2(GitHub; windows amd64; go 1.17.2)git版本2.35.1.windows.2

$ git-lfs.exe filter-process
Error downloading object: database/db.pkl (c05e62d): Smudge error: Error downloading database/db.pkl (c05e62d87b0303ddc10132e50a2d4db5d47d7fee0470e18da7d829e2d26f46fb): batch request: ssh: connect to host gitlab.ewi.tudelft.nl port 22: Connection timed out: exit status 255

exit status 255
ssh: connect to host gitlab.ewi.tudelft.nl port 22: Connection timed out
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
        D:/a/git-lfs/git-lfs/errors/types.go:225
github.com/git-lfs/git-lfs/v3/errors.Wrap
        D:/a/git-lfs/git-lfs/errors/errors.go:74
github.com/git-lfs/git-lfs/v3/lfshttp.(*Client).sshResolveWithRetries
        D:/a/git-lfs/git-lfs/lfshttp/client.go:228
github.com/git-lfs/git-lfs/v3/lfshttp.(*Client).NewRequest
        D:/a/git-lfs/git-lfs/lfshttp/client.go:124
github.com/git-lfs/git-lfs/v3/lfsapi.(*Client).NewRequest
        D:/a/git-lfs/git-lfs/lfsapi/client.go:13
github.com/git-lfs/git-lfs/v3/tq.(*tqClient).Batch
        D:/a/git-lfs/git-lfs/tq/api.go:84
github.com/git-lfs/git-lfs/v3/tq.Batch
        D:/a/git-lfs/git-lfs/tq/api.go:43
github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).enqueueAndCollectRetriesFor
        D:/a/git-lfs/git-lfs/tq/transfer_queue.go:558
github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches.func1
        D:/a/git-lfs/git-lfs/tq/transfer_queue.go:452
runtime.goexit
        go/src/runtime/asm_amd64.s:1581
batch request
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
        D:/a/git-lfs/git-lfs/errors/types.go:225
github.com/git-lfs/git-lfs/v3/errors.Wrap
        D:/a/git-lfs/git-lfs/errors/errors.go:74
github.com/git-lfs/git-lfs/v3/tq.(*tqClient).Batch
        D:/a/git-lfs/git-lfs/tq/api.go:86
github.com/git-lfs/git-lfs/v3/tq.Batch
        D:/a/git-lfs/git-lfs/tq/api.go:43
github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).enqueueAndCollectRetriesFor
        D:/a/git-lfs/git-lfs/tq/transfer_queue.go:558
github.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches.func1
        D:/a/git-lfs/git-lfs/tq/transfer_queue.go:452
runtime.goexit
        go/src/runtime/asm_amd64.s:1581
Error downloading database/db.pkl (c05e62d87b0303ddc10132e50a2d4db5d47d7fee0470e18da7d829e2d26f46fb)
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
        D:/a/git-lfs/git-lfs/errors/types.go:225
github.com/git-lfs/git-lfs/v3/errors.Wrapf
        D:/a/git-lfs/git-lfs/errors/errors.go:85
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).downloadFile
        D:/a/git-lfs/git-lfs/lfs/gitfilter_smudge.go:119
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge
        D:/a/git-lfs/git-lfs/lfs/gitfilter_smudge.go:78
github.com/git-lfs/git-lfs/v3/commands.smudge
        D:/a/git-lfs/git-lfs/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/v3/commands.filterCommand
        D:/a/git-lfs/git-lfs/commands/command_filter_process.go:122
github.com/spf13/cobra.(*Command).execute
        go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
        go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
github.com/spf13/cobra.(*Command).Execute
        go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/git-lfs/git-lfs/v3/commands.Run
        D:/a/git-lfs/git-lfs/commands/run.go:105
main.main
        D:/a/git-lfs/git-lfs/git-lfs.go:33
runtime.main
        go/src/runtime/proc.go:255
runtime.goexit
        go/src/runtime/asm_amd64.s:1581
Smudge error
github.com/git-lfs/git-lfs/v3/errors.newWrappedError
        D:/a/git-lfs/git-lfs/errors/types.go:225
github.com/git-lfs/git-lfs/v3/errors.NewSmudgeError
        D:/a/git-lfs/git-lfs/errors/types.go:311
github.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge
        D:/a/git-lfs/git-lfs/lfs/gitfilter_smudge.go:87
github.com/git-lfs/git-lfs/v3/commands.smudge
        D:/a/git-lfs/git-lfs/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/v3/commands.filterCommand
        D:/a/git-lfs/git-lfs/commands/command_filter_process.go:122
github.com/spf13/cobra.(*Command).execute
        go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
        go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852
github.com/spf13/cobra.(*Command).Execute
        go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/git-lfs/git-lfs/v3/commands.Run
        D:/a/git-lfs/git-lfs/commands/run.go:105
main.main
        D:/a/git-lfs/git-lfs/git-lfs.go:33
runtime.main
        go/src/runtime/proc.go:255
runtime.goexit
        go/src/runtime/asm_amd64.s:1581

Current time in UTC:
2023-06-02 21:06:40

ENV:
LocalWorkingDir=C:\Users\hp\cs-for-the-humanities-watermarks-18b
LocalGitDir=C:\Users\hp\cs-for-the-humanities-watermarks-18b\.git
LocalGitStorageDir=C:\Users\hp\cs-for-the-humanities-watermarks-18b\.git
LocalMediaDir=C:\Users\hp\cs-for-the-humanities-watermarks-18b\.git\lfs\objects
LocalReferenceDirs=
TempDir=C:\Users\hp\cs-for-the-humanities-watermarks-18b\.git\lfs\tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=C:\Users\hp\cs-for-the-humanities-watermarks-18b\.git\lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic,lfs-standalone-file,ssh
UploadTransfers=basic,lfs-standalone-file,ssh
GIT_ASKPASS=c:\Users\hp\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh
GIT_EXEC_PATH=C:/Program Files/Git/mingw64/libexec/git-core
GIT_PREFIX=

'''

tjvv9vkg

tjvv9vkg1#

Git LFS旨在将大型文件存储在主Git存储之外,并根据需要从远程文件服务器下载它们。这意味着用于存储库的空间不那么重要。
在你的例子中,Git LFS认为它需要下载的文件不存在,并试图从远程下载它。默认情况下,使用的远程是origin。在本例中,Git LFS尝试通过SSH连接,因为远程是SSH,并且与GitLab服务器的连接超时。
如果Git LFS无法连接到远程服务器,那么它就无法下载对象,并且因为Git在Git LFS返回成功或失败之前不会完成 checkout ,所以 checkout 需要很长时间。如果你想使用不同的遥控器,那么你可以将remote.lfsdefault设置为不同的位置(例如,git config remote.lfsdefault REMOTE),它将使用该遥控器。
请注意,在某些情况下,Git LFS 3.0和更新版本可能会建立SSH连接,即使由于a bug which has been fixed and will be in the upcoming v3.4.0而不需要SSH连接,该连接可能会在2023年6月发布。如果这是一个问题,您可以在此期间从主分支构建自己的版本。

相关问题