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

Re: git 1.5.3.5 error over NFS

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 12, 2007, 23:31 UTC
Message-ID
<20071112233103.GH2918@steel.home>
In-Reply-To
<18232.29603.856766.275854@lisa.zopyra.com>
Bill Lear, Mon, Nov 12, 2007 16:39:15 +0100:
Show 8 quoted lines
> On Saturday, November 10, 2007 at 00:21:06 (+0100) Alex Riesen writes:
> >Bill Lear, Fri, Nov 09, 2007 16:31:39 +0100:
> >> I've brought this up before, but I don't recall a resolution to it.
> >> 
> >> We have an NFS-mounted filesystem, and git pull is choking on it.
> >> 
> >> % uname -a
> >> Linux uhlr.zopyra.com 2.6.9-42.0.2.ELsmp #1 SMP Wed Aug 23 13:38:27 BST 2006 x86_64 x86_64 x86_64 GNU/Linux

It is a really old kernel... Maybe you could try with some of the recent ones?

Show 32 quoted lines
> >> % git --version
> >> git version 1.5.3.5
> >> 
> >> % git pull
> >> remote: Generating pack...
> >> remote: Done counting 998 objects.
> >> remote: Result has 836 objects.
> >> remote: Deltifying 836 objects.
> >> remote:  100% (836/836) done
> >> Indexing 836 objects...
> >> remote: Total 836 (delta 526), reused 688 (delta 380)
> >>   100% (836/836) done
> >> Resolving 526 deltas...
> >> fatal: cannot pread pack file: No such file or directory
> >
> >Could you please strace it? With strace -ff?
> >
> >> fatal: index-pack died with error code 128
> >> fatal: Fetch failure: git://source/repo
> >> 
> >> I looked through the archives of this list and did not see a final
> >> resolution, other than a suspected bug in the OS NFS code.
> >
> >Strace, just to be on the safe side
> 
> Ok, I've done the strace -ff.  It has generated 176 strace.out.<pid>
> files.  I have placed a tarball of these files on my home server:
> 
>   http://www.zopyra.com/~rael/git/git-trace.tar.bz2
> 
> The file strace.out.25526 has, at the very end:
> 
Yes, this is the file.
I extend the part you quoted. The file is opened here:

open(".git/objects/pack_awOTNW", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 write(3, "PACK\0\0\0\2\0\0\3r", 12) = 12 ... lots of data. Counted writes: 488538... write(3, "v\351\247V\325\362\327/\240\265\211\211\322,\261\210\301"..., 4096) = 4096 write(3, "\202\202g\232Bf\211Bf\261Bb\36X\22\4\364\365\25\22\223"..., 1114) = 1114 write(3, "M", 1) = 1

> write(2, "Resolving 551 deltas.\n", 22)                               = 22
> pread64(3, "", 242, 541) = 0

That's the problem. Hmm... May I kindly suggest moving the topic to linux-nfs (cc-ed along with lk)?

Previous: Bill LearNext: Alex Riesen
Message 4 of 14 in “git 1.5.3.5 error over NFS”
  1. Bill LearNov 9, 2007
  2. Alex RiesenNov 9, 2007
  3. Bill LearNov 12, 2007
  4. Alex RiesenNov 12, 2007
  5. Alex RiesenNov 12, 2007
  6. Bill LearNov 13, 2007
  7. Alex RiesenNov 13, 2007
  8. Bill LearNov 13, 2007
  9. Alex RiesenNov 14, 2007
  10. Bill LearNov 14, 2007
  11. Alex RiesenNov 14, 2007
  12. Nicolas PitreNov 14, 2007
  13. Junio C HamanoNov 14, 2007
  14. Nicolas PitreNov 14, 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.