threads / discuss / 15740

corrupted repository?

Subject: corrupted repository?

## tl;dr

3 messages between Oct 1, 2008 and Oct 2, 2008.

replies: 2people: 2as markdown or json

Francois Pepin· Oct 1, 2008, 21:29 UTC · lore
Hi,

The repository on my OS X machine (10.5.5) seems to have been suddenly become corrupted in a strange way.

Everything seems to be working properly there (git fsck --full returns normally with no output), but I cannot clone or pull from my other machines:

(iduna is the name of the OS X machine) [francois@monch ~]$ git clone iduna:git iduna2 Initialized empty Git repository in /bioinfo/home/francois/iduna2/.git/ Password: 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: fatal: exec pack-objects failed. remote: aborting due to possible repository corruption on the remote side. fatal: early EOF fatal: index-pack failed

I have the same issue from the same machine: [francois@Iduna ~]$ git clone localhost:git git2 Initialized empty Git repository in /Users/francois/git2/.git/ remote: fatal: exec pack-objects failed. 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

But not if I just do it locally: [francois@Iduna ~]$ git clone git git2 Initialized empty Git repository in /Users/francois/git2/.git/ Checking out files: 2% (140/5273) [I cancelled it at this point]

I am running git 1.6.0.2 on the mac, and have only recently updated it so that might have a role to play.

Any suggestion would be welcome to fix this issue, and I'll be more than happy to provide whatever more information could useful.

Francois
Shawn O. Pearce· Oct 2, 2008, 14:29 UTC · re: Francois Pepin · lore

Re: corrupted repository?

Francois Pepin <fpepin@cs.mcgill.ca> wrote:
> Everything seems to be working properly there (git fsck --full returns  
> normally with no output), but I cannot clone or pull from my other 
> machines:
...
> [francois@Iduna ~]$ git clone localhost:git git2
> Initialized empty Git repository in /Users/francois/git2/.git/
> remote: fatal: exec pack-objects failed.

Your git-upload-pack cannot find git-pack-objects. It sounds like Git was incorrectly installed on your system.

  which git-upload-pack ?
  which git ?
  are they in the same directory?
  did you possibly move git after installing it?
  git --exec-path?
  does that exist?
  does it have git-pack-objects inside it?
> I am running git 1.6.0.2 on the mac, and have only recently updated it  
> so that might have a role to play.

I think it is the upgrade. It sounds like its not installed correcly because the helpers in libexec/git-core cannot be found.

-- 
Shawn.
Francois Pepin· Oct 2, 2008, 18:03 UTC · re: Shawn O. Pearce · lore

Re: corrupted repository?

 > Your git-upload-pack cannot find git-pack-objects.  It sounds like
 > Git was incorrectly installed on your system.

You are correct. I had created some symlinks for the binaries because the changes for the environment variable didn't see to work for me, either from the installer package or editing the ~/.MacOSX/environment.plist. I had a link to git-upload-pack in /usr/bin but none to git, thereby creating the issue.

I'm a bit confused as to how it happened, but's all been fixed and I'm a happy camper again.

Thanks for the help,
Francois

← back to recent threads