Access Denied Trying to Push to clean install of Gitlab 6.2 on Ubuntu 12.04.3
Created by: tdb85
Hi all I just did a clean install of Gitlab 6.2 on Ubuntu 12.04. Ran almost without a hitch. Only thing I had to do was add a Git PPA to get Git updated as 12.04 only includes 1.7.9 and Gitlab wants 1.7.10.
I have created a new project in Gitlab and when I try to do the initial push I get (my client PC is Fedora 19)
[teddy@teddy-fedora src-main]$ git remote -v
origin git@hermes:tbrown/grape.git (fetch)
origin git@hermes:tbrown/grape.git (push)
src-edc ../src-edc (fetch)
src-edc ../src-edc (push)
teddy ../src-teddy (fetch)
teddy ../src-teddy (push)
[teddy@teddy-fedora src-main]$ git push -u origin master
Access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Gitlab has my ssh key and knows who I am...
[teddy@teddy-fedora src-main]$ ssh -T git@hermes
Welcome to GitLab, Teddy Brown!
My server is Ubuntu Server 12.04.3 with a Git PPA
teddy@hermes:/home/git/gitlab
$ git --version
git version 1.8.4
teddy@hermes:/home/git/gitlab
$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...
Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.1 ? ... OK (1.7.1)
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: ...
Teddy Brown / Grape ... repository is empty
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
Teddy Brown / Grape ... yes
Projects have satellites? ...
Teddy Brown / Grape ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.4)
Checking GitLab ... Finished
The server is a clean install of Ubuntu 12.04.3 (it was set up specifically for Gitlab). Only things done to configure are:
- Updated (apt-get update && apt-get upgrade)
- PPA installed for Git (apt-add-repository ppa:git-core/ppa && apt-get update && apt-get upgrade)
- Follow install guide for production server
- Edit gitlab.conf to turn on LDAP authentication
The only thing that stands out for me which could be an oddity in my configuration is the LDAP configuration.