Gitlab - 安装的社区版 Gitlab-ce,解决访问网页报502-Whoops, GitLab is taking too much time to respond的问题
2021-04-22 15:52
911 查看
问题背景
在自己虚拟机(centos7)上装了 Gitlab-ce,就是社区版的 Gitlab,版本是 13.0+
问题描述
浏览器访问 Gitlab 网站,报 502
问题翻译
502-Whoops,GitLab花费了太多时间来回应
尝试刷新页面,或返回并再次尝试执行操作 如果此问题仍然存在,请与您的Gitlab管理员联系
问题原因
我的虚拟机只分配了 2G 物理内存,内存不足,然后 Gitlab 自启动的一些服务或者组件太占内存,导致无法正常访问网站
官方推荐物理内存
我们强烈建议选择官方的Linux软件包安装,因为它安装速度更快,升级更容易,并且包含增强其他方法所没有的可靠性的功能。 我们也强烈建议至少有4GB的RAM运行GitLab。
解决方案
可以把虚拟机的内存调大就调大
然后,当然是释放不必要的资源,先把这两个关了
sudo gitlab-ctl stop puma sudo gitlab-ctl stop sidekiq
第二步
- 从GitLab 13.0开始,Puma 是默认的 Web服务器,并且 Unicorn 默认情况下处于禁用状态
- 现在,我们要关掉 puma,然后设置 Unicorn 为启动状态
vim /etc/gitlab/gitlab.rb
修改以下内容
跟着我写的去改哈
第一行也写了,Unicorn 和 Puma 只需要选一个
重新加载配置
sudo gitlab-ctl reconfigure
然后再访问网站就可以正常访问啦
相关文章推荐
- 安装调试gitlab/gitlab-ce容器时遇到的502 Whoops, GitLab is taking too much time to respond
- 虚拟机安装Gitlab后出现“Whoops, GitLab is taking too much time to respond.”
- Whoops, GitLab is taking too much time to respond.
- 源码编译安装 PHP5.5.0,解决curl_exec访问HTTPS返回502错误的问题
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- 解决php的“It is not safe to rely on the system’s timezone settings”问题
- 解决mysql本地可访问,远程无法访问的问题 Host is not allowed to connect to this MySQL server
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- 【Phpadmin】解决phpadmin的“It is not safe to rely on the system’s timezone settings”问题
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- The request filtering module is configured to deny a request where the query string is too long问题解决
- SVN版本问题:This client is too old to work with working copy 【解决】
- 解决安装vmware-tools出现的“The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers”问题
- 解决php的“It is not safe to rely on the system’s timezone settings”问题
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- 解决php的“It is not safe to rely on the system’s timezone settings”问题
- 解决在Ubuntu上安装MySQL数据库但是不能远程连接问题描述Host '*' is not allowed to connect to this MySQL server
- home 解决php的“It is not safe to rely on the system’s timezone settings”问题
- fedora19 安装好apache后服务器网页无法访问的问题解决