Error "502 Bad Gateway" after fresh install
Created by: HarriKwokTest
I'm getting a Error "502 Bad Gateway" after fresh install. I kept the hostname as localhost
Installed on OEL 6.4
followed this tutorial for installation: https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
gitlab-shell.log shows the following:
Logfile created on 2014-01-07 07:20:15 -0500 by logger.rb/41954
E, [2014-01-07T07:20:15.587618 #25814] ERROR -- : API call <GET http://localhost//api/v3/internal/check> failed: 502 => <
502 Bad Gateway502 Bad Gateway
nginx
.
Output of gitlab check Checking Environment ...
Git configured for git user? ... yes Has python2? ... yes python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.9 ? ... OK (1.8.0) Repo base directory exists? ... yes Repo base directory is a symlink? ... no Repo base owned by git:git? ... yes Repo base access is drwxrws---? ... yes update hook up-to-date? ... yes update hooks in repos are links: ... can't check, you have no projects Running /home/git/gitlab-shell/bin/check Check GitLab API access: FAILED. code: 502 gitlab-shell self-check failed Try fixing it: Make sure GitLab is running; Check the gitlab-shell configuration file: sudo -u git -H editor /home/git/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 LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Database config exists? ... yes Database is SQLite ... no All migrations up? ... yes GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Init script exists? ... yes Init script up-to-date? ... yes projects have namespace: ... can't check, you have no projects Projects have satellites? ... can't check, you have no projects Redis version >= 2.0.0? ... yes Your git bin path is "/usr/bin/git" Git version >= 1.7.10 ? ... no Try fixing it: Update your git to a version >= 1.7.10 from 1.7.1 Please fix the error above and rerun the checks.
Checking GitLab ... Finished [root@localhost gitlab-shell]# git --version git version 1.8.4.3
Which is odd since git version = 1.8.4.3