Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

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
add comment

2 Answers 2

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
add comment

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/'
end

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 github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md, and see if the issue persists. –  VonC Jul 20 '12 at 22:37
add comment

Your Answer

 
discard

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.