gitlab - 如何延长 gitlab import 命令的时间?

标签 gitlab

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

相关文章:

Docker Gitlab 更改忘记的 root 密码

带有变量的 Gitlab CI 复制文件

continuous-integration - Gitlab 持续交付选项

Gitlab 推送。您无权访问 master

Azure DevOps CICD gitlab 集成

git - 有什么方法可以限制开发人员访问 gitlab 或 github 中的特定文件夹?

mysql - 如何使用 gitlab CI/CD 设置与 MySql 数据库的连接

git - 无法将代码推送到项目 - 错误 403

timezone - 无法更改 GitLab 时区

git - 使用 HTTP 请求检查 git repo 是否公开