ERROR while cloning a repo in 3.2.3 version | Timer already terminated

66 views
Skip to first unread message

Steve

unread,
Jan 11, 2021, 11:13:16 AM1/11/21
to Repo and Gerrit Discussion

Hi All, 

Recently we have upgraded gerrit to 3.2.3 and a new error started to receive for fetch operation. 

Steps to reproduce 
================
1) mkdir abc 
2) cd abc 
3) git init --bare
4) git fetch ssh://us...@gerrit.stag.com:29418/test/test1/test2.git +refs/*:refs/*

The error as below, 
================
``[2021-11-09T14:34:09.784+0200] [SSH git-upload-pack / test/test1/test2   (user1)] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user user1 account 1008676) during git-upload-pack '/test/test1/test2
java.lang.IllegalStateException: Timer already terminated
        at org.eclipse.jgit.util.io.InterruptTimer$AlarmState.begin(InterruptTimer.java:175)
        at org.eclipse.jgit.util.io.InterruptTimer.begin(InterruptTimer.java:92)
        at org.eclipse.jgit.util.io.TimeoutOutputStream.beginWrite(TimeoutOutputStream.java:127)
        at org.eclipse.jgit.util.io.TimeoutOutputStream.write(TimeoutOutputStream.java:91)
        at org.eclipse.jgit.transport.UploadPack$ResponseBufferedOutputStream.write(UploadPack.java:2371)
        at org.eclipse.jgit.transport.PacketLineOut.writePacket(PacketLineOut.java:139)
        at org.eclipse.jgit.transport.PacketLineOut.writePacket(PacketLineOut.java:115)
        at org.eclipse.jgit.transport.PacketLineOut.writeString(PacketLineOut.java:101)
        at org.eclipse.jgit.transport.UploadPack$PackProtocolErrorWriter.writeError(UploadPack.java:2412)
        at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:766)
        at com.google.gerrit.sshd.commands.Upload.runImpl(Upload.java:101)
        at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:107)
        at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:32)
        at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:72)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:469)
        at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:110)
        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:610)
        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)```

Steve

unread,
Jan 12, 2021, 9:09:24 AM1/12/21
to Repo and Gerrit Discussion
Hi All, 


[2021-11-09T14:34:09.784+0200] [SSH git-upload-pack / test/test1/test2   (user1)] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user user1 account 1008676) during git-upload-pack '/test/test1/test2
java.lang.IllegalStateException: Timer already terminated

Is it java related error ? 

Matthias Sohn

unread,
Jan 12, 2021, 10:23:04 AM1/12/21
to Steve, Repo and Gerrit Discussion
On Mon, Jan 11, 2021 at 4:28 PM Steve <palakk...@gmail.com> wrote:
Hi All, 

Recently we have upgraded gerrit to 3.2.3 and a new error started to receive for fetch operation. 

Steps to reproduce 
================
1) mkdir abc 
2) cd abc 
3) git init --bare

The error as below, 
================
``[2021-11-09T14:34:09.784+0200] [SSH git-upload-pack / test/test1/test2   (luser1)] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user lfnokia account 1008676) during git-upload-pack '/test/test1/test2
java.lang.IllegalStateException: Timer already terminated
        at org.eclipse.jgit.util.io.InterruptTimer$AlarmState.begin(InterruptTimer.java:175)
        at org.eclipse.jgit.util.io.InterruptTimer.begin(InterruptTimer.java:92)
        at org.eclipse.jgit.util.io.TimeoutOutputStream.beginWrite(TimeoutOutputStream.java:127)
        at org.eclipse.jgit.util.io.TimeoutOutputStream.write(TimeoutOutputStream.java:91)
        at org.eclipse.jgit.transport.UploadPack$ResponseBufferedOutputStream.write(UploadPack.java:2371)
        at org.eclipse.jgit.transport.PacketLineOut.writePacket(PacketLineOut.java:139)
        at org.eclipse.jgit.transport.PacketLineOut.writePacket(PacketLineOut.java:115)
        at org.eclipse.jgit.transport.PacketLineOut.writeString(PacketLineOut.java:101)
        at org.eclipse.jgit.transport.UploadPack$PackProtocolErrorWriter.writeError(UploadPack.java:2412)
        at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:766)
        at com.google.gerrit.sshd.commands.Upload.runImpl(Upload.java:101)
        at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:107)
        at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:32)
        at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:72)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:469)
        at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:110)
        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:610)
        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)```

Looks like a transfer timeout which expired before the upload-pack started.
How did you configure transfer.timeout [1] ?


-Matthias 

Steve

unread,
Jan 12, 2021, 11:34:09 AM1/12/21
to Repo and Gerrit Discussion
Hi  Matthias,

Thanks for the response.  

On Tuesday, January 12, 2021 at 8:53:04 PM UTC+5:30 Matthias Sohn wrote:


Looks like a transfer timeout which expired before the upload-pack started.
How did you configure transfer.timeout [1] ?



The current configuration as below,
[transfer]
        timeout = 360
 
Reply all
Reply to author
Forward
0 new messages