Skip to contentSkip to conversation

Can't clone Linus tree

DISCUSSION Tomasz Torcz 4 participants 5 messages Jul 24, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

yesterdat I wanted to bisect my kernel problem, but failed at first step:
cloning Linus' tree. Today I tried it on other system and also failed.

This is git-1.4.0 on Slackware, i586:

% git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
fatal: packfile '/home/zdzichu/linux-git/.git/objects/pack/tmp-1jI4AH' SHA1 mismatch
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died with error code 128
fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

And this is 1.4.0-1.fc5 on FC5, x86_64:
% git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
fatal: packfile '/home/tomek/linux-git/.git/objects/pack/tmp-BxIcIC' SHA1 mismatch
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died with error code 128
fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

Errors occur constantly since yesterday. They of course appear after
downloading several megabytes of data, which is unpleasant on my 128kbps connection.

Signature · 2 lines
Tomasz Torcz                 "God, root, what's the difference?"
[email protected]         "God is more forgiving."
#1 lore raw

Hi,

Quoted 3 lines · Tomasz Torcz

Errors occur constantly since yesterday. They of course appear after
downloading several megabytes of data, which is unpleasant on my 128kbps connection.

I am on ISDN here and i'm using rsync transfer since having problems with other protocols too. Just replace the git:// with rsync:// in your URI and try again.

Hannes

#2 lore raw
In reply to Tomasz Torcz
Quoted 20 lines · Tomasz Torcz

Hi,

yesterdat I wanted to bisect my kernel problem, but failed at first step:
cloning Linus' tree. Today I tried it on other system and also failed.

This is git-1.4.0 on Slackware, i586:

% git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
fatal: packfile '/home/zdzichu/linux-git/.git/objects/pack/tmp-1jI4AH' SHA1 mismatch
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died with error code 128
fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

And this is 1.4.0-1.fc5 on FC5, x86_64:
% git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
fatal: packfile '/home/tomek/linux-git/.git/objects/pack/tmp-BxIcIC' SHA1 mismatch
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died with error code 128
fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

Quoted 3 lines

Errors occur constantly since yesterday. They of course appear after
downloading several megabytes of data, which is unpleasant on my 128kbps connection.

Same here with both the master and next branch of git. rsync as suggested by Johannes Weiner works. You can change the protocol back to git in .git/remotes/origin after cloning; pulling small changes seems to work fine.

strace tells me that safe_read at pkt-line.c:111 gets only 305 of the expected 996 bytes and then dies. I have no idea how that might happen. :-/

Pulling the git repository works using the git protocol, btw.

René

#3 lore raw
Quoted 6 lines
Quoted 5 lines · Tomasz Torcz

% git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
fatal: packfile '/home/zdzichu/linux-git/.git/objects/pack/tmp-1jI4AH' SHA1 mismatch
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died with error code 128
fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

Ah, I just saw this is a known problem and there's a patch by Matthias Lederhofer, which Junio just accepted, I think (the mail with subject "[PATCH] upload-pack: fix timeout in create_pack_file)" on the git mailing list.

The problem is apparently that the server expects you (wrongly) to finish your download session within ten minutes. Until the server is fixed you can use rsync:// for the initial clone and
git:// for smaller updates.

René

#4 lore raw
In reply to Tomasz Torcz

Witam,

Quoted 3 lines

yesterdat I wanted to bisect my kernel problem, but failed at first step:
cloning Linus' tree. Today I tried it on other system and also failed.

[cut]

Quoted 4 lines

Errors occur constantly since yesterday. They of course appear after
downloading several megabytes of data, which is unpleasant on my 128kbps connection.

I saw that as well many times with both git vesrion 1.2.4 and 1.4.1:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
linux-2.6
Generating pack...
Done counting 293611 objects.
Deltifying 293611 objects.
100% (293611/293611) done
fatal: unexpected EOF)
fatal: packfile '/home/me/linux/linux-2.6/.git/objects/pack/tmp-FtdxDS' SHA1 mismatch
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died with error code 128
fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

Each time it fails after downloading approx. 60MB of data. Reported to vger git list with no response.

Regards,

Mariusz Kozłowski