gitlabhq/gitlabhq_install — Issue #2: Gitolite Error - We're sorry, but we cant get access to your gitolite system.
Author: talltroym
Created: 2011-12-13 21:11:38+00:00
State: open

Something seems to be wrong with these installation scripts. Although they are a big help, it seems like they don't set a correct permission. I'm able to login to the web interface of GitLabHQ, I can create a user, but if I try to destroy a user I receive the following message:
==
Gitolite Error
We're sorry, but we cant get access to your gitolite system.
1. Check 'config/gitlab.yml' for correct settings.
2. Be sure web server user has access to gitolite.
==

I'm performing the following steps as my own user account on Ubuntu Server 11.10:
sudo useradd -s /bin/bash -m -G admin gitlabhq
sudo passwd gitlabhq

I then login as the gitlabhq user and do the following:
ssh gitlabhq@localhost
sudo aptitude install git-core postfix -y
ssh-keygen -t rsa (default file location, NO passphrase)
cd ~
git clone https://github.com/gitlabhq/gitlabhq_install.git
gitlabhq_install/ubuntu_packages.sh
gitlabhq_install/ubuntu_ruby.sh
gitlabhq_install/ubuntu_gitolite.sh (I change the REPO_UMASK from 0077 to 0007)
logout
ssh gitlabhq@localhost
ssh git@localhost (type yes to accept the fingerprint)
exit
gitlabhq_install/ubuntu_gitlab.sh
cd /home/gitlabhq/gitlabhq
bundle exec rails s -e production