git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* assistance with git error
@ 2015-02-24 20:40 Tom
  2015-02-24 21:11 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Tom @ 2015-02-24 20:40 UTC (permalink / raw
  To: git

Could someone provide me some assistance with troubleshooting the following:

remote: Counting objects: 31654, done.
error: pack-objects died of signal 99568/19585)   
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository
corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed


i know next to nothing about git and was asked to resolve this issue.

thank you.
tom

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

* Re: assistance with git error
  2015-02-24 20:40 assistance with git error Tom
@ 2015-02-24 21:11 ` Jeff King
       [not found]   ` <COL127-W1624CE9FAAEECB25DBE954A5160@phx.gbl>
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2015-02-24 21:11 UTC (permalink / raw
  To: Tom; +Cc: git

On Tue, Feb 24, 2015 at 08:40:56PM +0000, Tom wrote:

> Could someone provide me some assistance with troubleshooting the following:
> 
> remote: Counting objects: 31654, done.
> error: pack-objects died of signal 99568/19585)   

The output is smushed here due to the use of "\r" for the progress
reporting, but the interesting message is:

  error: pack-objects died of signal 9

which probably overwrote something like:

  remote: Compressing objects:  XXX% (9568/19585)

The rest of the messages are just the error propagating through the
various programs on the remote and local sides. So something killed
pack-objects with signal 9 (SIGKILL). Just a guess, but it may have been
killed for using too much memory.

Do you have control of the server? Is it running Linux? If so, check
your system logs to see if the OOM-killer killed it.

If the server is multi-core, setting:

  git config pack.threads 1

in the repository in question may reduce the peak memory usage.

-Peff

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

* Re: assistance with git error
       [not found]       ` <COL127-W7F78AD18199BF6C38EEA0A5160@phx.gbl>
@ 2015-02-24 21:56         ` Jeff King
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2015-02-24 21:56 UTC (permalink / raw
  To: Thomas Moretto; +Cc: git

On Tue, Feb 24, 2015 at 04:49:00PM -0500, Thomas Moretto wrote:

> i also have a question concerning large files.

Sure, but let's take it back on-list. Then other people can help answer,
and later users can benefit from seeing the answers.

> i ran a check and it said there was a schema.sql file that was 1.2G(i followed this guide:  http://stevelorek.com/how-to-shrink-a-git-repository.html)

Running verify-pack like that is slow. If you have a recent version of
git, you can use:

  git rev-list --objects --all |
  git cat-file --batch-check='%(objectsize:disk) %(objectname) %(rest)' |
  sort -rn

to get a sorted list of the largest objects that are reachable. If you
don't see your big object there, try doing:

  git rev-list --objects --reflog

for the first line, to see if it shows up in the reflog.

If the object is only in the reflog, the simplest thing is to expire the
reflog and repack:

  git reflog expire --expire-unreachable=now --all
  git gc --prune=now

If it is reachable, then you'll have to actually rewrite history to get
rid of it. Since you know the sha1 of the object, you can find which
commit introduced it with:

  sha1=...whatever...
  git log --all --no-abbrev --raw | less +/$sha1

That will dump you in less, with the sha1 highlighted (if it comes and
goes through history, you may need to use "/" to find other instances).

-Peff

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

end of thread, other threads:[~2015-02-24 21:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 20:40 assistance with git error Tom
2015-02-24 21:11 ` Jeff King
     [not found]   ` <COL127-W1624CE9FAAEECB25DBE954A5160@phx.gbl>
     [not found]     ` <20150224214500.GA23245@peff.net>
     [not found]       ` <COL127-W7F78AD18199BF6C38EEA0A5160@phx.gbl>
2015-02-24 21:56         ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).