zoukankan      html  css  js  c++  java
  • 解决GitLab提交MergeRequest时,提示502 GitLab is not responding.的问题

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

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

    2014/10/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重启即可。

  • 相关阅读:
    使用kindeditor时,取不到值
    .net Eval 绑定截取字符串
    学习GeoServer遇到的问题及答案
    爬虫用开源代理池比较
    jenkins自动化部署gitlab上maven程序
    Notepad++编辑.sh文件
    springboot的jar在linux运行
    python3安装web.py
    linux java -jar
    linux安装nginx
  • 原文地址:https://www.cnblogs.com/jasondan/p/4056669.html
Copyright © 2011-2022 走看看