CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

gerrit-"internal server error" #1954

Open GoogleCodeExporter opened 9 years ago

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

Affected Version:2.4.2

Dear gerriter:

    Somebody runs "repo sync" , but can not download the code . There are error :
remote: internal server error
fatal: protocol error: bad pack header

    After I run "git gc" in problem git repository on gerrit server , so somebody can download code when they run "repo sync" .

    I search this problem , but I do not find the method to fix .

    There are review_site/logs/error_log:

[2013-06-08 09:41:43,053] ERROR com.google.gerrit.sshd.BaseCommand : Internal 
server error (user xxx account 1000154) during git-upload-pack 
'/platform/manifest.git'
org.eclipse.jgit.transport.UploadPackInternalServerErrorException
        at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1061)
        at org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:611)
        at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:521)
        at com.google.gerrit.sshd.commands.Upload.runImpl(Upload.java:53)
        at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:103)
        at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:34)
        at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:69)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:403)
        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:206)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:333)
        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: org.eclipse.jgit.errors.MissingObjectException: Missing tree 
440aef4864d7a231f8167e7c8e40c7f884d80b52
        at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:126)
        at org.eclipse.jgit.revwalk.ObjectWalk.newTreeVisit(ObjectWalk.java:726)
        at org.eclipse.jgit.revwalk.ObjectWalk.nextObject(ObjectWalk.java:378)
        at org.eclipse.jgit.storage.pack.PackWriter.findObjectsToPack(PackWriter.java:1706)
        at org.eclipse.jgit.storage.pack.PackWriter.preparePack(PackWriter.java:707)
        at org.eclipse.jgit.storage.pack.PackWriter.preparePack(PackWriter.java:670)
        at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1161)
        at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1055)
        ... 16 more

Original issue reported on code.google.com by bibo1984...@gmail.com on 8 Jun 2013 at 7:16

GoogleCodeExporter commented 9 years ago
We are observing the same on 2.10.1

The client, on "git fetch -t 
ssh://buildbot@gerrit.c.acme-tools1.internal:29418/experiments 
refs/changes/69/6669/4" sees:

fatal: internal server error
remote: internal server error
fatal: protocol error: bad pack header

And the server error logs report:

[2015-06-02 23:47:02,108] ERROR com.google.gerrit.sshd.BaseCommand : Internal 
server error (user buildbot account 1000033) during git-upload-pack 
'/experiments'
org.eclipse.jgit.transport.UploadPackInternalServerErrorException
        at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1277)
        at org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:717)
        at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:628)
        at com.google.gerrit.sshd.commands.Upload.runImpl(Upload.java:80)
        at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:101)
        at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:32)
        at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:70)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:442)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:368)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing tree 
1526ad278e4ba0044ee38ee2bd43c33f3b5b21f3
        at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:149)
        at org.eclipse.jgit.revwalk.ObjectWalk.newTreeVisit(ObjectWalk.java:739)
        at org.eclipse.jgit.revwalk.ObjectWalk.nextObject(ObjectWalk.java:390)
        at org.eclipse.jgit.internal.storage.pack.PackWriterBitmapWalker.findObjects(PackWriterBitmapWalker.java:116)
        at org.eclipse.jgit.internal.storage.pack.PackWriter.findObjectsToPackUsingBitmaps(PackWriter.java:1850)
        at org.eclipse.jgit.internal.storage.pack.PackWriter.findObjectsToPack(PackWriter.java:1668)
        at org.eclipse.jgit.internal.storage.pack.PackWriter.preparePack(PackWriter.java:799)
        at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1386)
        at org.eclipse.jgit.transport.UploadPack.sendPack(UploadPack.java:1271)
        ... 15 more

Original comment by b...@bebop.co on 3 Jun 2015 at 12:01