错误信息
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /users/sign_in.
Reason: Error reading from remote server
Apache Gitlab 配置文件
<VirtualHost *:80>
ServerName 192.168.11.129
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
SetEnv force-proxy-request-1.0.1
SetEnv proxy-nokeepalive 1
</VirtualHost>
解决办法:
设置config/unicorn.rb文件中的timeout为60(默认设置是30)
vim /home/gitlab/gitlab/config/unicorn.rb
#找到这一行timeout 30,将30改为60
#重启Gitlab
service gitlab restart
具体可参考https://github.com/gitlabhq/gitlabhq/issues/2216
CentOS安装gitlab Apache 502
最新推荐文章于 2024-08-20 14:09:14 发布
本文介绍了一种常见的GitLab代理错误及其解决方案。错误表现为代理服务器从上游服务器接收无效响应,导致无法处理请求。通过调整Apache GitLab配置文件中的超时设置可以解决此问题。
1897

被折叠的 条评论
为什么被折叠?



