git garbage collection error in 2.14

263 views
Skip to first unread message

Makson Lee

unread,
Apr 30, 2017, 8:15:17 AM4/30/17
to Repo and Gerrit Discussion
only got the following error after upgraded to 2.14,

[2017-04-30 17:23:36,230] [sshd-SshServer[3a7dcfb7]-nio2-thread-8] WARN  org.apache.sshd.server.session.ServerSessionImpl : exceptionCaught(ServerSessionImpl[scm@/0:0:0:0:0:0:0:1:42590])[state=Opened] InterruptedByTimeoutException: null
[2017-04-30 17:23:39,954] [SSH gerrit gc --show-progress platform/vendor/google (scm)] ERROR com.google.gerrit.server.git.GarbageCollection : [platform/vendor/google]
org.eclipse.jgit.api.errors.JGitInternalException: Garbage collection failed.
        at org.eclipse.jgit.api.GarbageCollectCommand.call(GarbageCollectCommand.java:224)
        at com.google.gerrit.server.git.GarbageCollection.run(GarbageCollection.java:95)
        at com.google.gerrit.sshd.commands.GarbageCollectionCommand.runGC(GarbageCollectionCommand.java:92)
        at com.google.gerrit.sshd.commands.GarbageCollectionCommand.run(GarbageCollectionCommand.java:66)
        at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:418)
        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:418)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.nio.channels.ClosedChannelException
        at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:110)
        at sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:379)
        at org.eclipse.jgit.internal.storage.file.GC.writePack(GC.java:1021)
        at org.eclipse.jgit.internal.storage.file.GC.repack(GC.java:767)
        at org.eclipse.jgit.internal.storage.file.GC.gc(GC.java:218)
        at org.eclipse.jgit.api.GarbageCollectCommand.call(GarbageCollectCommand.java:207)
        ... 13 more
[2017-04-30 17:23:39,956] [SSH gerrit gc --show-progress platform/vendor/google (scm)] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user scm account 1000000) during gerrit gc --show-progress platform/vendor/google
org.apache.sshd.common.SshException: flush(ChannelOutputStream[ChannelSession[id=0, recipient=0]-ServerSessionImpl[scm@/0:0:0:0:0:0:0:1:42590]] SSH_MSG_CHANNEL_DATA) length=0 - stream is already closed
        at org.apache.sshd.common.channel.ChannelOutputStream.flush(ChannelOutputStream.java:167)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:425)
        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:418)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Makson Lee

unread,
May 13, 2017, 9:53:41 PM5/13/17
to Repo and Gerrit Discussion
Reply all
Reply to author
Forward
0 new messages