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
  • #2239

Closed
Open
Created Dec 10, 2012 by Administrator@rootOwner

Add ssh key

Created by: ghost

Hi,

I try to add the gitlab ssh key, but there is an issue.

Git Error
GitLab was unable to access your Gitolite system.
Tips for Administrator:
Check git logs in admin area

Check config/gitlab.yml for correct settings.

Diagnostic tool:

bundle exec rake gitlab:app:status RAILS_ENV=production
Permissions:

sudo chmod -R 770 /home/git/repositories/
sudo chown -R git:git /home/git/repositories/
  • config/gitlab.yml are good
web:
  host: localhost
  port: 80
  https: false

email:
  from: notify@localhost

app:
  default_projects_limit: 10



ldap: 
  enabled: false
  host: '_your_ldap_server'
  base: '_the_base_where_you_search_for_users'
  port: 636
  uid: 'sAMAccountName'
  method: 'ssl' # plain
  bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
  password: '_the_password_of_the_bind_user'

omniauth:
  enabled: false


  allow_single_sign_on: false
  block_auto_created_users: true


  providers:



git_host:
  admin_uri: git@localhost:gitolite-admin
  base_path: /home/git/repositories/
  hooks_path: /home/git/.gitolite/hooks/
  gitolite_admin_key: gitlab 
  git_user: git
  upload_pack: true
  receive_pack: true


git:
  path: /usr/bin/git
  git_max_size: 5242880 # 5.megabytes
  git_timeout: 10
  • permissions are good
drwxr-xr-x 2 git  git  4096 Dec 10 11:07 bin
-r--r--r-- 1 root root  409 Dec 10 11:07 gitlab.pub
drwxr-xr-x 5 git  git  4096 Dec 10 11:06 gitolite
-rw-r--r-- 1 git  git    12 Dec 10 11:44 projects.list
drwxrwx--- 4 git  git  4096 Dec 10 11:07 repositories
  • but with the diagnostic tool there is a problem
$ bundle exec rake gitlab:app:status RAILS_ENV=production

Starting diagnostics
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
git@localhost's password: 

In the installation guide, we created the git user without password !!!

sudo adduser \
  --system \
  --shell /bin/sh \
  --gecos 'git version control' \
  --group \
  --disabled-password \
  --home /home/git \
  git

And now this tool ask me to enter the git user password ... is this normal ??

Anyone have an idea to pass this issue ?

Thank you

Assignee
Assign to
Time tracking