解决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重启即可。

posted @   StanZhai  阅读(8481)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
历史上的今天:
2012-10-28 【Linux】——常见的rc的含义
2012-10-28 【hadoop】——将rpm卸载后,换成bin包的形式运行hadoop所遇到的问题
点击右上角即可分享
微信分享提示