java.io.EOFException: Short read of block

1,516 views
Skip to first unread message

Zhaobang Liu

unread,
Aug 15, 2013, 11:34:02 PM8/15/13
to repo-d...@googlegroups.com
 
Hi,
 
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.git
org.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
 
 
 
Best,
Zhaobang

Ashwini T R

unread,
Apr 10, 2018, 5:32:40 PM4/10/18
to Repo and Gerrit Discussion
Hi Team,

The replication error_log we always have the exceptions like below. Could you please know how to overcome this issue.

[2018-04-11 00:22:48,908] [bf70a1fa] Cannot replicate to user@<host_name>:<repository_path>.git
org.eclipse.jgit.errors.TransportException: <repo_path>: Short read of block.
        at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:236)
        at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:168)
        at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:172)
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1272)
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1318)
        at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:437)
        at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:416)
        at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:318)
        at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:86)
        at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:284)
        at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:281)
        at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:221)
        at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:200)
        at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:75)
        at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:281)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:417)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.EOFException: Short read of block.
        at org.eclipse.jgit.util.IO.readFully(IO.java:249)
        at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:212)
        at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:154)
        at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:136)
        at org.eclipse.jgit.util.IO.readFully(IO.java:247)
        at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:212)
        at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:142)
        at org.eclipse.jgit.transport.BasePackPushConnection.readStringLongTimeout(BasePackPushConnection.java:435)
        at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:367)
        at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:219)
        ... 22 more

Matthias Sohn

unread,
Apr 10, 2018, 6:30:43 PM4/10/18
to Ashwini T R, Repo and Gerrit Discussion
Looks like you are hitting network issues while replication plugin tries to push to a slave
Which Gerrit/JGit version are you running ?

-Matthias

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashwini T R

unread,
Apr 10, 2018, 7:15:20 PM4/10/18
to Repo and Gerrit Discussion
Hi Matthias,

We are currently running with Gerrit 2.13.2 v in our environment. 

Regards,
Ashwini

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Eric Tsai

unread,
Apr 11, 2018, 3:08:02 AM4/11/18
to Repo and Gerrit Discussion
I see the same error during replication for some projects.
I remembered that I fixed it by "git gc" & "git repack" with some arguments such as '-a', '-F', or '-f'.

Ashwini T R於 2018年4月11日星期三 UTC+8上午5時32分40秒寫道:
Reply all
Reply to author
Forward
0 new messages