New issue
Advanced search Search tips

Issue 10240 link

Starred by 3 users

Issue metadata

Status: Released
Owner: ----
Closed: Jan 7
Cc:



Sign in to add a comment

Internal server error when cloning git repository from gerrit slave after upgraded to 2.16.2

Reported by cdlee...@gmail.com, Jan 2

Issue description

*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: 2.16.2

What steps will reproduce the problem?
1. Upgrade Gerrit from version 2.15.6 to 2.16.2.
2. Clone a git repository from Gerrit slave.

What is the expected output?
The git repository can be cloned successfully.

What do you see instead?
[2019-01-02 09:53:12,119] [SSH git-upload-pack /platform/manifest (xxxxxx)] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user xxxxxx account 1000003) during git-upload-pack '/platform/manifest'
org.eclipse.jgit.transport.UploadPackInternalServerErrorException
        at org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:876)
        at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:768)
        at com.google.gerrit.sshd.commands.Upload.runImpl(Upload.java:77)
        at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:98)
        at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:31)
        at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:63)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:463)
        at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:83)
        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:646)
        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.lang.IllegalStateException: stream has already been operated upon or closed
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:229)
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
        at com.google.gerrit.server.permissions.DefaultRefFilter.visibleChangesByScan(DefaultRefFilter.java:356)
        at com.google.gerrit.server.permissions.DefaultRefFilter.visible(DefaultRefFilter.java:282)
        at com.google.gerrit.server.permissions.DefaultRefFilter.filter(DefaultRefFilter.java:182)
        at com.google.gerrit.server.permissions.ProjectControl$ForProjectImpl.filter(ProjectControl.java:405)
        at com.google.gerrit.server.git.DefaultAdvertiseRefsHook.getAdvertisedRefs(DefaultAdvertiseRefsHook.java:45)
        at org.eclipse.jgit.transport.AbstractAdvertiseRefsHook.advertiseRefs(AbstractAdvertiseRefsHook.java:64)
        at org.eclipse.jgit.transport.UploadPack.sendAdvertisedRefs(UploadPack.java:1285)
        at org.eclipse.jgit.transport.UploadPack.sendAdvertisedRefs(UploadPack.java:1250)
        at org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:809)
        ... 15 more

Please provide any additional information below.
If we add the user to administrator group, the problem gone.
 
Project Member

Comment 1 by thomasmu...@yahoo.com, Jan 2

Cc: luca.mil...@gmail.com
Project Member

Comment 2 by david.os...@gmail.com, Jan 3

Status: ChangeUnderReview (was: New)
https://gerrit-review.googlesource.com/c/gerrit/+/209032
Project Member

Comment 3 by david.os...@gmail.com, Jan 7

Status: Submitted (was: ChangeUnderReview)
Labels: FixedIn-2.16.3
Status: Released (was: Submitted)

Sign in to add a comment