Issue 2232: Replication fails with TransportException / JSchException: verify: false
Status:  Submitted
Owner: ----
Closed:  Nov 2013
Project Member Reported by dougk....@gmail.com, Oct 31, 2013
Replicate a large number of projects to several mirrors, and occasionally, replication will fail with a JSchException of verify: false.  The upstream bug appears to be http://sourceforge.net/p/jsch/bugs/58/

A full backtrace of the issue (from Gerrit's perspective) is:
org.eclipse.jgit.errors.TransportException: gerrit@mirror:repo.git: verify: false
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
	at com.googlesource.gerrit.plugins.replication.PushOne.listRemote(PushOne.java:409)
	at com.googlesource.gerrit.plugins.replication.PushOne.doPushAll(PushOne.java:357)
	at com.googlesource.gerrit.plugins.replication.PushOne.generateUpdates(PushOne.java:350)
	at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:298)
	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$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	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:724)
Caused by: com.jcraft.jsch.JSchException: verify: false
	at com.jcraft.jsch.Session.connect(Session.java:301)
	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
	... 25 more
Nov 1, 2013
Project Member #1 dougk....@gmail.com
Potential fix: https://gerrit-review.googlesource.com/51293
Nov 14, 2013
Project Member #2 dougk....@gmail.com
Fix has been merged, this issue should be okay to resolve.
Nov 14, 2013
Project Member #3 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.6