git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Error "fatal: cannot pread pack file: Success"

From
Bill Lear <rael@zopyra.com>
Date
Mar 1, 2007, 15:23 UTC
Message-ID
<17894.61443.113876.53670@lisa.zopyra.com>
In-Reply-To
<alpine.LRH.0.82.0702281439410.29426@xanadu.home>
On Wednesday, February 28, 2007 at 14:40:25 (-0500) Nicolas Pitre writes:
Show 23 quoted lines
>On Wed, 28 Feb 2007, Bill Lear wrote:
>
>> On Wednesday, February 28, 2007 at 13:18:08 (-0600) Bill Lear writes:
>> >
>> >% ls -l objects
>> >total 88088
>> >drwxr-xr-x  2 rael  software     4096 Feb 28 13:05 info/
>> >drwxr-xr-x  2 rael  software     4096 Feb 28 13:05 pack/
>> >-rw-------  1 rael  software 90099505 Feb 28 13:06 pack_eZwOnG
>> 
>> I should have added:
>> 
>> % ls -l ~/devel/fusion/.git/objects/pack/pack-fe532a54e5d549f1cfc70a4ab2c5f4eaac8897a5.pack
>> -r--r--r--  1 rael software 90099525 Feb 27 21:36 /home/rael/devel/project/.git/objects/pack/pack-fe532a54e5d549f1cfc70a4ab2c5f4eaac8897a5.pack
>> 
>> That's 20 bytes of difference.
>
>That is actually OK.  This is the temporary pack file the fetch received 
>but which final SHA1 has not been written yet.  Normally, after the 
>delta resolution has finished (the part that requires the pread() calls) 
>then the final SHA1 is written and the pack is moved to its final 
>location under an appropriate name.  But in your case index-pack bailed 
>out on the failing pread() and left its incomplete temporary pack there.

As follow-up: I installed git 1.5.0.1 on a box with a newer version of Linux, tried the same operations and it worked fine.

% uname -a Linux xiho.zopyra.com 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006 i686 i686 i386 GNU/Linux

% git clone --bare ~/project
Initialized empty Git repository in /austin/users/rael/repos/git/project/
remote: Generating pack...
remote: Done counting 4304 objects.
remote: Deltifying 4304 objects.
remote:  100% (4304/4304) done
Indexing 4304 objects.
remote: Total 4304 (delta 2031), reused 4293 (delta 2026)
 100% (4304/4304) done
Resolving 2031 deltas.
 100% (2031/2031) done

So, I guess we'll just have to upgrade our Linux boxes to get the newer NFS client code that appears to be the cause of this...

Bill
Previous: Nicolas PitreNext: Linus Torvalds
Message 25 of 34 in “Error "fatal: cannot pread pack file: Success"”
  1. Bill LearFeb 28, 2007
  2. Shawn O. PearceFeb 28, 2007
  3. Shawn O. PearceFeb 28, 2007
  4. Junio C HamanoFeb 28, 2007
  5. Linus TorvaldsFeb 28, 2007
  6. Bill LearFeb 28, 2007
  7. Bill LearFeb 28, 2007
  8. Shawn O. PearceFeb 28, 2007
  9. Bill LearFeb 28, 2007
  10. Bill LearFeb 28, 2007
  11. Shawn O. PearceFeb 28, 2007
  12. Bill LearFeb 28, 2007
  13. Shawn O. PearceFeb 28, 2007
  14. Morten WelinderFeb 28, 2007
  15. Shawn O. PearceFeb 28, 2007
  16. Bill LearFeb 28, 2007
  17. Shawn O. PearceFeb 28, 2007
  18. Bill LearFeb 28, 2007
  19. Shawn O. PearceFeb 28, 2007
  20. Nicolas PitreFeb 28, 2007
  21. Shawn O. PearceFeb 28, 2007
  22. Bill LearFeb 28, 2007
  23. Bill LearFeb 28, 2007
  24. Nicolas PitreFeb 28, 2007
  25. Bill LearMar 1, 2007
  26. Linus TorvaldsFeb 28, 2007
  27. Bill LearFeb 28, 2007
  28. Linus TorvaldsFeb 28, 2007
  29. Bill LearFeb 28, 2007
  30. Linus TorvaldsFeb 28, 2007
  31. Nicolas PitreFeb 28, 2007
  32. Linus TorvaldsFeb 28, 2007
  33. Nicolas PitreFeb 28, 2007
  34. Linus TorvaldsFeb 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.