Cannot connect to Gitolite
Created by: ProgVal
Hi,
Here is my config/gitlab.yml:
# Gitlab application config file
# Email used for notification
# about new issues, comments
email:
from: [email protected]
host: gitlabhq.com
# Protocol used for links in email letters
# Value can be http or https
protocol: http # or https
# Git Hosting congiguration
git_host:
system: gitolite
admin_uri: ssh://git@localhost:12322/gitolite-admin
base_path: /home/git/repositories/
host: localhost
git_user: git
port: 12322
# Git settings
# Use default values unless you understand it
git:
# Max size of git object like commit, in bytes
# This value can be increased if you have a very large commits
git_max_size: 5242880 # 5.megabytes
# Git timeout to read commit, in seconds
git_timeout: 10
and bundle exec rake gitlab_status
succeeds. And so does git clone ssh://git@localhost:12322/gitolite-admin /tmp/gitolite-admin
(run as the gitlab user).
I also tried to replace ssh://git@localhost:12322/gitolite-admin
by git@localhost/gitolite-admin
or git@localhost:12322/gitolite-admin
, but it makes bundle exec rake gitlab_status
fail.
Chmods are ok:
root@Hydrogen:~# ls -l /home/git/
total 12
-rw-r--r-- 1 git git 397 april 1 19:04 gitlab.pub
-rw------- 1 git git 0 april 1 19:07 projects.list
drwxrwx--- 4 git git 4096 april 1 19:07 repositories
-rw-r--r-- 1 git git 622 april 1 19:04 ValentinLorentz.pub
root@Hydrogen:~# ls -l /home/git/repositories/
total 8
drwxrwx--- 8 git git 4096 april 1 19:07 gitolite-admin.git
drwxrwx--- 7 git git 4096 april 1 19:07 testing.git
When I run Gitlab, I can change my account name and my password. But when I try to add an SSH key, I get:
Application cant get access to your gitolite system.
Check 'config/gitlab.yml' for correct settings.
Make sure web server user has access to gitolite. Setup tutorial
Try:
sudo chmod -R 770 /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
Regards, Valentin Lorentz