We have a local master and a slave on Amazon. Normally the replication works fine but in the error_log we always have the exceptions like below. We don't specify the timeout setting in replication.config or sshd_config and only put the url and threads in replication.config. Any idea about what may cause this? Thanks.
[2013-08-15 00:48:30,665] ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to git+ssh://
ro...@test.example.com:22/mnt/GITROOT/service.gitorg.eclipse.jgit.errors.TransportException: git+ssh://
ro...@test.example.com:22/mnt/GITROOT/service.git: Short read of block.
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:217)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:152)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:165)
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:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:337)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.EOFException: Short read of block.
at org.eclipse.jgit.util.IO.readFully(IO.java:248)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:158)
at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:129)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:207)
... 23 more