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

Closed
Open
Created May 14, 2012 by Administrator@rootOwner

Can't add ssh keys

Created by: matiasfh

(sorry for my english)

I recently (two days ago) installed gitlab and gitolite on Ubuntu 10.04, i add some ssh keys and push a lot of repositories.

Recently i need to add a new ssh key (from another user) but i can't !!

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/

I have try a lot of things, but nothing happen.

My gitlab.yml # Gitlab application config file

# Email used for notification
# about new issues, comments
email:
  from: [email protected]
  host: tutelkan.dyndns.org:38000

# 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: git@localhost:gitolite-admin
  base_path: /home/git/repositories/
  host: tutelkan.dyndns.org
  git_user: git
  #port: 30022

# 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

I'm runnig Nginx in a custom port: 38000 and ssh to 30022 I use dyndns.org to open my service to the web.

i read my logs:

production.log Started POST "/keys" for 127.0.0.1 at 2012-05-14 10:38:34 -0400 Processing by KeysController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"DkdZsN/e8b48w7IUmAQ3o3TbYGZ5Yn5Z0sb67PwUqVA=", "key"=> {"title"=>"[email protected]", "key"=>"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwldYwc0isSuTv4DjweEQZolbXQm1I7B+nIxf2tznDwCHxBRYUmyJsS4oE347sW4S3wv51/5sgFAZ49t4CiVM9SOc+6HroURPql259fZqTUgCG6vfASr+KYsDLur1XYxmCi52OkGhkK8T2Ct/yCOcOEqK0hmogqyyfTmAASEEnuLVcaVTPmqP+3Fk+2pROh83AgT27wfOpC5R4gTz7qaXtVtTxwFwXhlXv+3wl3gb1wJKoj2MLErOBCkW63BopCkAyskFPPXqS/tE3WefY/lFuRx3pAwSJ+mCCs0mnFvd/zroO+ZZA8A9mBinXFvqIv2PFoy+hoMkWDVCPPg45m+DT [email protected]"}, "commit"=>"Save"} Rendered errors/gitolite.html.haml within layouts/error (8.7ms) Rendered layouts/_head.html.haml (2.9ms) Rendered layouts/_flash.html.haml (0.2ms) Rendered layouts/_head_panel.html.haml (22.9ms) Completed 200 OK in 243ms (Views: 43.1ms | ActiveRecord: 5.9ms)

unicorn.stdeer.log I, [2012-05-14T10:27:39.678665 #19451] INFO -- : reaped #<Process::Status: pid 19468 exit 0> worker=0 I, [2012-05-14T10:27:39.678830 #19451] INFO -- : reaped #<Process::Status: pid 19471 exit 0> worker=1 I, [2012-05-14T10:27:39.679311 #19451] INFO -- : master complete I, [2012-05-14T10:35:15.510685 #1637] INFO -- : unlinking existing socket=/home/gitlab/gitlab//tmp/sockets/gitlab.socket I, [2012-05-14T10:35:15.511844 #1637] INFO -- : listening on addr=/home/gitlab/gitlab//tmp/sockets/gitlab.socket fd=5 I, [2012-05-14T10:35:15.512716 #1637] INFO -- : Refreshing Gem list I, [2012-05-14T10:35:27.535354 #1637] INFO -- : master process ready I, [2012-05-14T10:35:27.653294 #1676] INFO -- : worker=1 ready I, [2012-05-14T10:35:27.688518 #1673] INFO -- : worker=0 ready Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). fatal: The remote end hung up unexpectedly

/var/log/nginx/gitlab_error.log

2012/05/14 10:32:01 [error] 1411#0: *2 connect() to unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket failed (111:  Connection refused) while connecting to upstream, client: 186.104.92.110, server: tutelkan.dyndns.org:38000, request: "GET /users/sign_in HTTP/1.1", upstream: "http://unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket:/users/sign_in", host:  "tutelkan.dyndns.org:38000"

Clearly the problem is with access to /home/gitlab/gitlab/tmp/sockets/gitlab.socket , but i don't change anything and the problema just appear from nothing...

Any idea?

Assignee
Assign to
Time tracking