# cannot pread pack

3 messages from 2011-05-04 to 2011-05-06. Participants: richard parkins, Shawn Pearce, Jonathan Nieder.
Thread: https://gitlist.dev/t/27249

## richard parkins, 2011-05-04 09:31

Subject: cannot pread pack
Message-ID: <60260.35977.qm@web27605.mail.ukl.yahoo.com>
URL: https://gitlist.dev/e/60260.35977.qm%40web27605.mail.ukl.yahoo.com

```
I'm trying to do a git pull (with no arguments) from the remote repository from which my local repository was originally cloned. I get

remote: Counting objects: 1272, done.
remote: Compressing objects: 100% (897/897), done.
remote: Total 1127 (delta 588), reused 404 (delta 218)
Receiving objects: 100% (1127/1127), 1.18 MiB | 45 KiB/s, done.
fatal: cannot pread pack file: No such file or directory
fatal: index-pack failed

Does anyone know what causes this and how to recover from it if that is possible? Deleting my local repository and re-cloning makes the problem go away for a few months and several pulls and commits, but eventually it reappears and once reappeared is reproducible. Other users of the same remote repository don't see this problem.

I'm running under SUSE 11.1 Linux 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100 x86_64 x86_64 x86_64 GNU/Linux using git version 1.6.0.2, which is the latest built release for SUSE 11.1.

I have a copy of the local repository, but the remote repository  will probably have changed by the time anyone responds to this.

Richard Parkins

```

## Shawn Pearce, 2011-05-04 13:55

Subject: Re: cannot pread pack
Message-ID: <BANLkTi=FDah2SGKzXWxsAv-xxH0SYirt9w@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTi%3DFDah2SGKzXWxsAv-xxH0SYirt9w%40mail.gmail.com
In-Reply-To: <60260.35977.qm@web27605.mail.ukl.yahoo.com>

```
On Wed, May 4, 2011 at 02:31, richard parkins <p1rpp@yahoo.co.uk> wrote:
> fatal: cannot pread pack file: No such file or directory
> fatal: index-pack failed
>
> I'm running under SUSE 11.1 Linux 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100 x86_64 x86_64 x86_64 GNU/Linux using git version 1.6.0.2, which is the latest built release for SUSE 11.1.

Upgrade Git. The pread() bug was fixed post 1.6.0.2, I don't remember
what version, but I would suggest moving to one of the later 1.7.x
releases.

-- 
Shawn.

```

## Jonathan Nieder, 2011-05-06 03:08

Subject: Re: cannot pread pack
Message-ID: <20110506030815.GA22869@elie>
URL: https://gitlist.dev/e/20110506030815.GA22869%40elie
In-Reply-To: <BANLkTi=FDah2SGKzXWxsAv-xxH0SYirt9w@mail.gmail.com>

```
Shawn Pearce wrote:

> Upgrade Git. The pread() bug was fixed post 1.6.0.2, I don't remember
> what version, but I would suggest moving to one of the later 1.7.x
> releases.

Yep.  Probably v1.6.0.3~23 (fix pread()'s short read in index-pack,
2008-10-09).  The maint-1.6.0 branch has many other nice fixes, in
case you need to avoid version numbers starting with "1.7" or "1.6.6"
for whatever reason.

```
