Cannot delete SSH key
Created by: damianb
This is a stubborn and frustrating issue for myself when trying to delete a currently-present SSH key.
I'm serving gitolite and gitlabhq out of /srv/git/
(the git user's home dir, I choose to serve ALL server-related things out of /srv/
), with the user git
.
Trying to push to projects already created in gitlab is failing miserably as well as it wants a password for the git
user.
Installation was per instructions, I used the git user's generated ~/.ssh/id_rsa.pub file as the rails.pub file, and loaded that directly into gitolite-admin
repo. I can also clone the gitolite-admin repository locally - did so in /srv/git/tmp/
just fine.
Additionally, the suggested rm -fr /tmp/gitolite*
(as per issues #266 (closed) and #271 (closed)) does not help in my case. umask is 0007, set in ~/.bashrc
.
gitolite.conf:
repo gitolite-admin
RW+ = katana rails
config/gitlab.yml:
# Gitlab application config file
# Email used for notification
# about new issues, comments
email:
from: [email protected]
host: domain.tld
# Git Hosting congiguration
git_host:
system: gitolite
admin_uri: git@localhost:gitolite-admin
base_path: /srv/git/repositories/
host: domain.tld
git_user: git
#port: 22
# 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
git@sabros:~/gitlabhq$ ssh -T git@localhost
hello rails, this is gitolite v2.2-11-g8c4d1aa running on git 1.7.5.4
the gitolite config gives you the following access:
R W gitolite-admin
While creating a new project, I did notice this appear in the logs:
fatal: empty ident <[email protected]
> not allowed
Everything up-to-date
Also, when trying to delete an ssh key, this is the exact error message and console output:
Gitolite Error
We're sorry, but we cant get access to your gitolite system.
1. Check 'config/gitlab.yml' for correct settings.
2. Be sure web server user has access to gitolite.
remote: Counting objects: 40, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 40 (delta 3), reused 0 (delta 0)
Receiving objects: 100% (40/40), done.
Resolving deltas: 100% (3/3), done.
cache: [POST /keys/1] invalidate, pass
Started DELETE "/keys/1" for [IP REDACTED] at 2012-01-21 00:12:16 -0600
Processing by KeysController#destroy as HTML
Parameters: {"authenticity_token"=>"sinm2uWV1O/Ha/MaOjMYyO3bynpkGt2R5T6B91uRJo0=", "id"=>"1"}
Rendered public/githost_error.html (0.1ms)
Completed 200 OK in 376ms (Views: 1.3ms | ActiveRecord: 0.9ms)
No changes seem to be made to gitolite-admin when adding a project or adding ssh keys either.
Also, the repositories dir in case that's helpful:
git@sabros:~/repositories$ ls -laFh
total 16K
drwxrwx--- 4 git git 4.0K 2012-01-20 20:35 ./
drwxr-x--- 13 git git 4.0K 2012-01-21 00:07 ../
drwxrwx--- 8 git git 4.0K 2012-01-21 00:07 gitolite-admin.git/
drwxrwx--- 7 git git 4.0K 2012-01-21 00:07 testing.git/