【发布时间】:2014-02-11 08:54:39
【问题描述】:
我在这里有一个非常酷的 gitlab 设置:
- apache 2.2.22-1ubuntu1.4
- gitlab 6.5(使用 mod_proxy 集成到 apache)
- 独角兽 v4.3.1(rails 网络服务器)
- 2MBit 上/下互联网连接
但是,在执行 'git clone' 或 'git pull' 时,对于大小 > 10 Mib 的存储库,它会失败。
ubuntu~/Projects/git/myRepo(master|✔) % git pull
Username for 'https://example.org': my.username@mydomain.de
Password for 'https://my.username@mydomain.de@example.org':
remote: Counting objects: 7798, done.
remote: Compressing objects: 100% (4132/4132), done.
fatal: The remote end hung up unexpectedlyiB | 222 KiB/s
fatal: early EOF
fatal: index-pack failed
它似乎能够复制大约 8Mib 的数据并最多运行大约 30 秒。问题每次都是可重现的,并且一遍又一遍地显示出相同的故障迹象。
我已阅读: http://jinsucraft.wordpress.com/2013/01/08/when-github-git-clone-fails-with-early-eof-and-index-pack-failed/ 并尝试过:
git config --global http.postBuffer 524288000
在客户端上无济于事。
有人知道是什么原因造成的吗?
【问题讨论】:
-
您如何解决 Skyr 的回答问题?我也遇到这个问题。我使用的是 Nginx 而不是 Apache。我增加了所有的超时设置,但这个问题仍然存在。我也在这里问过(stackoverflow.com/questions/23200149/…)。