git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Duy Nguyen <pclouds@gmail.com>, 813084@bugs.debian.org
Cc: git@vger.kernel.org
Subject: Re: Bug#813084: Background git gc fails, telling me to run git prune, which doesn't help
Date: Sat, 27 Feb 2016 22:50:04 +0000	[thread overview]
Message-ID: <1456613404.3098.23.camel@decadent.org.uk> (raw)
In-Reply-To: <CACsJy8Ai9dW3mLOEidsyh2yw29-2zvYRGB1LZN51B-L4QHMQ2w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

Control: forwarded -1 git@vger.kernel.org

On Fri, 2016-01-29 at 21:05 +0700, Duy Nguyen wrote:
> On Fri, Jan 29, 2016 at 8:35 PM, Ben Hutchings <ben@decadent.org.uk> wrote:
> > git keeps trying to do a background gc on my linux repository, but
> > fails, reporting this in .git/gc.log:
> > 
> > warning: There are too many unreachable loose objects; run 'git prune' to remove them.
> > 
> > However, after running 'git prune' and 'git gc' (which succeeds), git
> > soon tries to a background gc again, resulting in the same error.
> > 
> > Let me know what I can do to get any further diagnostic information.
> 
> Make sure nobody is accessing the repository before you do this:
> 
> git prune --expire=now
> 
> Then you can try "git gc --auto" again to see if it is still
> complaining. Report back on git@vger.kernel.org in that case.

OK, I've now done that and I get the same failure.  But
'git gc --prune=all' seems to work:

$ git gc --prune=all
Counting objects: 6479254, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (939232/939232), done.
Writing objects: 100% (6479254/6479254), done.
Total 6479254 (delta 5503044), reused 6479254 (delta 5503044)
Checking connectivity: 6479254, done.

I kept a backup of the .git directory so I can run further experiments
on that.

Ben.

-- 
Ben Hutchings
Every program is either trivial or else contains at least one bug

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

           reply	other threads:[~2016-02-27 22:50 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CACsJy8Ai9dW3mLOEidsyh2yw29-2zvYRGB1LZN51B-L4QHMQ2w@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456613404.3098.23.camel@decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=813084@bugs.debian.org \
    --cc=git@vger.kernel.org \
    --cc=pclouds@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).