Centos – Installation of GitLab ignores ./config/gitlab.yml

centoscentos5gitgitlabgitolite

I have been trying to install GitLab on CentOS 5.x, but I am stuck now and google's are confusing.

I have been following this install guide (currently stuck here)

After running bundle exec rake gitlab:app:status RAILS_ENV=production for the secund time I get this output:

Starting diagnostic
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............missing
rake aborted!
unexpected return

The relevant part from /home/gitlab/gitlab/config/gitlab.yml is this (server has custom shh port):

git_host:
  system: gitolite___
  admin_uri: git@localhost:gitolite-admin
  base_path: /home/git/repositories/
  host: localhost
  git_user: git
  port: 2134

Folder permissions are drwxrwx--- 4 git git 4096 Jul 20 07:12 repositories and the files inside are (gitlab user is in git group):

drwxrwx--- 8 git git 4096 Jul 20 04:22 gitolite-admin.git
drwxrwx--- 7 git git 4096 Jul 20 04:22 testing.git

Thing, even if I change the base_path value in config/gitlab.yml, it keeps trying to look up the same folder.

Only possible directions for the solution, that I found on google, indicated, that it is somehow related to SElinux. The suggested command was: find . -print0 |xargs -0 -n 1 sudo setfattr -h -x security.selinux. But i have no clue where to execute it and it tells me that command setfattr not found .. or something. Also, I kinda doubt, that unchanging configuration might too be affected by SElinux.

What to do ?

Best Answer

Maybe you did not run the rake command as your gitlab user? As in:

sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production

Had a similar problem, seeing other settings from gitlab.yml just not being applied...