{"thread":{"id":"58302","subject":"[bug]fatal: fetch-pack: invalid index-pack output","startedAt":"2022-08-13T21:09:22Z","lastAt":"2023-09-07T16:58:28Z","messageCount":4,"participants":["mingli zhang","Bagas Sanjaya","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"461178","messageId":"50B3E989-0405-4B05-9940-D3943C62260A@gmail.com","threadId":"58302","inReplyTo":null,"subject":"[bug]fatal: fetch-pack: invalid index-pack output","fromName":"mingli zhang","fromEmail":"zmlfoolishfish@gmail.com","sentAt":"2022-08-13T21:09:13Z","receivedAt":"2022-08-13T21:09:22Z","isPatch":false,"sender":{"key":"zmlfoolishfish@gmail.com","avatar":null},"body":"HI,\n\nAt some point, I exec git pull/fetch/clone will got a fatal message:\n\n```\n\nfatal: fetch-pack: invalid index-pack output\n\n```\n\nI use git 2.36.1 on MacOS Monterey 12.3.1\n\n```\ngit --version\n04:51:36.776640 git.c:459 trace: built-in: git version\ngit version 2.36.1\n\n```\n\nExample:\n\n```\n\nzml@localhashdata postgres % git pull -r\n04:53:33.553655 git.c:459 trace: built-in: git pull -r\n04:53:33.640927 run-command.c:654 trace: run_command: git merge-base --fork-point refs/remotes/origin/REL_14_STABLE REL_14_STABLE\n04:53:33.651808 run-command.c:654 trace: run_command: git fetch --update-head-ok\n04:53:33.658822 git.c:459 trace: built-in: git fetch --update-head-ok\n04: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'\\'''\nremote: Enumerating objects: 16843, done.\nremote: Counting objects: 100% (16231/16231), done.\nremote: Compressing objects: 100% (4164/4164), done.\n04: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\n04: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\nremote: Total 10035 (delta 8554), reused 7150 (delta 5805), pack-reused 0\nReceiving objects: 100% (10035/10035), 6.93 MiB | 2.42 MiB/s, done.\nfatal: fetch-pack: invalid index-pack output\n\n```\n\nI try to config memory or use git pull -r --depth 1, but didn’t help.\n\nMy git config is\n\n```\n[core]\npackedGitLimit = 512m\npackedGitWindowSize = 512m\ncompression = 0\n\n[pack]\ndeltaCacheSize = 2047m\npackSizeLimit = 2047m\nwindowMemory = 2047m\n```\n\nAnd the code dir permission is\n\n```\ndrwxrwxrwx\n\n```\n\nAny suggestions ?\n\nRegards,\nZhang Mingli"},{"id":"481285","messageId":"ZPHHuiFn3v06hhVe@debian.me","threadId":"58302","inReplyTo":"50B3E989-0405-4B05-9940-D3943C62260A@gmail.com","subject":"Re: [bug]fatal: fetch-pack: invalid index-pack output","fromName":"Bagas Sanjaya","fromEmail":"bagasdotme@gmail.com","sentAt":"2023-09-01T11:15:06Z","receivedAt":"2023-09-01T11:15:11Z","isPatch":false,"sender":{"key":"bagasdotme@gmail.com","avatar":"https://avatars.githubusercontent.com/u/40219486?v=4"},"body":"On Sun, Aug 14, 2022 at 05:09:13AM +0800, mingli zhang wrote:\n> HI,\n> \n> At some point, I exec git pull/fetch/clone will got a fatal message:\n> \n> ```\n> \n> fatal: fetch-pack: invalid index-pack output\n> \n> ```\n> \n> I use git 2.36.1 on MacOS Monterey 12.3.1\n> \n> ```\n> git --version\n> 04:51:36.776640 git.c:459 trace: built-in: git version\n> git version 2.36.1\n> \n> ```\n> \n> Example:\n> \n> ```\n> \n> zml@localhashdata postgres % git pull -r\n> 04:53:33.553655 git.c:459 trace: built-in: git pull -r\n> 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\n> 04:53:33.651808 run-command.c:654 trace: run_command: git fetch --update-head-ok\n> 04:53:33.658822 git.c:459 trace: built-in: git fetch --update-head-ok\n> 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'\\'''\n> remote: Enumerating objects: 16843, done.\n> remote: Counting objects: 100% (16231/16231), done.\n> remote: Compressing objects: 100% (4164/4164), done.\n> 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\n> 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\n> remote: Total 10035 (delta 8554), reused 7150 (delta 5805), pack-reused 0\n> Receiving objects: 100% (10035/10035), 6.93 MiB | 2.42 MiB/s, done.\n> fatal: fetch-pack: invalid index-pack output\n> \n> ```\n> \n> I try to config memory or use git pull -r --depth 1, but didn’t help.\n> \n> My git config is\n> \n> ```\n> [core]\n> packedGitLimit = 512m\n> packedGitWindowSize = 512m\n> compression = 0\n> \n> [pack]\n> deltaCacheSize = 2047m\n> packSizeLimit = 2047m\n> windowMemory = 2047m\n> ```\n> \n> And the code dir permission is\n> \n> ```\n> drwxrwxrwx\n> \n> ```\n> \n> Any suggestions ?\n\nRelated discussion is in [1] with the fix for OpenSSL users is in [2].\nPlease test.\n\n[1]: https://lore.kernel.org/git/ZPCL11k38PXTkFga@debian.me/\n[2]: https://lore.kernel.org/git/20230901020928.M610756@dcvr/\n\n-- \nAn old man doll... just what I always wanted! - Clara\n"},{"id":"481301","messageId":"xmqqwmx9q1he.fsf@gitster.g","threadId":"58302","inReplyTo":"ZPHHuiFn3v06hhVe@debian.me","subject":"Re: [bug]fatal: fetch-pack: invalid index-pack output","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2023-09-01T16:53:17Z","receivedAt":"2023-09-01T16:53:24Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Bagas Sanjaya <bagasdotme@gmail.com> writes:\n\n> On Sun, Aug 14, 2022 at 05:09:13AM +0800, mingli zhang wrote:\n>> ...\n>> I use git 2.36.1 on MacOS Monterey 12.3.1\n>> ...\n>\n> Related discussion is in [1] with the fix for OpenSSL users is in [2].\n> Please test.\n>\n> [1]: https://lore.kernel.org/git/ZPCL11k38PXTkFga@debian.me/\n> [2]: https://lore.kernel.org/git/20230901020928.M610756@dcvr/\n\nI somehow think they are not related.  The EVP thing appeared only\nin Git 2.42 and the report says 2.36.1, which was released in May\n2022 and predates it by more than a year, no?\n"},{"id":"481480","messageId":"919e4a91-18c6-f3f2-b7de-b407f791cc14@gmail.com","threadId":"58302","inReplyTo":"xmqqwmx9q1he.fsf@gitster.g","subject":"Re: [bug]fatal: fetch-pack: invalid index-pack output","fromName":"Bagas Sanjaya","fromEmail":"bagasdotme@gmail.com","sentAt":"2023-09-07T09:06:16Z","receivedAt":"2023-09-07T16:58:28Z","isPatch":false,"sender":{"key":"bagasdotme@gmail.com","avatar":"https://avatars.githubusercontent.com/u/40219486?v=4"},"body":"On 01/09/2023 23:53, Junio C Hamano wrote:\n> Bagas Sanjaya <bagasdotme@gmail.com> writes:\n> \n>> On Sun, Aug 14, 2022 at 05:09:13AM +0800, mingli zhang wrote:\n>>> ...\n>>> I use git 2.36.1 on MacOS Monterey 12.3.1\n>>> ...\n>>\n>> Related discussion is in [1] with the fix for OpenSSL users is in [2].\n>> Please test.\n>>\n>> [1]: https://lore.kernel.org/git/ZPCL11k38PXTkFga@debian.me/\n>> [2]: https://lore.kernel.org/git/20230901020928.M610756@dcvr/\n> \n> I somehow think they are not related.  The EVP thing appeared only\n> in Git 2.42 and the report says 2.36.1, which was released in May\n> 2022 and predates it by more than a year, no?\n\nAh! I missed the point.\n\nmingli, can you test v2.42.0?\n\n-- \nAn old man doll... just what I always wanted! - Clara\n\n"}]}