Svolence

gitlab Troubleshoting

GitLab 碰到的问题

502 Whoops, GitLab is taking too much time to respond.

1.查看8080端口是否被占用

1
netstat -plnt | grep 8080

==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
Errno::EADDRINUSE: Address already in use - bind(2) for 127.0.0.1:8080

编辑/etc/gitlab/gitlab.rb L439 unicorn['port'] = 1234

2.sudo gitlab-ctl tail 查看相关错误日志发现:

error: proxyRoundTripper: GET “/“ failed with:
“dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused”

GitLab安装对服务器硬件有一定的要求