Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #630

Closed
Open
Created Apr 01, 2012 by Administrator@rootOwner

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

Assignee
Assign to
Time tracking