git unpack error

1,806 views
Skip to first unread message

Ashwini T R

unread,
Oct 27, 2016, 1:46:57 AM10/27/16
to Repo and Gerrit Discussion
Hi,

Getting below error when trying to push refs/meta/config


[root@host aaa_1477536644232]# git push ssh://user@host/repo  HEAD:refs/meta/config

Counting objects: 3, done.

Delta compression using up to 8 threads.

Compressing objects: 100% (3/3), done.

Writing objects: 100% (3/3), 751 bytes | 0 bytes/s, done.

Total 3 (delta 0), reused 0 (delta 0)

error: unpack failed: error Missing unknown 2361e904755a81bf592061dd38055bcebda83772

fatal: Unpack error, check server log

To ssh://hz...@gerrite1.ext.net.nokia.com:8282/scm_rcp/aaa

! [remote rejected] HEAD -> refs/meta/config (n/a (unpacker error))

error: failed to push some refs to 'ssh://user@host/repo


thanks

Ashiwni

Saša Živkov

unread,
Oct 27, 2016, 5:03:32 AM10/27/16
to Ashwini T R, Repo and Gerrit Discussion
On Thu, Oct 27, 2016 at 7:46 AM, Ashwini T R <ashu.r...@gmail.com> wrote:
Hi,

Getting below error when trying to push refs/meta/config


[root@host aaa_1477536644232]# git push ssh://user@host/repo  HEAD:refs/meta/config

Counting objects: 3, done.

Delta compression using up to 8 threads.

Compressing objects: 100% (3/3), done.

Writing objects: 100% (3/3), 751 bytes | 0 bytes/s, done.

Total 3 (delta 0), reused 0 (delta 0)

error: unpack failed: error Missing unknown 2361e904755a81bf592061dd38055bcebda83772


Check locally if this object exists:
$ git show  2361e904755a81bf592061dd38055bcebda83772

Then check the same in that repository in Gerrit.
What is this object?

You can also try adding the --no-thin option to the push command:
git push --no-thin ssh://user@host/repo  HEAD:refs/meta/config 




fatal: Unpack error, check server log

To ssh://hz...@gerrite1.ext.net.nokia.com:8282/scm_rcp/aaa

! [remote rejected] HEAD -> refs/meta/config (n/a (unpacker error))

error: failed to push some refs to 'ssh://user@host/repo


thanks

Ashiwni

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashwini T R

unread,
Apr 17, 2017, 8:00:44 AM4/17/17
to Repo and Gerrit Discussion, ashu.r...@gmail.com
Hi zivkov,

Thanks for the workaround provided. and it works fine.
But the issue, Is this because of any mistake in my server side configuration? Can i rectify it without using --no-thin option?

How to get rid of the issue without work around ?? is there any chance to avoid these issues with any configurations? that would help to prevent the situation.
And our Gerrit version is 2.13.2

Please suggest .

error: unpack failed: error Missing tree 53785115a166684c6b36c3cf98cd4c1d6awer165
fatal: Unpack error, check server log
 ! [remote rejected] branch_release -> branch_release (n/a (unpacker error))
error: failed to push some refs to 'ssh://gerrit.host.com:8282/SAM/PROJ/projects'



Regards
Ashwini


On Thursday, October 27, 2016 at 2:33:32 PM UTC+5:30, zivkov wrote:
On Thu, Oct 27, 2016 at 7:46 AM, Ashwini T R <ashu.r...@gmail.com> wrote:
Hi,

Getting below error when trying to push refs/meta/config


[root@host aaa_1477536644232]# git push ssh://user@host/repo  HEAD:refs/meta/config

Counting objects: 3, done.

Delta compression using up to 8 threads.

Compressing objects: 100% (3/3), done.

Writing objects: 100% (3/3), 751 bytes | 0 bytes/s, done.

Total 3 (delta 0), reused 0 (delta 0)

error: unpack failed: error Missing unknown 2361e904755a81bf592061dd38055bcebda83772


Check locally if this object exists:
$ git show  2361e904755a81bf592061dd38055bcebda83772

Then check the same in that repository in Gerrit.
What is this object?

You can also try adding the --no-thin option to the push command:
git push --no-thin ssh://user@host/repo  HEAD:refs/meta/config 




fatal: Unpack error, check server log

To ssh://<host>

! [remote rejected] HEAD -> refs/meta/config (n/a (unpacker error))

error: failed to push some refs to 'ssh://user@host/repo


thanks

Ashiwni

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages