{"thread":{"id":"27249","subject":"cannot pread pack","startedAt":"2011-05-04T09:31:25Z","lastAt":"2011-05-06T03:08:15Z","messageCount":3,"participants":["richard parkins","Shawn Pearce","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"167007","messageId":"60260.35977.qm@web27605.mail.ukl.yahoo.com","threadId":"27249","inReplyTo":null,"subject":"cannot pread pack","fromName":"richard parkins","fromEmail":"p1rpp@yahoo.co.uk","sentAt":"2011-05-04T09:31:25Z","receivedAt":"2011-05-04T09:31:25Z","isPatch":false,"sender":{"key":"p1rpp@yahoo.co.uk","avatar":null},"body":"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\n\nremote: Counting objects: 1272, done.\nremote: Compressing objects: 100% (897/897), done.\nremote: Total 1127 (delta 588), reused 404 (delta 218)\nReceiving objects: 100% (1127/1127), 1.18 MiB | 45 KiB/s, done.\nfatal: cannot pread pack file: No such file or directory\nfatal: index-pack failed\n\nDoes 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.\n\nI'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.\n\nI have a copy of the local repository, but the remote repository  will probably have changed by the time anyone responds to this.\n\nRichard Parkins\n"},{"id":"167019","messageId":"BANLkTi=FDah2SGKzXWxsAv-xxH0SYirt9w@mail.gmail.com","threadId":"27249","inReplyTo":"60260.35977.qm@web27605.mail.ukl.yahoo.com","subject":"Re: cannot pread pack","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2011-05-04T13:55:52Z","receivedAt":"2011-05-04T13:55:52Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"On Wed, May 4, 2011 at 02:31, richard parkins <p1rpp@yahoo.co.uk> wrote:\n> fatal: cannot pread pack file: No such file or directory\n> fatal: index-pack failed\n>\n> 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.\n\nUpgrade Git. The pread() bug was fixed post 1.6.0.2, I don't remember\nwhat version, but I would suggest moving to one of the later 1.7.x\nreleases.\n\n-- \nShawn.\n"},{"id":"167208","messageId":"20110506030815.GA22869@elie","threadId":"27249","inReplyTo":"BANLkTi=FDah2SGKzXWxsAv-xxH0SYirt9w@mail.gmail.com","subject":"Re: cannot pread pack","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2011-05-06T03:08:15Z","receivedAt":"2011-05-06T03:08:15Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Shawn Pearce wrote:\n\n> Upgrade Git. The pread() bug was fixed post 1.6.0.2, I don't remember\n> what version, but I would suggest moving to one of the later 1.7.x\n> releases.\n\nYep.  Probably v1.6.0.3~23 (fix pread()'s short read in index-pack,\n2008-10-09).  The maint-1.6.0 branch has many other nice fixes, in\ncase you need to avoid version numbers starting with \"1.7\" or \"1.6.6\"\nfor whatever reason.\n"}]}