Open linuxmail opened 11 years ago
hi,
I've got it, yesterday :-)
Problem was, that ~git/.gitolite/conf/gitolite.conf had the user "git" for accessing gitolite-admin and also ~git/.gitolite/conf/gitolite.conf-precompiled. After searching a lot and change in "gitolite.conf-precompiled" the user "git", to "id_rsa", I was able to checkout gitolite-admin, but it was working only once, because it was all changed back to user "git". The solution was, to rename the SSH key from "id_rsa/+pub" to "git/+pub" and adding them via gl-setup git.pub. After all ... it works now!
Thanks a lot :-)
hi,
I have Debian Wheezy with Chiliproject and with your plugin enabled. Most parts are working, but if I create a new project in Chili and want to push a new git to the project, it ends up with "Permission denied (publickey)."
I uploaded my SSH key to the account settings and I can see my key in "/tmp/redmine_git_hosting/gitolite-admin/keydir/" and the config in "/tmp/redmine_git_hosting/gitolite-admin/conf/gitolite.conf". But I wonder, where SSHD can find the keys. I assume, that there must be a hook, that writes the key to "/var/lib/gitolite/.ssh/authorized_keys" or something else. Correct?
Some Debug too:
ct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "config"\ "--global"\ "hooks.redmine_gitolite.url"\ "http://install/githooks/post-receive"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "config"\ "--global"\ "--bool"\ "hooks.redmine_gitolite.debug"\ "true"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "config"\ "--global"\ "--bool"\ "hooks.redmine_gitolite.asynch"\ "true"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "--git-dir=repositories/denny-test-12.git"\ "config"\ "hooks.redmine_gitolite.key"\ "SOTAXGUVWBKNPSKFCIUCPCQXMCIMJMAMGGYGSSJNOMJLVUDCXWAMBBXYRULPPTTHDNFFHVEISTWJAOPGOYKPPTMN"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "--git-dir=repositories/denny-test-12.git"\ "config"\ "hooks.redmine_gitolite.projectid"\ "denny-test-12"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "config"\ "--global"\ "hooks.redmine_gitolite.url"\ "http://install/githooks/post-receive"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "config"\ "--global"\ "--bool"\ "hooks.redmine_gitolite.debug"\ "true"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "config"\ "--global"\ "--bool"\ "hooks.redmine_gitolite.asynch"\ "true"\ Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0) Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "--git-dir=repositories/denny-test-12.git"\ "config"\ "hooks.redmine_gitolite.key"\ ""\
Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0)
Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git
Oct 8 18:23:44 install sudo: chiliproject : TTY=unknown ; PWD=/srv/www/chiliproject-3.8.0 ; USER=git ; COMMAND=/bin/bash -c eval git\ "--git-dir=repositories/denny-test-12.git"\ "config"\ "hooks.redmine_gitolite.projectid"\ "denny-test-12"\
Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session opened for user git by (uid=0)
Oct 8 18:23:44 install sudo: pam_unix(sudo:session): session closed for user git
any suggestions?