gitlab访问错误Whoops, GitLab is taking too much time to respond

gitlab访问错误Whoops, GitLab is taking too much time to respond

2019年05月25日 21:12:27 gblfy 阅读数 429更多
分类专栏: Gitlab
 
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处连接和本声明。

1、异常现象:

gitlab访问错误Whoops, GitLab is taking too much time to respondgit

2、问题定位

问题定位8080端口被占用:sql

3、解决方案

解决方案01:数据库

  • 将占用的8080端口的进程杀死
  • 或者卸载占用8080端口的软件
  • 修改正在占用8080端口程序的端口运行
  • 从新启动gitlab

解决方案02:vim

  • 将external_url添加一个未被使用的端口
external_url 'http://192.168.45.146
  • 1
  • 修改成没有使用的端口便可:
external_url 'http://192.168.45.146:8899'
  • 1

将下面这3行打开注释
默认注释:
分布式

unicorn['port'] = 8088 postgresql['shared_buffers'] = "256MB" postgresql['max_connections'] = 200
  • 1
  • 2
  • 3
  • 从新启动gitlab,便可

gitlab经常使用命令:

命令功能 执行命令
重启配置,并启动gitlab服务 sudo gitlab-ctl reconfigure
启动全部 gitlab sudo gitlab-ctl start
从新启动GitLab sudo gitlab-ctl restart
中止全部 gitlab sudo gitlab-ctl stop
查看服务状态 sudo gitlab-ctl status
查看Gitlab日志 sudo gitlab-ctl tail
修改默认的配置文件 sudo vim /etc/gitlab/gitlab.rb
检查gitlab gitlab-rake gitlab:check SANITIZE=true --trace
 

想学习更多微服务、分布式、中间件、数据库、项目快速构建等系列技术
请访问Gblfy主页:https://blog.csdn.net/weixin_40816738
让咱们一块儿进步!!!
微服务

相关文章
相关标签/搜索