Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
rake aborted!
unexpected return

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

  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 ?

share|improve this question
In your case, the repos are in /home/git/repositories/? Or are they in /home/gitlab/repositories/ – VonC Jul 20 '12 at 12:32
they are in /home/git/repositories/ – teresko Jul 20 '12 at 21:59

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...

share|improve this answer

You mention:

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

If you look at the config/initializers/1_settings.rb program:

def git_base_path
      git_host['base_path'] || '/home/git/repositories/'

So this is your real issue here (before starting tweaking the folder permissions): gitlab somehow ignores your config/gitlab.yml setting.
Double-check for any typo in it, and make sure it is taken into account at all (by removing it for instance, to see if gitlab complains about that file missing).

share|improve this answer
I have v2.6.3 but there is no such file – teresko Jul 20 '12 at 21:55
@teresko try installing from master, following, and see if the issue persists. – VonC Jul 20 '12 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.