threads / discuss / 27249

cannot pread pack

Subject: cannot pread pack

## tl;dr

3 messages between May 4, 2011 and May 6, 2011.

replies: 2people: 3as markdown or json

richard parkins· May 4, 2011, 09:31 UTC · lore
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· May 4, 2011, 13:55 UTC · re: richard parkins · lore

Re: cannot pread pack

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· May 6, 2011, 03:08 UTC · re: Shawn Pearce · lore

Re: cannot pread pack

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.

← back to recent threads