如何延长 gitlab 导入命令的时间?

How do i extend the time for a gitlab import command?

在使用最新的 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

感谢您的帮助。

我发现,这是旧服务器上的独角兽超时。我通过编辑 /home/git/gitlab/config/unicorn.rb 设置 timeout=360.

修复了它

不要忘记使用 service gitlab restart 重新启动。

感谢您的关注。希望这对以后的其他人有所帮助。