Permission denied (publickey,gssapi-with-mic,password).

258 views
Skip to first unread message

Neha Verma

unread,
Jan 4, 2012, 3:02:36 AM1/4/12
to Repo and Gerrit Discussion
i am having issue. I have one hook "change-merged". IT was working
fine earlier but now it is giving me error

error_log:[2012-01-03 23:23:37,001] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: fatal: The remote end hung up unexpectedly
error_log:[2012-01-03 23:32:52,174] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: Permission denied, please try again.
error_log:[2012-01-03 23:32:52,201] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: Permission denied, please try again.
error_log:[2012-01-03 23:32:52,225] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: Permission denied (publickey,gssapi-with-mic,password).
error_log:[2012-01-03 23:32:52,225] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: fatal: The remote end hung up unexpectedly
error_log:[2012-01-03 23:40:10,858] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: Permission denied, please try again.
error_log:[2012-01-03 23:40:10,884] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: Permission denied, please try again.
error_log:[2012-01-03 23:40:10,910] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: Permission denied (publickey,gssapi-with-mic,password).
error_log:[2012-01-03 23:40:10,910] INFO
com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
output: fatal: The remote end hung up unexpectedly


Do you have any idea? what is this error. I try to change log of stuff
and keys are set properly.

I can run same hook from command line but once any code submit, it
shows this error and hook stop working.

checked http://gerrit.googlecode.com/svn/documentation/2.2.1/error-permission-denied.html
and working as expected.

I would really appreciate your help.

thanks,
Neha

Shawn Pearce

unread,
Jan 6, 2012, 10:16:12 AM1/6/12
to Neha Verma, Repo and Gerrit Discussion
On Wed, Jan 4, 2012 at 00:02, Neha Verma <neha...@gmail.com> wrote:
>  i am having issue. I have one hook "change-merged". IT was working
> fine earlier but now it is giving me error
>
> error_log:[2012-01-03 23:23:37,001] INFO
> com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
> output: fatal: The remote end hung up unexpectedly
> error_log:[2012-01-03 23:32:52,174] INFO
> com.google.gerrit.common.ChangeHookRunner : hook[change-merged]
> output: Permission denied, please try again.

This looks like your hook is trying to run Git using an SSH
connection. What is the hook doing, pushing changes to another host?
If so you might want to switch to Gerrit's replication feature.

The hook is unable to authenticate to the remote, are you sure the
user the Gerrit server is running as has access to the necessary SSH
key in ~/.ssh?

Reply all
Reply to author
Forward
0 new messages