My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1600: Internal server error during git-receive-pack (Missing unknown $SHA1)
8 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Jul 2


Sign in to add a comment
 
Reported by desoxyrebonukleinsaure@gmail.com, Oct 9, 2012
Affected Version:
2.4.2

What steps will reproduce the problem?
1. create new repo (create-project --submit-type FAST_FORWARD_ONLY --parent foo -n bar
2. push to gerrit (direct push, no review)
3.
get
 * client :
 ! [remote rejected] master -> master (n/a (unpacker error))

 * server:
[2012-10-09 10:00:41,058] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error (user account account 22) during git-receive-pack '/REPO-NAME'
com.google.gerrit.sshd.BaseCommand$Failure: fatal: Unpack error, check server log
        at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:146)
        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: java.io.IOException: Unpack error on project "REPO-NAME":
  AdvertiseRefsHook: com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook@1893c911class com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook

        at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:145)
        ... 13 more
Caused by: org.eclipse.jgit.errors.UnpackException: Exception while parsing pack stream
        at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:877)
        at org.eclipse.jgit.transport.ReceivePack.receive(ReceivePack.java:768)
        at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:95)
        ... 13 more
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown a32e7538f5b05a1bf03d20f8272b5217fdab9fbd
        at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:125)
        at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:228)
        at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:811)
        at org.eclipse.jgit.transport.ReceivePack.checkConnectivity(ReceivePack.java:1055)
        at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:840)
        ... 15 more


What is the expected output? What do you see instead?
no error ;-)

Please provide any additional information below.
 * Running on Debian 6/2.6.32-5-amd64 VM with sun-java6 6.26-0squeeze1, also tried openjdk-6 6b18-1.8.13-0+squeeze2
 * 'git gc' does not help
 * removing and recreating the repo on gerrit does not help
 * ls -l /proc/$PID/fd is attached
 * the problematic source-repo is not very big:
> # du -hs . ; du -hs .git
> 26M     .
> 7.0M    .git
 * i do not think that this is a duplicate of  issue 585  or  issue 460  because i do not get any messages about too many open files and the process' limits have been properly set to unlimited/...
java-fd
21.1 KB   View   Download
Nov 20, 2012
#1 rse...@gilt.com
Hi,

we are experiencing the same issue. Stacktrace looks the same. What kind of information do you may need?


Mar 27, 2013
#2 nick.mu...@gmail.com
Bump.  Bizarrely, I just had two completely separate projects on two completely separate Gerrit servers throw this exact exception today.  I'm running 2.4.2.
Jul 2, 2015
Project Member #3 edwin.ke...@gmail.com
This is quite old, hence closing the issue. Please file a new issue if you are still seeing this with recent Gerrit versions.
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting