Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] unpacker error, clue


Gerrit (2.2) refuses to receive a push. Gerrit already has the rejected commit
on another branch. Does this information ring a bell? On the client side is
git version 1.8.0.msysgit.0. 

$ git push
Counting objects: 131, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (69/69), done.
Writing objects: 100% (108/108), 44.17 KiB, done.
Total 108 (delta 57), reused 69 (delta 35)
remote: Resolving deltas: 100% (57/57)
error: unpack failed: error Missing tree ec673e7922c8e00f53e11c10495355e9c26b0a1
fatal: Unpack error, check server log
To ssh://xxxxx
 ! [rejected]        master -> master (non-fast-forward)
 ! [remote rejected] project/xxx-> project/xxx(n/a (unpacker error))
 ! [rejected]        project/xxx_Part -> project/xxx_Part (non-fast-forward)
error: failed to push some refs to 'ssh://xxx'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the 'push.default' configuration
hint: variable to 'current' or 'upstream' to push only the current branch.

But this works, i.e. the one where Gerrit refused. 

$ git push origin project/xxx
Total 0 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 1, done
To ssh://xxxx
   a2316ca..7c463d0  project/xxx-> project/xxx

Possibly interesting piece in the server log:

  AdvertiseRefsHook: org.eclipse.jgit.transport.AdvertiseRefsHookChain@135b083class org.eclipse.jgit.transport.Advertise

        ... 13 more
Caused by: org.eclipse.jgit.errors.UnpackException: Exception while parsing pack stream
        at org.eclipse.jgit.transport.ReceivePack.service(
        at org.eclipse.jgit.transport.ReceivePack.receive(
        ... 13 more
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing tree ec673e7922c8e00f53e11c10495355e9c26b0a1d
        at org.eclipse.jgit.transport.BaseReceivePack.checkConnectivity(
        at org.eclipse.jgit.transport.BaseReceivePack.receivePackAndCheckConnectivity(
        at org.eclipse.jgit.transport.ReceivePack.service(
        ... 15 more

-- robin

Back to the top