Hi,
I'm observing a very strange behavior, I fail fetch a remote with error.
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header
This failure is observed only if I fetch my 2 remotes in certain order:

mkdir test_fetch
cd test_fetch/
git init
git remote add 
https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git
git remote add to_remote 
https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git
git remote add from_remote https://review.coreboot.org/coreboot.git


*git fetch -v to_remote ==> OK*

GIT_TRACE=1 git fetch -v to_remote

13:06:57.037702 git.c:344               trace: built-in: git 'fetch' '-v' 
'to_remote'

13:06:57.057452 run-command.c:334       trace: run_command: 
'git-remote-https' 'to_remote' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git'

>From 
https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot

 x [deleted]         (none)     -> to_remote/rebase_2021-04-12_18-46-39_1897

 x [deleted]         (none)     -> to_remote/rebase_2021-04-19_20-03-32_1942

 x [deleted]         (none)     -> to_remote/rebase_2021-04-29_05-52-52_2002

 x [deleted]         (none)     -> to_remote/rebase_2021-04-29_22-42-48_2008

 x [deleted]         (none)     -> to_remote/rebase_2021-05-01_05-52-50_2014

 x [deleted]         (none)     -> to_remote/rebase_2021-05-01_22-42-47_2020

 x [deleted]         (none)     -> to_remote/rebase_2021-05-02_22-42-54_2026

 x [deleted]         (none)     -> to_remote/rebase_2021-05-08_06-50-47_58

 x [deleted]         (none)     -> to_remote/rebase_2021-05-09_22-43-38_2069

13:06:57.911468 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all' '--quiet'

13:06:57.913538 run-command.c:334       trace: run_command: 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git/'

13:06:57.914110 exec_cmd.c:120          trace: exec: 'git' 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git/'

13:06:57.914955 git.c:344               trace: built-in: git 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git/'

POST git-upload-pack (997 bytes)

remote: Enumerating objects: 930, done.

remote: Counting objects: 100% (930/930), done.

remote: Compressing objects: 100% (142/142), done.

13:06:58.199181 run-command.c:334       trace: run_command: 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 29243 on 
sbensaid-Z97X-UD7-TH' '--pack_header=2,696'

13:06:58.199487 exec_cmd.c:120          trace: exec: 'git' 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 29243 on 
sbensaid-Z97X-UD7-TH' '--pack_header=2,696'

13:06:58.200849 git.c:344               trace: built-in: git 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 29243 on 
sbensaid-Z97X-UD7-TH' '--pack_header=2,696'

remote: Total 696 (delta 548), reused 686 (delta 541), pack-reused 0

Receiving objects: 100% (696/696), 141.83 KiB | 0 bytes/s, done.

Resolving deltas: 100% (548/548), completed with 203 local objects.

13:06:58.389407 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all'

13:06:58.389637 exec_cmd.c:120          trace: exec: 'git' 'rev-list' 
'--objects' '--stdin' '--not' '--all'

13:06:58.390357 git.c:344               trace: built-in: git 'rev-list' 
'--objects' '--stdin' '--not' '--all'

........

13:06:58.465466 run-command.c:334       trace: run_command: 'gc' '--auto'

13:06:58.465673 exec_cmd.c:120          trace: exec: 'git' 'gc' '--auto'

13:06:58.466409 git.c:344               trace: built-in: git 'gc' '--auto' 

*git fetch -v from_remote ==> KO*

GIT_TRACE=1 git fetch -v from_remote

13:07:04.520717 git.c:344               trace: built-in: git 'fetch' '-v' 
'from_remote'

13:07:04.540531 run-command.c:334       trace: run_command: 
'git-remote-https' 'from_remote' 'https://review.coreboot.org/coreboot.git'

13:07:07.241003 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all' '--quiet'

13:07:07.243111 run-command.c:334       trace: run_command: 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://review.coreboot.org/coreboot.git/'

13:07:07.244244 exec_cmd.c:120          trace: exec: 'git' 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://review.coreboot.org/coreboot.git/'

13:07:07.245469 git.c:344               trace: built-in: git 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://review.coreboot.org/coreboot.git/'

POST git-upload-pack (gzip 1547 to 843 bytes)

POST git-upload-pack (gzip 1547 to 846 bytes)

POST git-upload-pack (gzip 2347 to 1237 bytes)

POST git-upload-pack (gzip 3947 to 2048 bytes)

POST git-upload-pack (gzip 7147 to 3653 bytes)

POST git-upload-pack (gzip 13547 to 6857 bytes)

POST git-upload-pack (gzip 26347 to 13304 bytes)

POST git-upload-pack (gzip 51947 to 26226 bytes)

POST git-upload-pack (gzip 51997 to 26245 bytes)

POST git-upload-pack (gzip 52047 to 26263 bytes)

POST git-upload-pack (gzip 52047 to 26257 bytes)

POST git-upload-pack (gzip 52047 to 26244 bytes)

POST git-upload-pack (gzip 52047 to 26257 bytes)

POST git-upload-pack (gzip 52047 to 26235 bytes)

POST git-upload-pack (gzip 52047 to 26242 bytes)

POST git-upload-pack (gzip 52047 to 26248 bytes)

POST git-upload-pack (gzip 52047 to 26265 bytes)

POST git-upload-pack (gzip 52047 to 26268 bytes)

POST git-upload-pack (gzip 52147 to 26311 bytes)

POST git-upload-pack (gzip 53847 to 27166 bytes)

POST git-upload-pack (gzip 53847 to 27120 bytes)

POST git-upload-pack (gzip 53847 to 27172 bytes)

POST git-upload-pack (gzip 53897 to 27151 bytes)

POST git-upload-pack (gzip 53897 to 27172 bytes)

POST git-upload-pack (gzip 53947 to 27196 bytes)

POST git-upload-pack (gzip 58147 to 29288 bytes)

POST git-upload-pack (gzip 58497 to 29445 bytes)

POST git-upload-pack (gzip 58897 to 29610 bytes)

POST git-upload-pack (gzip 59347 to 29885 bytes)

POST git-upload-pack (gzip 59997 to 30201 bytes)

POST git-upload-pack (gzip 60697 to 30543 bytes)

fatal: The remote end hung up unexpectedly

fatal: protocol error: bad pack header

======================================
cd ../
mkdir test_fetch_2
cd test_fetch_2/
git init
git remote add to_remote 
https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git
git remote add from_remote https://review.coreboot.org/coreboot.git
*git fetch -v from_remote ==> OK*

GIT_TRACE=1 git fetch -v from_remote

13:11:56.004186 git.c:344               trace: built-in: git 'fetch' '-v' 
'from_remote'

13:11:56.015822 run-command.c:334       trace: run_command: 
'git-remote-https' 'from_remote' 'https://review.coreboot.org/coreboot.git'

13:11:58.802341 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all' '--quiet'

13:11:58.804435 run-command.c:334       trace: run_command: 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://review.coreboot.org/coreboot.git/'

13:11:58.805723 exec_cmd.c:120          trace: exec: 'git' 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://review.coreboot.org/coreboot.git/'

13:11:58.806961 git.c:344               trace: built-in: git 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://review.coreboot.org/coreboot.git/'

POST git-upload-pack (947 bytes)

remote: Counting objects: 39, done

remote: Finding sources: 100% (25/25)

13:12:01.836605 run-command.c:334       trace: run_command: 
'unpack-objects' '--pack_header=2,25'

remote: Total 25 (delta 3), reused 6 (delta 3)

13:12:01.838973 exec_cmd.c:120          trace: exec: 'git' 'unpack-objects' 
'--pack_header=2,25'

13:12:01.843499 git.c:344               trace: built-in: git 
'unpack-objects' '--pack_header=2,25'

Unpacking objects: 100% (25/25), done.

13:12:01.857528 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all'

13:12:01.858086 exec_cmd.c:120          trace: exec: 'git' 'rev-list' 
'--objects' '--stdin' '--not' '--all'

13:12:01.859095 git.c:344               trace: built-in: git 'rev-list' 
'--objects' '--stdin' '--not' '--all'

.....

13:12:01.907545 run-command.c:334       trace: run_command: 'gc' '--auto'

13:12:01.908118 exec_cmd.c:120          trace: exec: 'git' 'gc' '--auto'

13:12:01.909227 git.c:344               trace: built-in: git 'gc' '--auto'

*git fetch -v to_remote  ==> OK*
git fetch -v to_remote
13:12:10.069226 git.c:344               trace: built-in: git 'fetch' '-v' 
'to_remote'
13:12:10.078134 run-command.c:334       trace: run_command: 
'git-remote-https' 'to_remote' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git'
13:12:10.902938 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all' '--quiet'
13:12:10.904811 run-command.c:334       trace: run_command: 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git/'
13:12:10.905383 exec_cmd.c:120          trace: exec: 'git' 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git/'
13:12:10.906177 git.c:344               trace: built-in: git 'fetch-pack' 
'--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 
'https://github.com/intel-innersource/os.chrome.chromiumos.third_party.coreboot.git/'
POST git-upload-pack (997 bytes)
remote: Enumerating objects: 930, done.
remote: Counting objects: 100% (930/930), done.
remote: Compressing objects: 100% (142/142), done.
13:12:11.183422 run-command.c:334       trace: run_command: 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 29354 on 
sbensaid-Z97X-UD7-TH' '--pack_header=2,696'
13:12:11.184091 exec_cmd.c:120          trace: exec: 'git' 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 29354 on 
sbensaid-Z97X-UD7-TH' '--pack_header=2,696'
13:12:11.186619 git.c:344               trace: built-in: git 'index-pack' 
'--stdin' '-v' '--fix-thin' '--keep=fetch-pack 29354 on 
sbensaid-Z97X-UD7-TH' '--pack_header=2,696'
remote: Total 696 (delta 548), reused 686 (delta 541), pack-reused 0
Receiving objects: 100% (696/696), 141.83 KiB | 0 bytes/s, done.
Resolving deltas: 100% (548/548), completed with 203 local objects.
13:12:11.368166 run-command.c:334       trace: run_command: 'rev-list' 
'--objects' '--stdin' '--not' '--all'
13:12:11.368376 exec_cmd.c:120          trace: exec: 'git' 'rev-list' 
'--objects' '--stdin' '--not' '--all'
13:12:11.369098 git.c:344               trace: built-in: git 'rev-list' 
'--objects' '--stdin' '--not' '--all'
.......
13:12:11.425499 run-command.c:334       trace: run_command: 'gc' '--auto'
13:12:11.425686 exec_cmd.c:120          trace: exec: 'git' 'gc' '--auto'
13:12:11.426602 git.c:344               trace: built-in: git 'gc' '--auto'

Any inputs will be highly appreciated.
Thanks,
Selma.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/d5902587-79e6-439a-aa52-aa88b5d1d51fn%40googlegroups.com.

Reply via email to