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

[bug]fatal: fetch-pack: invalid index-pack output

From
MZmingli zhang <zmlfoolishfish@gmail.com>
Date
Aug 13, 2022, 21:09 UTC
Message-ID
<50B3E989-0405-4B05-9940-D3943C62260A@gmail.com>
HI,
At some point, I exec git pull/fetch/clone will got a fatal message:
```
fatal: fetch-pack: invalid index-pack output
```
I use git 2.36.1 on MacOS Monterey 12.3.1

``` git --version 04:51:36.776640 git.c:459 trace: built-in: git version git version 2.36.1

```
Example:
```

zml@localhashdata postgres % git pull -r 04:53:33.553655 git.c:459 trace: built-in: git pull -r 04:53:33.640927 run-command.c:654 trace: run_command: git merge-base --fork-point refs/remotes/origin/REL_14_STABLE REL_14_STABLE 04:53:33.651808 run-command.c:654 trace: run_command: git fetch --update-head-ok 04:53:33.658822 git.c:459 trace: built-in: git fetch --update-head-ok 04:53:33.683642 run-command.c:654 trace: run_command: unset GIT_PREFIX; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL git@github.com 'git-upload-pack '\''postgres/postgres.git'\''' remote: Enumerating objects: 16843, done. remote: Counting objects: 100% (16231/16231), done. remote: Compressing objects: 100% (4164/4164), done. 04:53:40.822310 run-command.c:654 trace: run_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 70208 on localhashdata' --pack_header=2,10035 04:53:40.828465 git.c:459 trace: built-in: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 70208 on localhashdata' --pack_header=2,10035 remote: Total 10035 (delta 8554), reused 7150 (delta 5805), pack-reused 0 Receiving objects: 100% (10035/10035), 6.93 MiB | 2.42 MiB/s, done. fatal: fetch-pack: invalid index-pack output

```
I try to config memory or use git pull -r --depth 1, but didn’t help.
My git config is

``` [core] packedGitLimit = 512m packedGitWindowSize = 512m compression = 0

[pack] deltaCacheSize = 2047m packSizeLimit = 2047m windowMemory = 2047m ```

And the code dir permission is

``` drwxrwxrwx

```
Any suggestions ?

Regards, Zhang Mingli

Next: Bagas Sanjaya
Message 1 of 4 in “[bug]fatal: fetch-pack: invalid index-pack output”
  1. mingli zhangAug 13, 2022
  2. Bagas SanjayaSep 1, 2023
  3. Junio C HamanoSep 1, 2023
  4. Bagas SanjayaSep 7, 2023

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.