502 Whoops, GitLab is taking too much time to respond


#1

I have Upgraded to 9.0.4-ce.0 from 8.0.5-ce.0, eversince I get a error page with following message “502 Whoops, GitLab is taking too much time to respond”

I have ran “gitlab-ctl reconfigure” several times, nothing seem to make any difference. I appreciate any hints to determine the cause and then fix it.

Below is the outout of “sudo gitlab-ctl status”

run: gitaly: (pid 3375) 629s; run: log: (pid 788) 32451s
run: gitlab-monitor: (pid 3381) 629s; run: log: (pid 781) 32451s
run: gitlab-workhorse: (pid 3384) 628s; run: log: (pid 784) 32451s
run: logrotate: (pid 3406) 628s; run: log: (pid 779) 32451s
run: nginx: (pid 3412) 627s; run: log: (pid 789) 32451s
run: node-exporter: (pid 3432) 627s; run: log: (pid 787) 32451s
run: postgres-exporter: (pid 3438) 627s; run: log: (pid 791) 32451s
run: postgresql: (pid 3446) 626s; run: log: (pid 783) 32451s
run: prometheus: (pid 3468) 626s; run: log: (pid 782) 32451s
run: redis: (pid 3476) 625s; run: log: (pid 786) 32451s
run: redis-exporter: (pid 3496) 625s; run: log: (pid 785) 32451s
run: sidekiq: (pid 3541) 622s; run: log: (pid 790) 32451s
run: unicorn: (pid 13904) 0s; run: log: (pid 780) 32451s

Below is the output of “sudo gitlab-rake gitlab:check SANITIZE=true”

Checking GitLab Shell …

GitLab Shell version >= 5.0.0 ? … OK (5.0.0)
Repo base directory exists?
default… yes
Repo storage directories are symlinks?
default… no
Repo paths owned by git:git?
default… yes
Repo paths access is drwxrws—?
default… yes
hooks directories in repos are links: …
3/2 … ok
7/3 … ok
4/4 … ok
3/5 … ok
3/6 … ok
3/7 … ok
3/8 … ok
3/9 … ok
2/10 … ok
2/11 … ok
2/12 … ok
2/13 … ok
2/14 … ok
2/15 … ok
2/16 … ok
2/18 … ok
2/19 … ok
2/20 … ok
10/24 … ok
3/25 … ok
2/26 … ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: FAILED: Failed to connect to internal API
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u git -H editor /opt/gitlab/embedded/service/gitlab-shell/config.yml
Please fix the error above and rerun the checks.

Checking GitLab Shell … Finished

Checking Sidekiq …

Running? … yes
Number of Sidekiq processes … 1

Checking Sidekiq … Finished

Checking Reply by email …

Reply by email is disabled in config/gitlab.yml

Checking Reply by email … Finished

Checking LDAP …

Server: ldapmain
LDAP authentication… Success

##private content removed…

Checking LDAP … Finished

Checking GitLab …

Git configured with autocrlf=input? … yes
Database config exists? … yes
All migrations up? … yes
Database contains orphaned GroupMembers? … no
GitLab config exists? … yes
GitLab config outdated? … no
Log directory writable? … yes
Tmp directory writable? … yes
Uploads directory setup correctly? … no
Try fixing it:
sudo chown -R git /var/opt/gitlab/gitlab-rails/uploads
sudo find /var/opt/gitlab/gitlab-rails/uploads -type f -exec chmod 0644 {} ;
sudo find /var/opt/gitlab/gitlab-rails/uploads -type d -not -path /var/opt/gitlab/gitlab-rails/uploads -exec chmod 0700 {} ;
For more information see:
doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Init script exists? … skipped (omnibus-gitlab has no init script)
Init script up-to-date? … skipped (omnibus-gitlab has no init script)
projects have namespace: …
3/2 … yes
7/3 … yes
4/4 … yes
3/5 … yes
3/6 … yes
3/7 … yes
3/8 … yes
3/9 … yes
2/10 … yes
2/11 … yes
2/12 … yes
2/13 … yes
2/14 … yes
2/15 … yes
2/16 … yes
2/18 … yes
2/19 … yes
2/20 … yes
10/24 … yes
3/25 … yes
2/26 … yes
Redis version >= 2.8.0? … yes
Ruby version >= 2.1.0 ? … yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? … yes (2.10.2)
Active users: 5

Checking GitLab … Finished


#2

Hi,

Usually this means that you have a configuration issue somewhere, I would recommend that you copy your current settings into the latest template and reconfigure your installation.