gitlab訪問錯誤Whoops, GitLab is taking too much time to respond

  • 2019 年 10 月 6 日
  • 筆記

gitlab訪問錯誤Whoops, GitLab is taking too much time to respond

版權聲明:本文為博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

本文鏈接:https://blog.csdn.net/weixin_40816738/article/details/90551565

一、異常現象:

gitlab訪問錯誤Whoops, GitLab is taking too much time to respond

二、問題定位

問題定位8080端口被佔用:

三、解決方案

解決方案01:

  • 將佔用的8080端口的進程殺死
  • 或者卸載佔用8080端口的軟件
  • 修改正在佔用8080端口程序的端口運行
  • 重新啟動gitlab

解決方案02:

  • 將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