尝试将LFS文件推入Gerrit-Git LFS时连接被拒绝
我目前与Git LFS和Gerrit合作。 一切似乎都很好,直到我尝试将LFS文件推送到gerrit服务器。 我得到了以下错误:尝试将LFS文件推入Gerrit-Git LFS时连接被拒绝,git,gerrit,git-lfs,Git,Gerrit,Git Lfs,我目前与Git LFS和Gerrit合作。 一切似乎都很好,直到我尝试将LFS文件推送到gerrit服务器。 我得到了以下错误: LFS: Put http://<localhost>:3001/plugins/lfs/content/default/2133123fd: dial tcp <localhost>:3001: connect: connection refused error: failed to push some refs to 'http://<
LFS: Put http://<localhost>:3001/plugins/lfs/content/default/2133123fd: dial tcp <localhost>:3001: connect: connection refused error: failed to push some refs to 'http://<user>@<localhost>:3001/lfs'
cat$gerrit_path/etc/lfs.config
[auth]
type = development_become_any_account
gitBasicAuthPolicy = HTTP
[lfs]
plugin = lfs
[storage]
backend = fs
[fs]
directory = /home/<user>/workspace/gerrit_2.15.6
[lfs]
access = basic
locksverify = false
url = http://<user>:<password>@<localhost>:3001/lfs/info/lfs
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
我使用的gerrit不是在生产中,我只是做了一些测试来查看植入(所以基本上gerrit有默认配置)。
我已经测试了HTTP连接和SSH。我可以用这两种工具推拉普通文件。当我尝试推送LFS文件时,问题就出现了
我认为问题可能出在本地git lfs扩展上,因为如果我在本地项目上卸载git lfs,推送会成功,但对象并没有真正上传到gerrit服务器(只是引用)
非常感谢你
额外数据:
Gerrit版本:2.15.6
Git LFS扩展版本:Git LFS/2.10.0(GitHub;linux amd64;go 1.13.4)
Gerrit LFS插件:2.15
还对gerrit上的所有项目进行了以下配置:
查看“url=http://:@:3001/lfs/info/lfs”,我假设您的存储库名为“lfs”,是否正确?是的,它是正确的。您是否修改了该错误以及您在控制台中发布的配置?在添加LFS插件和配置后,您是否重新启动了gerrit?我从错误中编辑的唯一内容是“<>”之间的参数。是的,在完成所有这些过程之后,我重新启动了gerrit服务器。我读了一些关于“git lfs身份验证”的文章。他们建议运行这个命令ssh@git lfs authenticate lfs_project.git,但是如果我尝试运行这个命令,就会出现错误bash:git lfs authenticate:command not found。我不知道这是否是问题所在
*.tar filter=lfs diff=lfs merge=lfs -text