你好,游客 登录 注册 搜索
背景:
阅读新闻

解决GitLab提交MergeRequest时,提示502 GitLab is not responding.的问题

[日期:2016-07-20] 来源:Linux社区  作者:jasondan [字体:大 中 小]

最近使用GitLab提交MergeRequest时,提示502 GitLab is not responding。

使用gitlab-ctl tail查看错误信息如下:

2016/06/28 11:50:50 [error] 6565#0: *1 upstream prematurely closed connection while reading response header from upstream, client: 1
0.xx.xx.xx, server: 10.xx.xx.xx, request: "GET /xxx/webopinion/merge_requests/new?utf8=%E2%9C%93&merge_request%5Bsource_project_id
%5D=6&merge_request%5Bsource_branch%5D=develop&merge_request%5Btarget_project_id%5D=4&merge_request%5Btarget_branch%5D=develop HTTP/
1.1", upstream: "http://unix:/home/gitlab/gitlab-rails/tmp/sockets/gitlab.socket:/xxx/webopinion/merge_requests/new?utf8=%E2%9C%9
3&merge_request%5Bsource_project_id%5D=6&merge_request%5Bsource_branch%5D=develop&merge_request%5Btarget_project_id%5D=4&merge_reque
st%5Btarget_branch%5D=develop", host: "10.xx.xx.xx", referrer: "http://10.xx.xx.xx/xxx/webopinion/merge_requests/new"

原因及解决方案

上面的问题是由于unicron的超时时间设置偏低,再加上我用的服务器性能不好导致的。

解决方案:

修改文件{GIT_LAB}/gitlab-rails/etc/unicorn.rb,将其中的timeout修改的高一些,比如90,然后gitlab-ctl restart重启即可。

更多GitLab相关教程见以下内容:

Ubuntu 14.04下安装GitLab指南  http://www.linuxidc.com/Linux/2015-12/126876.htm

如何在Ubuntu Server 14.04下安装Gitlab中文版  http://www.linuxidc.com/Linux/2015-12/126875.htm

CentOS源码安装GitLab汉化版  http://www.linuxidc.com/Linux/2015-10/124648.htm

在 Ubuntu 12.04 上安装 GitLab http://www.linuxidc.com/Linux/2012-12/75249.htm

GitLab 5.3 升级注意事项 http://www.linuxidc.com/Linux/2013-06/86473.htm

在 CentOS 上部署 GitLab (自托管的Git项目仓库) http://www.linuxidc.com/Linux/2013-06/85754.htm

在RHEL6/CentOS6/ScientificLinux6上安装GitLab 6.0.2 http://www.linuxidc.com/Linux/2014-03/97831.htm

CentOS 6.5安装GitLab教程及相关问题解决 http://www.linuxidc.com/Linux/2014-05/101526.htm

升级GitLab到8.2.0  http://www.linuxidc.com/Linux/2015-12/126220.htm

GitLab 的详细介绍:请点这里
GitLab 的下载地址:请点这里 

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-07/133357.htm

linux
相关资讯       GitLab 502 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款