在使用最新的 gitlab 时,我尝试使用新盒子上方便的导入功能从旧的 gitlab 服务器导入旧存储库。然而,在输入所有详细信息后(这对于所有其他较小存储库来说都很好),由于远程挂起,它失败了。
首先:我需要在旧服务器上配置一些东西吗?如果需要的话怎么办? 第二:如果有帮助的话,我如何延长新服务器上的超时?
它说:
Import repository
The repository could not be imported.
Cloning into bare repository '/var/opt/gitlab/git-data/repositories/<group-name>/<repo-name>.git'...
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
感谢您的帮助。
最佳答案
我发现,这是旧服务器上的 unicorn 超时。我通过编辑 /home/git/gitlab/config/unicorn.rb
设置 timeout=360
修复了它。
不要忘记使用 service gitlab restart
重新启动。
感谢您的关注。希望这对将来的其他人有帮助。
关于gitlab - 如何延长 gitlab import 命令的时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34886603/