Hi everyone, I'm totally new to gitlab and happy to have found this group. I started the initial configuration of gitlab on my RHEL 6 server but unfortunately my gitlab check fails with the following error:
$ bundle exec rake gitlab:check RAILS_ENV=production > > 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: > /usr/local/lib/ruby/2.1.0/net/http/response.rb:119:in `error!': 407 > "authenticationrequired" (Net::HTTPServerException)* > * from /usr/local/lib/ruby/2.1.0/net/http/response.rb:128:in > `value'* > * from /usr/local/lib/ruby/2.1.0/net/http.rb:915:in `connect'* > * from /usr/local/lib/ruby/2.1.0/net/http.rb:863:in `do_start'* > * from /usr/local/lib/ruby/2.1.0/net/http.rb:852:in `start'* > * from /home/git/gitlab-shell/lib/gitlab_net.rb:62:in `get'* > * from /home/git/gitlab-shell/lib/gitlab_net.rb:29:in `check'* > * from /home/git/gitlab-shell/bin/check:11:in `<main>'* > *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.* > I really hope that someone around here has a hint for me since I can't find anything when I google this authentication error. I enabled a user and a password in /home/git/gitlab-shell/config.yml under the http_settings by just defining a radom user with a random password. I think that due to this error in the gitlab check I get a 502 bad gateway via nginx when I try to access my gitlab pages. Or maybe these errors may not be related? The nginx gitlab_error.log states the following: [crit] 26202#0: *3 stat() "/home/git/gitlab/public/.html" failed (13: > Permission denied), client: $clientip, server: gitlab.myurl.com, request: > "GET / HTTP/1.1", host: "gitlab.myurl.com" > [crit] 26202#0: *3 stat() "/home/git/gitlab/public/users/sign_in" failed > (13: Permission denied), client: $clientip, server: gitlab.myurl.com, > request: "GET /users/sign_in HTTP/1.1", host: "gitlab.myurl.com" > My nginx is running under the nginx user which I added to the git group. $ id nginx uid=495(nginx) gid=492(nginx) groups=492(nginx),493(git) However if I try to check the permissions for nginx as the nginx user himself via namei -om /home/git/gitlab/public/ I get /home/git/gitlab/public/: Permission denied The permissions for /home/git/gitlab are the following: drwxrwxr-x. 16 git git 4096 Jan 3 14:42 gitlab drwxrwxr-x. 13 git git 4096 Jan 3 12:54 app -rw-rw-r--. 1 git git 19981 Jan 3 12:55 CHANGELOG drwxrwxr-x. 5 git git 4096 Jan 6 09:33 config -rw-rw-r--. 1 git git 422 Jan 3 12:55 config.ru -rw-rw-r--. 1 git git 7570 Jan 3 12:54 CONTRIBUTING.md drwxrwxr-x. 4 git git 4096 Jan 3 12:55 db drwxrwxr-x. 11 git git 4096 Jan 3 12:54 doc drwxrwxr-x. 11 git git 4096 Jan 3 12:54 features -rw-rw-r--. 1 git git 4271 Jan 3 12:55 Gemfile -rw-rw-r--. 1 git git 15633 Jan 3 12:55 Gemfile.lock -rw-rw-r--. 1 git git 1252 Jan 3 12:54 Guardfile drwxrwxr-x. 9 git git 4096 Jan 3 12:54 lib -rw-rw-r--. 1 git git 1063 Jan 3 12:54 LICENSE drwxrwxr-x. 2 git git 4096 Jan 5 03:09 log -rw-rw-r--. 1 git git 1277 Jan 3 12:54 MAINTENANCE.md -rw-rw-r--. 1 git git 8929 Jan 3 12:54 PROCESS.md -rw-rw-r--. 1 git git 163 Jan 3 12:54 Procfile *drwxrwxr-x. 3 git git 4096 Jan 3 12:57 public* -rw-rw-r--. 1 git git 271 Jan 3 12:54 Rakefile -rw-rw-r--. 1 git git 8003 Jan 3 12:54 README.md drwxrwxr-x. 2 git git 4096 Jan 3 12:54 script drwxrwxr-x. 19 git git 4096 Jan 3 12:54 spec drwxrwxr-x. 6 git git 4096 Jan 3 14:50 tmp drwxrwxr-x. 5 git git 4096 Jan 3 13:05 vendor -rw-rw-r--. 1 git git 6 Jan 3 12:55 VERSION $ ls -la /home/git/gitlab/public/ > -rw-rwxr--. 1 git git 357 Jan 3 12:54 404.html -rw-rwxr--. 1 git git 399 Jan 3 12:54 422.html -rw-rwxr--. 1 git git 356 Jan 3 12:54 500.html -rw-rwxr--. 1 git git 374 Jan 3 12:54 deploy.html -rw-rwxr--. 1 git git 32988 Jan 3 12:54 favicon.ico -rw-rwxr--. 1 git git 17388 Jan 3 12:54 gitlab_logo.png -rw-rwxr--. 1 git git 204 Jan 3 12:54 robots.txt -rw-rwxr--. 1 git git 518 Jan 3 12:54 static.css drwxrwxr-x. 2 git git 4096 Jan 3 12:57 uploads Thanks in advance for your help, Essy -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
