git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: mingli zhang <zmlfoolishfish@gmail.com>
To: git@vger.kernel.org
Subject: [bug]fatal: fetch-pack: invalid index-pack output
Date: Sun, 14 Aug 2022 05:09:13 +0800	[thread overview]
Message-ID: <50B3E989-0405-4B05-9940-D3943C62260A@gmail.com> (raw)

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

             reply	other threads:[~2022-08-13 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-13 21:09 mingli zhang [this message]
2023-09-01 11:15 ` [bug]fatal: fetch-pack: invalid index-pack output Bagas Sanjaya
2023-09-01 16:53   ` Junio C Hamano
2023-09-07  9:06     ` Bagas Sanjaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B3E989-0405-4B05-9940-D3943C62260A@gmail.com \
    --to=zmlfoolishfish@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).