One of our Gerrit projects stopped working after a certain date with the following error:
Error from the Gerrit logs /var/gerrit/logs/error_log:[2016-07-29 17:59:51,676]
ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to git@bitbucket.org:company/product.git org.eclipse.jgit.errors.TransportException: git@bitbucket.org:company/product.git: channel is not opened. at org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:154) at org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:118) at org.eclipse.jgit.transport.JschSession.exec(JschSession.java:91) at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.(TransportGitSsh.java:306) at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:152) at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154) at org.eclipse.jgit.transport.Transport.push(Transport.java:1167) at org.eclipse.jgit.transport.Transport.push(Transport.java:1213) at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:307) at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:252) at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:207) at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:71) at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:186) at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:183) at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:222) at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:201) at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:75) at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:183) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:337) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.jcraft.jsch.JSchException: channel is not opened. at com.jcraft.jsch.Channel.connect(Channel.java:197) at org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:150) ... 25 more
Our Gerrit version is 2.6.1 installed on CentOS release 6.8 in AWS.
My gerrit replication configuration is:
[remote "bitbucket"]
url = git@bitbucket.org:qpidhealth/${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
threads = 2
authGroup = Replication
Any ideas? Thanks in advance!