opened
pjouglet
username_0
2015-07-21 16:42:14 +0200 [INFO] Create tmp directory : '/usr/share/redmine/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-07-21 16:42:14 +0200 [INFO] Accessing gitolite-admin.git at '/usr/share/redmine/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-07-21 16:42:14 +0200 [ERROR] Invalid Gitolite Admin SSH Keys
2015-07-21 16:42:14 +0200 [ERROR] Failed to authenticate SSH session: Unable to open public key file
2015-07-21 16:42:14 +0200 [ERROR] Problems to retrieve Gitolite hook parameters in Gitolite config 'namespace : redminegitolite'
2015-07-21 16:42:14 +0200 [INFO] Set Git global parameter : redminegitolite.redmineurl (http://localhost:3000/githooks/post-receive/redmine)
2015-07-21 16:42:14 +0200 [ERROR] Error while setting Git global parameter : redminegitolite.redmineurl (http://localhost:3000/githooks/post-receive/redmine)
2015-07-21 16:42:14 +0200 [ERROR] Non-zero exit code pid 6784 exit 1 for `sudo -n -u git -i git config --global redminegitolite.redmineurl http://localhost:3000/githooks/post-receive/redmine`
2015-07-21 16:42:14 +0200 [INFO] Set Git global parameter : redminegitolite.debugmode (false)
2015-07-21 16:42:14 +0200 [ERROR] Error while setting Git global parameter : redminegitolite.debugmode (false)
2015-07-21 16:42:14 +0200 [ERROR] Non-zero exit code pid 6789 exit 1 for `sudo -n -u git -i git config --global redminegitolite.debugmode false`
2015-07-21 16:42:14 +0200 [INFO] Set Git global parameter : redminegitolite.asyncmode (false)
2015-07-21 16:42:14 +0200 [ERROR] Error while setting Git global parameter : redminegitolite.asyncmode (false)
2015-07-21 16:42:14 +0200 [ERROR] Non-zero exit code pid 6794 exit 1 for `sudo -n -u git -i git config --global redminegitolite.asyncmode false`
2015-07-21 16:42:14 +0200 [INFO] Disable README creation for repositories
2015-07-21 16:42:14 +0200 [INFO] Create tmp directory : '/usr/share/redmine/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-07-21 16:42:14 +0200 [INFO] Accessing gitolite-admin.git at '/usr/share/redmine/tmp/redmine_git_hosting/git/gitolite-admin.git'
2015-07-21 16:42:14 +0200 [ERROR] Invalid Gitolite Admin SSH Keys
2015-07-21 16:42:14 +0200 [ERROR] Failed to authenticate SSH session: Unable to open public key fil

I've retryed many time with documentation [documentation](http://redmine-git-hosting.io/get_started/) and always the same error :/
Do you have an idea ?
Thanks !
Error 500 configuration plugin
issue
created
clee231
username_1
Well it says that your SSH keys is invalid.
Can you verify that your SSH key is correct? (It should be located in: {BASE_REDMINE_DIRECTORY}/plugins/redmine_git_hosting/ssh_keys/)

You can use ssh-keygen to verify the key like so:
```ssh-keygen -lf {BASE_REDMINE_DIRECTORY}/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa```

That command should output the fingerprint of the key, if it is valid. (Something like: 
```2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 redmine_gitolite_admin_id_rsa.pub```
, with different hex values, obviously.)

If it is not valid, then you might want to create a new ssh key.
comment
created
pjouglet
username_0
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 95:43:34:6d:f3:4b:0e:0f:e2:7d:c1:34:4f:56:b5:2d.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/var/www/.ssh/known_hosts).
hello redmine_gitolite_admin_id_rsa, this is git@ubuntu running gitolite3 v3.6.3-10-g4be7ac5 on git 1.9.1
R W    gitolite-admin
R W    testing

My www-data user is sudoers too :/
comment
created
n-rodriguez
username_2
Can you try to chmod 644 both private and public SSH keys?
comment
created
pjouglet
username_0
Thanks for reply !
I've applied chmod 644 on /usr/share/redmine/plugins/redmine_git_hosting/ssh_keys/* and on /home/git/redmine_gitolite_admin_id_rsa.pub and the problem are the same.
comment
created
clee231
username_1
Hmm... From the ssh-keygen test, it seem that your SSH key is valid.  It also seem that your redmine user (www-data) can access them.  Can you verify that your Gitolite configuration in the redmine_git_hosting plugin is correct?
Specifically, under `Administration -> Redmine Git Hosting -> SSH`. Verify that all 5 fields are correct.

**Gitolite username** - Generally, this is something like `git`
**Gitolite SSH private key** - This should be the **full absolute path** to your SSH admin private key. (For example: `/usr/share/redmine/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa`)
**Gitolite SSH public key** - This should be the full absolute path to your SSH admin public key. (e.g. `/usr/share/redmine/plugins/redmine_git_hosting/ssh_keys/redmine_gitolite_admin_id_rsa.pub`)
**SSH/Gitolite server host** - your server's domain name or IP address of where redmine & gitolite are installed on.
**SSH/Gitolite server port** - Generally port 22.
comment
created
pjouglet
username_0
and now it work o/

If you have more informations you can post it otherwise issue are close
comment
closed
n-rodriguez
username_2
issue