git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* error: unpack failed: unpack-objects abnormal exit
@ 2013-11-01 10:32 Sitesh Shrivastava
  2013-11-04 23:03 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Sitesh Shrivastava @ 2013-11-01 10:32 UTC (permalink / raw)
  To: git

Hey,

I'm using a gitosis server. Suddenly I'm not able to push to the
remote server. Everyone else is able to push to the same server. Btw I
can't push to *any repo* on the server. This is the error I get:

Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 353 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
error: unpack failed: unpack-objects abnormal exit
To git://git.srv.net/code-repo.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'git://git.srv.net/code-repo.git'

I Tried git fsck too:c

git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (2844/2844), done.

Can something be wrong with my git installation?
git --version
git version 1.8.3.2


-Thanks & Regards,
Sitesh Shrivastava
Phone: +91-9470521313
E-Mail: siteshshrivastava@gmail.com
Home-Page: http://www.siteshshrivastava.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: unpack failed: unpack-objects abnormal exit
  2013-11-01 10:32 error: unpack failed: unpack-objects abnormal exit Sitesh Shrivastava
@ 2013-11-04 23:03 ` Jeff King
  2013-11-05  7:46   ` Sitesh Shrivastava
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2013-11-04 23:03 UTC (permalink / raw)
  To: Sitesh Shrivastava; +Cc: git

On Fri, Nov 01, 2013 at 04:02:10PM +0530, Sitesh Shrivastava wrote:

> I'm using a gitosis server. Suddenly I'm not able to push to the
> remote server. Everyone else is able to push to the same server. Btw I
> can't push to *any repo* on the server. This is the error I get:
> 
> Counting objects: 5, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (3/3), done.
> Writing objects: 100% (3/3), 353 bytes | 0 bytes/s, done.
> Total 3 (delta 1), reused 0 (delta 0)
> error: unpack failed: unpack-objects abnormal exit
> To git://git.srv.net/code-repo.git
>  ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to 'git://git.srv.net/code-repo.git'

You are trying to push over the "git://" protocol. That isn't enabled by
default (because it has no authentication at all). Did you enable it? If
so, does the user running git-daemon have permission to write to the
repository?

The server notes that unpack-objects fails, but in older git versions
the stderr of unpack-objects does not get sent to the client. If your
git-daemon process is logging somewhere, you might check that log for
more details.

Since v1.7.12.3, that output is sent over the sideband channel to the
client. So another option is to upgrade the version of git on the
server.

> Can something be wrong with my git installation?
> git --version
> git version 1.8.3.2

That's your client version. The server version is older than that (in
v1.7.12.3, the unpacker error message also dropped the "n/a" bit, so the
output above comes from a server older than that).

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: unpack failed: unpack-objects abnormal exit
  2013-11-04 23:03 ` Jeff King
@ 2013-11-05  7:46   ` Sitesh Shrivastava
  0 siblings, 0 replies; 3+ messages in thread
From: Sitesh Shrivastava @ 2013-11-05  7:46 UTC (permalink / raw)
  To: Jeff King; +Cc: git

Thanks a lot for replying!

That exactly was the problem. We've configured gitosis to allow access
over 'ssh://' (Read / Write) while 'git://' access was limited (Read
only).
Changing the configuration worked out just fine.

-Thanks & Regards,
Sitesh

On Tue, Nov 5, 2013 at 4:33 AM, Jeff King <peff@peff.net> wrote:
> On Fri, Nov 01, 2013 at 04:02:10PM +0530, Sitesh Shrivastava wrote:
>
>> I'm using a gitosis server. Suddenly I'm not able to push to the
>> remote server. Everyone else is able to push to the same server. Btw I
>> can't push to *any repo* on the server. This is the error I get:
>>
>> Counting objects: 5, done.
>> Delta compression using up to 4 threads.
>> Compressing objects: 100% (3/3), done.
>> Writing objects: 100% (3/3), 353 bytes | 0 bytes/s, done.
>> Total 3 (delta 1), reused 0 (delta 0)
>> error: unpack failed: unpack-objects abnormal exit
>> To git://git.srv.net/code-repo.git
>>  ! [remote rejected] master -> master (n/a (unpacker error))
>> error: failed to push some refs to 'git://git.srv.net/code-repo.git'
>
> You are trying to push over the "git://" protocol. That isn't enabled by
> default (because it has no authentication at all). Did you enable it? If
> so, does the user running git-daemon have permission to write to the
> repository?
>
> The server notes that unpack-objects fails, but in older git versions
> the stderr of unpack-objects does not get sent to the client. If your
> git-daemon process is logging somewhere, you might check that log for
> more details.
>
> Since v1.7.12.3, that output is sent over the sideband channel to the
> client. So another option is to upgrade the version of git on the
> server.
>
>> Can something be wrong with my git installation?
>> git --version
>> git version 1.8.3.2
>
> That's your client version. The server version is older than that (in
> v1.7.12.3, the unpacker error message also dropped the "n/a" bit, so the
> output above comes from a server older than that).
>
> -Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-05  7:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 10:32 error: unpack failed: unpack-objects abnormal exit Sitesh Shrivastava
2013-11-04 23:03 ` Jeff King
2013-11-05  7:46   ` Sitesh Shrivastava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).