My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 808: Gerrit replication - Session.connect: java.net.SocketException: Connection reset
5 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by ni...@codeaurora.org, Dec 22, 2010
Affected Version:
2.1.6.1

What steps will reproduce the problem?
1. Increase threads value in replication.config from 8 to 16
2. Restart gerrit
3. Watch error_logs

[2010-12-22 21:52:24,785] ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to user@server:/projects/test.git
org.eclipse.jgit.errors.TransportException: user@server:/projects/test.git: connection is closed by foreign host
        at org.eclipse.jgit.transport.SshTransport.initSession(SshTransport.java:141)
        at org.eclipse.jgit.transport.TransportGitSsh$JschConnection.exec(TransportGitSsh.java:212)
        at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:390)
        at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:104)
        at com.google.gerrit.server.git.PushOp.listRemote(PushOp.java:352)
        at com.google.gerrit.server.git.PushOp.generateUpdates(PushOp.java:307)
        at com.google.gerrit.server.git.PushOp.pushVia(PushOp.java:253)
        at com.google.gerrit.server.git.PushOp.runImpl(PushOp.java:209)
        at com.google.gerrit.server.git.PushOp.run(PushOp.java:162)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        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:207)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:324)
        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:619)
Caused by: com.jcraft.jsch.JSchException: connection is closed by foreign host
        at com.jcraft.jsch.Session.connect(Session.java:236)
        at org.eclipse.jgit.transport.SshTransport.initSession(SshTransport.java:134)
        ... 17 more
Dec 15, 2013
#1 poym...@gmail.com
I have this to. Running 2.8
Jan 16, 2015
#2 saj...@vocaliq.com
I have this too on 2.9.2, did anyone found where the problem was. I can ssh into remote git server from Gerrit machine but when try to replicate get error like in this issue.
Sign in to add a comment

Powered by Google Project Hosting